diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:01:22 +0000 | 
| commit | 71d5a2540a98c81f5bcaeb48805e0e2881f530ef (patch) | |
| tree | 5343938942df402b49ec7300a1c25a2d4ccd5821 /lib/Target/X86/X86TargetMachine.h | |
| parent | 31bbf64f3a4974a2d6c8b3b27ad2f519caf74057 (diff) | |
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.h')
| -rw-r--r-- | lib/Target/X86/X86TargetMachine.h | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/Target/X86/X86TargetMachine.h b/lib/Target/X86/X86TargetMachine.h index d756d07926dd..cf933f52604e 100644 --- a/lib/Target/X86/X86TargetMachine.h +++ b/lib/Target/X86/X86TargetMachine.h @@ -13,14 +13,20 @@  #ifndef LLVM_LIB_TARGET_X86_X86TARGETMACHINE_H  #define LLVM_LIB_TARGET_X86_X86TARGETMACHINE_H -#include "X86InstrInfo.h" +  #include "X86Subtarget.h" -#include "llvm/IR/DataLayout.h" +#include "llvm/ADT/Optional.h" +#include "llvm/ADT/StringMap.h" +#include "llvm/Analysis/TargetTransformInfo.h" +#include "llvm/Support/CodeGen.h"  #include "llvm/Target/TargetMachine.h" +#include <memory>  namespace llvm {  class StringRef; +class X86Subtarget; +class X86RegisterBankInfo;  class X86TargetMachine final : public LLVMTargetMachine {    std::unique_ptr<TargetLoweringObjectFile> TLOF; @@ -32,17 +38,19 @@ public:                     Optional<Reloc::Model> RM, CodeModel::Model CM,                     CodeGenOpt::Level OL);    ~X86TargetMachine() override; +    const X86Subtarget *getSubtargetImpl(const Function &F) const override;    TargetIRAnalysis getTargetIRAnalysis() override;    // Set up the pass pipeline.    TargetPassConfig *createPassConfig(PassManagerBase &PM) override; +    TargetLoweringObjectFile *getObjFileLowering() const override {      return TLOF.get();    }  }; -} // End llvm namespace +} // end namespace llvm -#endif +#endif // LLVM_LIB_TARGET_X86_X86TARGETMACHINE_H  | 
