mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Remove caching of the target machine in NVPTXInstrInfo and
update constructor accordingly. llvm-svn: 211840
This commit is contained in:
parent
035afbc45f
commit
8010e246be
@ -29,8 +29,8 @@ using namespace llvm;
|
||||
void NVPTXInstrInfo::anchor() {}
|
||||
|
||||
// FIXME: Add the subtarget support on this constructor.
|
||||
NVPTXInstrInfo::NVPTXInstrInfo(NVPTXTargetMachine &tm)
|
||||
: NVPTXGenInstrInfo(), TM(tm), RegInfo(*TM.getSubtargetImpl()) {}
|
||||
NVPTXInstrInfo::NVPTXInstrInfo(NVPTXSubtarget &STI)
|
||||
: NVPTXGenInstrInfo(), RegInfo(STI) {}
|
||||
|
||||
void NVPTXInstrInfo::copyPhysReg(
|
||||
MachineBasicBlock &MBB, MachineBasicBlock::iterator I, DebugLoc DL,
|
||||
|
@ -24,11 +24,10 @@
|
||||
namespace llvm {
|
||||
|
||||
class NVPTXInstrInfo : public NVPTXGenInstrInfo {
|
||||
NVPTXTargetMachine &TM;
|
||||
const NVPTXRegisterInfo RegInfo;
|
||||
virtual void anchor();
|
||||
public:
|
||||
explicit NVPTXInstrInfo(NVPTXTargetMachine &TM);
|
||||
explicit NVPTXInstrInfo(NVPTXSubtarget &STI);
|
||||
|
||||
const NVPTXRegisterInfo &getRegisterInfo() const { return RegInfo; }
|
||||
|
||||
|
@ -84,7 +84,7 @@ NVPTXTargetMachine::NVPTXTargetMachine(const Target &T, StringRef TT,
|
||||
CodeGenOpt::Level OL, bool is64bit)
|
||||
: LLVMTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL),
|
||||
Subtarget(TT, CPU, FS, is64bit), DL(computeDataLayout(Subtarget)),
|
||||
InstrInfo(*this), TLInfo(*this), TSInfo(&DL),
|
||||
InstrInfo(Subtarget), TLInfo(*this), TSInfo(&DL),
|
||||
FrameLowering(*this, is64bit) {
|
||||
initAsmInfo();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user