#error "You shouldn't build this"
#endif
-ARMInstructionSelector::ARMInstructionSelector(const ARMBaseTargetMachine &TM,
- const ARMSubtarget &STI,
+ARMInstructionSelector::ARMInstructionSelector(const ARMSubtarget &STI,
const ARMRegisterBankInfo &RBI)
- : InstructionSelector(), TM(TM), STI(STI), TII(*STI.getInstrInfo()),
+ : InstructionSelector(), TII(*STI.getInstrInfo()),
TRI(*STI.getRegisterInfo()), RBI(RBI) {}
bool ARMInstructionSelector::select(llvm::MachineInstr &I) const {
class ARMInstructionSelector : public InstructionSelector {
public:
- ARMInstructionSelector(const ARMBaseTargetMachine &TM,
- const ARMSubtarget &STI,
+ ARMInstructionSelector(const ARMSubtarget &STI,
const ARMRegisterBankInfo &RBI);
virtual bool select(MachineInstr &I) const override;
private:
- const ARMBaseTargetMachine &TM;
- const ARMSubtarget &STI;
const ARMBaseInstrInfo &TII;
const ARMBaseRegisterInfo &TRI;
const ARMRegisterBankInfo &RBI;
// FIXME: At this point, we can't rely on Subtarget having RBI.
// It's awkward to mix passing RBI and the Subtarget; should we pass
// TII/TRI as well?
- GISel->InstSelector.reset(new ARMInstructionSelector(*this, *I, *RBI));
+ GISel->InstSelector.reset(new ARMInstructionSelector(*I, *RBI));
GISel->RegBankInfo.reset(RBI);
#endif