mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Move AArch64SelectionDAGInfo down to the subtarget.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d1e002914
commit
30ad4cb09b
@ -44,7 +44,7 @@ AArch64Subtarget::AArch64Subtarget(const std::string &TT,
|
||||
? "e-m:o-i64:64-i128:128-n32:64-S128"
|
||||
: (LittleEndian ? "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
: "E-m:e-i64:64-i128:128-n32:64-S128")),
|
||||
FrameLowering() {
|
||||
FrameLowering(), TSInfo(&DL) {
|
||||
// Determine default and user-specified characteristics
|
||||
|
||||
if (CPUString.empty())
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "AArch64FrameLowering.h"
|
||||
#include "AArch64RegisterInfo.h"
|
||||
#include "AArch64SelectionDAGInfo.h"
|
||||
#include "llvm/IR/DataLayout.h"
|
||||
#include "llvm/Target/TargetSubtargetInfo.h"
|
||||
#include <string>
|
||||
@ -53,6 +54,7 @@ protected:
|
||||
|
||||
const DataLayout DL;
|
||||
AArch64FrameLowering FrameLowering;
|
||||
AArch64SelectionDAGInfo TSInfo;
|
||||
|
||||
public:
|
||||
/// This constructor initializes the data members to match that
|
||||
@ -60,6 +62,7 @@ public:
|
||||
AArch64Subtarget(const std::string &TT, const std::string &CPU,
|
||||
const std::string &FS, bool LittleEndian);
|
||||
|
||||
const AArch64SelectionDAGInfo *getSelectionDAGInfo() const { return &TSInfo; }
|
||||
const AArch64FrameLowering *getFrameLowering() const {
|
||||
return &FrameLowering;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ AArch64TargetMachine::AArch64TargetMachine(const Target &T, StringRef TT,
|
||||
bool LittleEndian)
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, LittleEndian),
|
||||
InstrInfo(Subtarget), TLInfo(*this), TSInfo(getDataLayout()) {
|
||||
InstrInfo(Subtarget), TLInfo(*this) {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,6 @@ protected:
|
||||
private:
|
||||
AArch64InstrInfo InstrInfo;
|
||||
AArch64TargetLowering TLInfo;
|
||||
AArch64SelectionDAGInfo TSInfo;
|
||||
|
||||
public:
|
||||
AArch64TargetMachine(const Target &T, StringRef TT, StringRef CPU,
|
||||
@ -57,7 +56,7 @@ public:
|
||||
return &InstrInfo.getRegisterInfo();
|
||||
}
|
||||
const AArch64SelectionDAGInfo *getSelectionDAGInfo() const override {
|
||||
return &TSInfo;
|
||||
return getSubtargetImpl()->getSelectionDAGInfo();
|
||||
}
|
||||
|
||||
// Pass Pipeline Configuration
|
||||
|
Loading…
x
Reference in New Issue
Block a user