[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h
Evan Cheng
evan.cheng at apple.com
Wed Nov 1 15:00:07 PST 2006
Changes in directory llvm/include/llvm/Target:
TargetInstrInfo.h updated: 1.100 -> 1.101
---
Log message:
Added getTiedToSrcOperand() to check for two-address'ness.
---
Diffs of the changes: (+5 -1)
TargetInstrInfo.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.100 llvm/include/llvm/Target/TargetInstrInfo.h:1.101
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.100 Tue Oct 31 18:25:20 2006
+++ llvm/include/llvm/Target/TargetInstrInfo.h Wed Nov 1 16:59:52 2006
@@ -230,7 +230,7 @@
/// getOperandConstraint - Returns the value of the specific constraint if
/// it is set. Returns -1 if it is not set.
int getOperandConstraint(MachineOpCode Opcode, unsigned OpNum,
- OperandConstraint Constraint) {
+ OperandConstraint Constraint) const {
assert(OpNum < get(Opcode).numOperands &&
"Invalid operand # of TargetInstrInfo");
if (get(Opcode).OpInfo[OpNum].Constraints & (1 << Constraint)) {
@@ -240,6 +240,10 @@
return -1;
}
+ /// getTiedToSrcOperand - Returns the operand that is tied to the specified
+ /// dest operand. Returns -1 if there isn't one.
+ int getTiedToSrcOperand(MachineOpCode Opcode, unsigned OpNum) const;
+
/// getDWARF_LABELOpcode - Return the opcode of the target's DWARF_LABEL
/// instruction if it has one. This is used by codegen passes that update
/// DWARF line number info as they modify the code.
More information about the llvm-commits
mailing list