Another API change to MRegisterInfo::foldMemoryOperand. Instead of a
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 14 Mar 2004 20:14:27 +0000 (20:14 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 14 Mar 2004 20:14:27 +0000 (20:14 +0000)
MachineBasicBlock::iterator take a MachineInstr*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12392 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MRegisterInfo.h
lib/Target/X86/X86RegisterInfo.cpp
lib/Target/X86/X86RegisterInfo.h

index b8fc17d23ed0ad349804ae1b2ce34774b5b694b6..e54a354f138b69621f09e5606ba7850b59f00a67 100644 (file)
@@ -259,7 +259,7 @@ public:
   /// is returned with the specified operand folded, otherwise NULL is
   /// returned. The client is responsible for removing the old
   /// instruction and adding the new one in the instruction stream
-  virtual MachineInstr* foldMemoryOperand(MachineBasicBlock::iterator MI,
+  virtual MachineInstr* foldMemoryOperand(MachineInstr* MI,
                                           unsigned OpNum,
                                           int FrameIndex) const {
     return NULL;
index 211cd6e6c8de8d6f5f31a32b0f704fc1f21095ea..b904c344b209f38be8cf9555646af666cc6c39e8 100644 (file)
@@ -132,10 +132,9 @@ static MachineInstr *MakeRMIInst(unsigned Opcode, unsigned FrameIndex,
 }
 
 
-MachineInstr* X86RegisterInfo::foldMemoryOperand(
-  MachineBasicBlock::iterator MI,
-  unsigned i,
-  int FrameIndex) const {
+MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr* MI,
+                                                 unsigned i,
+                                                 int FrameIndex) const {
   if (NoFusing) return NULL;
 
   /// FIXME: This should obviously be autogenerated by tablegen when patterns
index 3fd6ebec509ec8bb6f0b0fb335d0063cc9b8cece..b67091cd404e853af554f4ea4a7afe279073c1e1 100644 (file)
@@ -48,7 +48,7 @@ struct X86RegisterInfo : public X86GenRegisterInfo {
   /// folding and return true, otherwise it should return false.  If it folds
   /// the instruction, it is likely that the MachineInstruction the iterator
   /// references has been changed.
-  virtual MachineInstr* foldMemoryOperand(MachineBasicBlock::iterator MI,
+  virtual MachineInstr* foldMemoryOperand(MachineInstr* MI,
                                           unsigned OpNum,
                                           int FrameIndex) const;