[AVX512] Fix VSQRT packed instructions internal names.
[oota-llvm.git] / lib / Target / Mips / Mips16HardFloat.h
1 //===---- Mips16HardFloat.h for Mips16 Hard Float                  --------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines a phase which implements part of the floating point
11 // interoperability between Mips16 and Mips32 code.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOAT_H
16 #define LLVM_LIB_TARGET_MIPS_MIPS16HARDFLOAT_H
17
18 #include "MCTargetDesc/MipsMCTargetDesc.h"
19 #include "MipsTargetMachine.h"
20 #include "llvm/Pass.h"
21 #include "llvm/Target/TargetMachine.h"
22
23 using namespace llvm;
24
25 namespace llvm {
26
27 class Mips16HardFloat : public ModulePass {
28
29 public:
30   static char ID;
31
32   Mips16HardFloat(MipsTargetMachine &TM_) : ModulePass(ID),
33     TM(TM_), Subtarget(TM.getSubtarget<MipsSubtarget>()) {
34   }
35
36   const char *getPassName() const override {
37     return "MIPS16 Hard Float Pass";
38   }
39
40   bool runOnModule(Module &M) override;
41
42 protected:
43   /// Keep a pointer to the MipsSubtarget around so that we can make the right
44   /// decision when generating code for different targets.
45   const TargetMachine &TM;
46   const MipsSubtarget &Subtarget;
47
48 };
49
50 ModulePass *createMips16HardFloat(MipsTargetMachine &TM);
51
52 }
53 #endif