[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h
Evan Cheng
evan.cheng at apple.com
Tue May 15 18:59:15 PDT 2007
Changes in directory llvm/include/llvm/Target:
TargetInstrInfo.h updated: 1.115 -> 1.116
---
Log message:
Add TargetInstrInfo predication hooks.
---
Diffs of the changes: (+14 -0)
TargetInstrInfo.h | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.115 llvm/include/llvm/Target/TargetInstrInfo.h:1.116
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.115 Mon May 14 20:21:27 2007
+++ llvm/include/llvm/Target/TargetInstrInfo.h Tue May 15 20:58:56 2007
@@ -383,6 +383,20 @@
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 {
More information about the llvm-commits
mailing list