diff options
author | Eric Christopher <echristo@gmail.com> | 2014-06-10 23:26:45 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-06-10 23:26:45 +0000 |
commit | fe801852732c4f6f2e8467da7d525c7d1109cc77 (patch) | |
tree | 898626583d13f6945f6d23c3a5adac0e7d22f422 /lib/Target/AArch64/AArch64Subtarget.h | |
parent | 63ce00b72f2420852a9d5dcb5b025d3320b7b989 (diff) | |
download | llvm-fe801852732c4f6f2e8467da7d525c7d1109cc77.tar.gz llvm-fe801852732c4f6f2e8467da7d525c7d1109cc77.tar.bz2 llvm-fe801852732c4f6f2e8467da7d525c7d1109cc77.tar.xz |
Move AArch64TargetLowering to AArch64Subtarget.
This currently necessitates a TargetMachine for the TargetLowering
constructor and TLOF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/AArch64Subtarget.h')
-rw-r--r-- | lib/Target/AArch64/AArch64Subtarget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64Subtarget.h b/lib/Target/AArch64/AArch64Subtarget.h index d8930706cf..3eef248806 100644 --- a/lib/Target/AArch64/AArch64Subtarget.h +++ b/lib/Target/AArch64/AArch64Subtarget.h @@ -16,6 +16,7 @@ #include "AArch64InstrInfo.h" #include "AArch64FrameLowering.h" +#include "AArch64ISelLowering.h" #include "AArch64RegisterInfo.h" #include "AArch64SelectionDAGInfo.h" #include "llvm/IR/DataLayout.h" @@ -57,17 +58,21 @@ protected: AArch64FrameLowering FrameLowering; AArch64InstrInfo InstrInfo; AArch64SelectionDAGInfo TSInfo; + std::unique_ptr<AArch64TargetLowering> TLInfo; public: /// This constructor initializes the data members to match that /// of the specified triple. AArch64Subtarget(const std::string &TT, const std::string &CPU, - const std::string &FS, bool LittleEndian); + const std::string &FS, TargetMachine &TM, bool LittleEndian); const AArch64SelectionDAGInfo *getSelectionDAGInfo() const { return &TSInfo; } const AArch64FrameLowering *getFrameLowering() const { return &FrameLowering; } + const AArch64TargetLowering *getTargetLowering() const { + return TLInfo.get(); + } const AArch64InstrInfo *getInstrInfo() const { return &InstrInfo; } const DataLayout *getDataLayout() const { return &DL; } bool enableMachineScheduler() const override { return true; } |