[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sun Dec 28 11:36:01 PST 2003
Changes in directory llvm/include/llvm/Target:
TargetInstrInfo.h updated: 1.52 -> 1.53
---
Log message:
Add TargetInstrInfo::isMoveInstr() to support coalescing in register
allocation.
---
Diffs of the changes: (+10 -0)
Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.52 llvm/include/llvm/Target/TargetInstrInfo.h:1.53
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.52 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Target/TargetInstrInfo.h Sun Dec 28 11:35:08 2003
@@ -214,6 +214,16 @@
return get(Opcode).Flags & M_TERMINATOR_FLAG;
}
+ //
+ // Return true if the instruction is a register to register move and
+ // leave the source and dest operands in the passed parameters.
+ //
+ virtual bool isMoveInstr(const MachineInstr& MI,
+ unsigned& sourceReg,
+ unsigned& destReg) const {
+ return false;
+ }
+
// Check if an instruction can be issued before its operands are ready,
// or if a subsequent instruction that uses its result can be issued
// before the results are ready.
More information about the llvm-commits
mailing list