llvm.org GIT mirror llvm / 5448320
Have TargetSelectionDAGInfo take a DataLayout initializer rather than a TargetMachine since the only thing it wants is DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210366 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 5 years ago
13 changed file(s) with 16 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
3636 const DataLayout *getDataLayout() const { return DL; }
3737
3838 public:
39 explicit TargetSelectionDAGInfo(const TargetMachine &TM);
39 explicit TargetSelectionDAGInfo(const DataLayout *DL);
4040 virtual ~TargetSelectionDAGInfo();
4141
4242 /// EmitTargetCodeForMemcpy - Emit target-specific code that performs a
1414 #include "llvm/Target/TargetMachine.h"
1515 using namespace llvm;
1616
17 TargetSelectionDAGInfo::TargetSelectionDAGInfo(const TargetMachine &TM)
18 : DL(TM.getDataLayout()) {
17 TargetSelectionDAGInfo::TargetSelectionDAGInfo(const DataLayout *DL)
18 : DL(DL) {
1919 }
2020
2121 TargetSelectionDAGInfo::~TargetSelectionDAGInfo() {
1616 #define DEBUG_TYPE "aarch64-selectiondag-info"
1717
1818 AArch64SelectionDAGInfo::AArch64SelectionDAGInfo(const TargetMachine &TM)
19 : TargetSelectionDAGInfo(TM),
19 : TargetSelectionDAGInfo(TM.getDataLayout()),
2020 Subtarget(&TM.getSubtarget()) {}
2121
2222 AArch64SelectionDAGInfo::~AArch64SelectionDAGInfo() {}
1818 #define DEBUG_TYPE "arm-selectiondag-info"
1919
2020 ARMSelectionDAGInfo::ARMSelectionDAGInfo(const TargetMachine &TM)
21 : TargetSelectionDAGInfo(TM),
22 Subtarget(&TM.getSubtarget()) {
23 }
21 : TargetSelectionDAGInfo(TM.getDataLayout()),
22 Subtarget(&TM.getSubtarget()) {}
2423
2524 ARMSelectionDAGInfo::~ARMSelectionDAGInfo() {
2625 }
1717
1818 bool llvm::flag_aligned_memcpy;
1919
20 HexagonSelectionDAGInfo::HexagonSelectionDAGInfo(const HexagonTargetMachine
21 &TM)
22 : TargetSelectionDAGInfo(TM) {
23 }
20 HexagonSelectionDAGInfo::HexagonSelectionDAGInfo(const HexagonTargetMachine &TM)
21 : TargetSelectionDAGInfo(TM.getDataLayout()) {}
2422
2523 HexagonSelectionDAGInfo::~HexagonSelectionDAGInfo() {
2624 }
1616 #define DEBUG_TYPE "msp430-selectiondag-info"
1717
1818 MSP430SelectionDAGInfo::MSP430SelectionDAGInfo(const MSP430TargetMachine &TM)
19 : TargetSelectionDAGInfo(TM) {
20 }
19 : TargetSelectionDAGInfo(TM.getDataLayout()) {}
2120
2221 MSP430SelectionDAGInfo::~MSP430SelectionDAGInfo() {
2322 }
1616 #define DEBUG_TYPE "mips-selectiondag-info"
1717
1818 MipsSelectionDAGInfo::MipsSelectionDAGInfo(const MipsTargetMachine &TM)
19 : TargetSelectionDAGInfo(TM) {
20 }
19 : TargetSelectionDAGInfo(TM.getDataLayout()) {}
2120
2221 MipsSelectionDAGInfo::~MipsSelectionDAGInfo() {
2322 }
8282 CodeGenOpt::Level OL, bool is64bit)
8383 : LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
8484 Subtarget(TT, CPU, FS, is64bit), DL(computeDataLayout(Subtarget)),
85 InstrInfo(*this), TLInfo(*this), TSInfo(*this),
85 InstrInfo(*this), TLInfo(*this), TSInfo(&DL),
8686 FrameLowering(
8787 *this, is64bit) /*FrameInfo(TargetFrameInfo::StackGrowsUp, 8, 0)*/ {
8888 initAsmInfo();
1616 #define DEBUG_TYPE "powerpc-selectiondag-info"
1717
1818 PPCSelectionDAGInfo::PPCSelectionDAGInfo(const PPCTargetMachine &TM)
19 : TargetSelectionDAGInfo(TM) {
19 : TargetSelectionDAGInfo(TM.getDataLayout()) {
2020 }
2121
2222 PPCSelectionDAGInfo::~PPCSelectionDAGInfo() {
1616 #define DEBUG_TYPE "sparc-selectiondag-info"
1717
1818 SparcSelectionDAGInfo::SparcSelectionDAGInfo(const SparcTargetMachine &TM)
19 : TargetSelectionDAGInfo(TM) {
19 : TargetSelectionDAGInfo(TM.getDataLayout()) {
2020 }
2121
2222 SparcSelectionDAGInfo::~SparcSelectionDAGInfo() {
1919
2020 SystemZSelectionDAGInfo::
2121 SystemZSelectionDAGInfo(const SystemZTargetMachine &TM)
22 : TargetSelectionDAGInfo(TM) {
22 : TargetSelectionDAGInfo(TM.getDataLayout()) {
2323 }
2424
2525 SystemZSelectionDAGInfo::~SystemZSelectionDAGInfo() {
1818 #define DEBUG_TYPE "x86-selectiondag-info"
1919
2020 X86SelectionDAGInfo::X86SelectionDAGInfo(const X86TargetMachine &TM) :
21 TargetSelectionDAGInfo(TM),
21 TargetSelectionDAGInfo(TM.getDataLayout()),
2222 Subtarget(&TM.getSubtarget()),
2323 TLI(*TM.getTargetLowering()) {
2424 }
1616 #define DEBUG_TYPE "xcore-selectiondag-info"
1717
1818 XCoreSelectionDAGInfo::XCoreSelectionDAGInfo(const XCoreTargetMachine &TM)
19 : TargetSelectionDAGInfo(TM) {
20 }
19 : TargetSelectionDAGInfo(TM.getDataLayout()) {}
2120
2221 XCoreSelectionDAGInfo::~XCoreSelectionDAGInfo() {
2322 }