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

Alkis Evlogimenos alkis at niobe.cs.uiuc.edu
Mon Feb 16 22:34:20 PST 2004


Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.31 -> 1.32

---
Log message:

Add API to check and fold memory operands into instructions.


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

Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.31 llvm/include/llvm/Target/MRegisterInfo.h:1.32
--- llvm/include/llvm/Target/MRegisterInfo.h:1.31	Sat Feb 14 13:49:05 2004
+++ llvm/include/llvm/Target/MRegisterInfo.h	Mon Feb 16 22:33:18 2004
@@ -242,6 +242,16 @@
                            const TargetRegisterClass *RC) const = 0;
 
 
+  virtual bool canFoldMemoryOperand(MachineInstr* MI, unsigned i) const {
+    return false;
+  }
+
+  virtual int foldMemoryOperand(MachineInstr* MI,
+                                unsigned i,
+                                int FrameIndex) const {
+    return 0;
+  }
+
   /// getCallFrameSetup/DestroyOpcode - These methods return the opcode of the
   /// frame setup/destroy instructions if they exist (-1 otherwise).  Some
   /// targets use pseudo instructions in order to abstract away the difference





More information about the llvm-commits mailing list