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 | 841da851985b88195c04ce0b09448721ecc964a4 (patch) | |
| tree | 95ea9518cae3375e1f60a50db19b69ed901309ae /llvm/lib/Target/AArch64/AArch64Subtarget.h | |
| parent | 18532316f3666444304af9f89adb94b5b55c50d6 (diff) | |
| download | bcm5719-llvm-841da851985b88195c04ce0b09448721ecc964a4.tar.gz bcm5719-llvm-841da851985b88195c04ce0b09448721ecc964a4.zip | |
Move AArch64TargetLowering to AArch64Subtarget.
This currently necessitates a TargetMachine for the TargetLowering
constructor and TLOF.
llvm-svn: 210605
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64Subtarget.h')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64Subtarget.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h index d8930706cfe..3eef2488067 100644 --- a/llvm/lib/Target/AArch64/AArch64Subtarget.h +++ b/llvm/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; } |

