[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h
Evan Cheng
evan.cheng at apple.com
Fri Jun 8 14:59:26 PDT 2007
Changes in directory llvm/include/llvm/Target:
TargetInstrInfo.h updated: 1.126 -> 1.127
---
Log message:
Add a utility routine to check for unpredicated terminator instruction.
---
Diffs of the changes: (+6 -2)
TargetInstrInfo.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.126 llvm/include/llvm/Target/TargetInstrInfo.h:1.127
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.126 Wed Jun 6 05:13:55 2007
+++ llvm/include/llvm/Target/TargetInstrInfo.h Fri Jun 8 16:59:04 2007
@@ -399,19 +399,23 @@
abort();
}
- /// isPredicable - Returns true if the instruction is already predicated.
+ /// isPredicated - Returns true if the instruction is already predicated.
///
virtual bool isPredicated(const MachineInstr *MI) const {
return false;
}
+ /// isUnpredicatedTerminator - Returns true if the instruction is a
+ /// terminator instruction that has not been predicated.
+ bool isUnpredicatedTerminator(const MachineInstr *MI) const;
+
/// PredicateInstruction - Convert the instruction into a predicated
/// instruction. It returns true if the operation was successful.
virtual
bool PredicateInstruction(MachineInstr *MI,
const std::vector<MachineOperand> &Pred) const;
- /// SubsumesPredicate - Returns true if the first specified predicated
+ /// SubsumesPredicate - Returns true if the first specified predicate
/// subsumes the second, e.g. GE subsumes GT.
virtual
bool SubsumesPredicate(const std::vector<MachineOperand> &Pred1,
More information about the llvm-commits
mailing list