mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Make FastISel's constructor protected, and give it a destructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -34,10 +34,6 @@ class FastISel {
|
|||||||
const TargetInstrInfo *TII;
|
const TargetInstrInfo *TII;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FastISel(MachineBasicBlock *mbb, MachineFunction *mf,
|
|
||||||
const TargetInstrInfo *tii)
|
|
||||||
: MBB(mbb), MF(mf), TII(tii) {}
|
|
||||||
|
|
||||||
/// SelectInstructions - Do "fast" instruction selection over the
|
/// SelectInstructions - Do "fast" instruction selection over the
|
||||||
/// LLVM IR instructions in the range [Begin, N) where N is either
|
/// LLVM IR instructions in the range [Begin, N) where N is either
|
||||||
/// End or the first unsupported instruction. Return N.
|
/// End or the first unsupported instruction. Return N.
|
||||||
@ -48,6 +44,12 @@ public:
|
|||||||
DenseMap<const Value*, unsigned> &ValueMap);
|
DenseMap<const Value*, unsigned> &ValueMap);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
FastISel(MachineBasicBlock *mbb, MachineFunction *mf,
|
||||||
|
const TargetInstrInfo *tii)
|
||||||
|
: MBB(mbb), MF(mf), TII(tii) {}
|
||||||
|
|
||||||
|
virtual ~FastISel();
|
||||||
|
|
||||||
virtual unsigned FastEmit_(MVT::SimpleValueType VT,
|
virtual unsigned FastEmit_(MVT::SimpleValueType VT,
|
||||||
ISD::NodeType Opcode);
|
ISD::NodeType Opcode);
|
||||||
virtual unsigned FastEmit_r(MVT::SimpleValueType VT,
|
virtual unsigned FastEmit_r(MVT::SimpleValueType VT,
|
||||||
|
@ -45,6 +45,8 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator En
|
|||||||
return I;
|
return I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FastISel::~FastISel() {}
|
||||||
|
|
||||||
unsigned FastISel::FastEmit_(MVT::SimpleValueType, ISD::NodeType) {
|
unsigned FastISel::FastEmit_(MVT::SimpleValueType, ISD::NodeType) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user