[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Evan Cheng
evan.cheng at apple.com
Mon May 14 18:25:23 PDT 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.218 -> 1.219
---
Log message:
Added getNumExplicitOperands and findFirstPredOperand.
---
Diffs of the changes: (+10 -0)
MachineInstr.h | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.218 llvm/include/llvm/CodeGen/MachineInstr.h:1.219
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.218 Tue May 1 00:57:01 2007
+++ llvm/include/llvm/CodeGen/MachineInstr.h Mon May 14 20:25:06 2007
@@ -378,6 +378,9 @@
return Operands[i];
}
+ /// getNumExplicitOperands - Returns the number of non-implicit operands.
+ ///
+ unsigned getNumExplicitOperands() const;
/// isIdenticalTo - Return true if this instruction is identical to (same
/// opcode and same operands as) the specified instruction.
@@ -413,11 +416,18 @@
/// findRegisterDefOperand() - Returns the MachineOperand that is a def of
/// the specific register or NULL if it is not found.
MachineOperand *findRegisterDefOperand(unsigned Reg);
+
+ /// findFirstPredOperand() - Find the first operand in the operand list that
+ // is used to represent the predicate.
+ MachineOperand *findFirstPredOperand();
/// copyKillDeadInfo - Copies kill / dead operand properties from MI.
///
void copyKillDeadInfo(const MachineInstr *MI);
+ /// copyPredicates - Copies predicate operand(s) from MI.
+ void copyPredicates(const MachineInstr *MI);
+
//
// Debugging support
//
More information about the llvm-commits
mailing list