1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Add TargetInstrInfo predication hooks.

llvm-svn: 37091
This commit is contained in:
Evan Cheng 2007-05-16 01:58:56 +00:00
parent 407b92f7f4
commit 7fe6d7cb7e

View File

@ -383,6 +383,20 @@ public:
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
/// values.
virtual const TargetRegisterClass *getPointerRegClass() const {