Mercurial > hg > CbC > CbC_llvm
diff lib/Target/Mips/MipsTargetMachine.h @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
line wrap: on
line diff
--- a/lib/Target/Mips/MipsTargetMachine.h Fri Nov 25 19:14:25 2016 +0900 +++ b/lib/Target/Mips/MipsTargetMachine.h Fri Oct 27 17:07:41 2017 +0900 @@ -1,4 +1,4 @@ -//===-- MipsTargetMachine.h - Define TargetMachine for Mips -----*- C++ -*-===// +//===- MipsTargetMachine.h - Define TargetMachine for Mips ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -16,15 +16,14 @@ #include "MCTargetDesc/MipsABIInfo.h" #include "MipsSubtarget.h" -#include "llvm/CodeGen/BasicTTIImpl.h" -#include "llvm/CodeGen/Passes.h" -#include "llvm/CodeGen/SelectionDAGISel.h" -#include "llvm/Target/TargetFrameLowering.h" +#include "llvm/ADT/Optional.h" +#include "llvm/ADT/StringMap.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Support/CodeGen.h" #include "llvm/Target/TargetMachine.h" +#include <memory> namespace llvm { -class formatted_raw_ostream; -class MipsRegisterInfo; class MipsTargetMachine : public LLVMTargetMachine { bool isLittle; @@ -41,8 +40,8 @@ public: MipsTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, - Optional<Reloc::Model> RM, CodeModel::Model CM, - CodeGenOpt::Level OL, bool isLittle); + Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, + CodeGenOpt::Level OL, bool JIT, bool isLittle); ~MipsTargetMachine() override; TargetIRAnalysis getTargetIRAnalysis() override; @@ -67,30 +66,36 @@ bool isLittleEndian() const { return isLittle; } const MipsABIInfo &getABI() const { return ABI; } + + bool isMachineVerifierClean() const override { + return false; + } }; /// Mips32/64 big endian target machine. /// class MipsebTargetMachine : public MipsTargetMachine { virtual void anchor(); + public: MipsebTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, - Optional<Reloc::Model> RM, CodeModel::Model CM, - CodeGenOpt::Level OL); + Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, + CodeGenOpt::Level OL, bool JIT); }; /// Mips32/64 little endian target machine. /// class MipselTargetMachine : public MipsTargetMachine { virtual void anchor(); + public: MipselTargetMachine(const Target &T, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, - Optional<Reloc::Model> RM, CodeModel::Model CM, - CodeGenOpt::Level OL); + Optional<Reloc::Model> RM, Optional<CodeModel::Model> CM, + CodeGenOpt::Level OL, bool JIT); }; -} // End llvm namespace +} // end namespace llvm -#endif +#endif // LLVM_LIB_TARGET_MIPS_MIPSTARGETMACHINE_H