mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Add TargetInstrInfo predication hooks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -383,6 +383,20 @@ public:
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// isPredicatable - True if the instruction can be converted into a
|
||||||
|
/// predicated instruction.
|
||||||
|
virtual bool isPredicatable(MachineInstr *MI) const {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// PredicateInstruction - Convert the instruction into a predicated
|
||||||
|
/// instruction.
|
||||||
|
virtual void PredicateInstruction(MachineInstr *MI,
|
||||||
|
std::vector<MachineOperand> &Cond) const {
|
||||||
|
assert(0 && "Target didn't implement PredicateInstruction!");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
|
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
|
||||||
/// values.
|
/// values.
|
||||||
virtual const TargetRegisterClass *getPointerRegClass() const {
|
virtual const TargetRegisterClass *getPointerRegClass() const {
|
||||||
|
Reference in New Issue
Block a user