[llvm-commits] CVS: llvm/lib/CodeGen/MachineInstr.cpp
Evan Cheng
evan.cheng at apple.com
Wed May 16 13:55:52 PDT 2007
Changes in directory llvm/lib/CodeGen:
MachineInstr.cpp updated: 1.149 -> 1.150
---
Log message:
Rename M_PREDICATED to M_PREDICABLE; Moved isPredicable() to MachineInstr.
---
Diffs of the changes: (+6 -2)
MachineInstr.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/MachineInstr.cpp
diff -u llvm/lib/CodeGen/MachineInstr.cpp:1.149 llvm/lib/CodeGen/MachineInstr.cpp:1.150
--- llvm/lib/CodeGen/MachineInstr.cpp:1.149 Mon May 14 20:26:09 2007
+++ llvm/lib/CodeGen/MachineInstr.cpp Wed May 16 15:55:34 2007
@@ -184,6 +184,10 @@
}
}
+bool MachineInstr::isPredicable() const {
+ return TID->Flags & M_PREDICABLE;
+}
+
/// findRegisterUseOperandIdx() - Returns the MachineOperand that is a use of
/// the specific register or -1 if it is not found. It further tightening
/// the search criteria to a use that kills the register if isKill is true.
@@ -212,7 +216,7 @@
// is used to represent the predicate.
MachineOperand *MachineInstr::findFirstPredOperand() {
const TargetInstrDescriptor *TID = getInstrDescriptor();
- if (TID->Flags & M_PREDICATED) {
+ if (TID->Flags & M_PREDICABLE) {
for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND))
return &getOperand(i);
@@ -244,7 +248,7 @@
/// copyPredicates - Copies predicate operand(s) from MI.
void MachineInstr::copyPredicates(const MachineInstr *MI) {
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
- if (TID->Flags & M_PREDICATED) {
+ if (TID->Flags & M_PREDICABLE) {
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
const MachineOperand &MO = MI->getOperand(i);
More information about the llvm-commits
mailing list