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:
parent
407b92f7f4
commit
7fe6d7cb7e
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user