[llvm-commits] CVS: llvm/include/llvm/Target/MRegisterInfo.h

Evan Cheng evan.cheng at apple.com
Tue Mar 20 01:06:12 PDT 2007



Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.101 -> 1.102
---
Log message:

Added MRegisterInfo hook to re-materialize an instruction.

---
Diffs of the changes:  (+7 -0)

 MRegisterInfo.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.101 llvm/include/llvm/Target/MRegisterInfo.h:1.102
--- llvm/include/llvm/Target/MRegisterInfo.h:1.101	Tue Mar  6 04:04:38 2007
+++ llvm/include/llvm/Target/MRegisterInfo.h	Tue Mar 20 03:05:54 2007
@@ -374,6 +374,13 @@
                             unsigned DestReg, unsigned SrcReg,
                             const TargetRegisterClass *RC) const = 0;
 
+  /// reMaterialize - Re-issue the specified 'original' instruction at the
+  /// specific location targeting a new destination register.
+  virtual void reMaterialize(MachineBasicBlock &MBB,
+                             MachineBasicBlock::iterator MI,
+                             unsigned DestReg,
+                             const MachineInstr *Orig) const = 0;
+
   /// foldMemoryOperand - Attempt to fold a load or store of the
   /// specified stack slot into the specified machine instruction for
   /// the specified operand.  If this is possible, a new instruction






More information about the llvm-commits mailing list