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

Alkis Evlogimenos alkis at cs.uiuc.edu
Tue Nov 4 17:08:01 PST 2003


Changes in directory llvm/include/llvm/Target:

MRegisterInfo.h updated: 1.23 -> 1.24

---
Log message:

Update documentation since it was misleading: make it clear that a
negative instruction count is returned if instructions are removed
from a basic block.


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

Index: llvm/include/llvm/Target/MRegisterInfo.h
diff -u llvm/include/llvm/Target/MRegisterInfo.h:1.23 llvm/include/llvm/Target/MRegisterInfo.h:1.24
--- llvm/include/llvm/Target/MRegisterInfo.h:1.23	Tue Nov  4 16:57:09 2003
+++ llvm/include/llvm/Target/MRegisterInfo.h	Tue Nov  4 17:07:00 2003
@@ -186,8 +186,8 @@
 
   //===--------------------------------------------------------------------===//
   // All basic block modifier functions below return the number of
-  // instructions added to/removed from the basic block passed as their
-  // first argument.
+  // instructions added to (negative if removed from) the basic block
+  // passed as their first argument.
   //
   // FIXME: This is only needed because we use a std::vector instead
   // of an ilist to keep MachineBasicBlock instructions. Inserting an
@@ -199,10 +199,10 @@
   //
 
   //===--------------------------------------------------------------------===//
-  // Interfaces used by the register allocator and stack frame manipulation
-  // passes to move data around between registers, immediates and memory.
-  // The return value is the number of instructions added/deleted to/from the
-  // basic block.
+  // Interfaces used by the register allocator and stack frame
+  // manipulation passes to move data around between registers,
+  // immediates and memory.  The return value is the number of
+  // instructions added to (negative if removed from) the basic block.
   //
 
   virtual int storeRegToStackSlot(MachineBasicBlock &MBB,
@@ -237,7 +237,7 @@
   /// for eliminating these instructions, replacing them with concrete
   /// instructions.  This method need only be implemented if using call frame
   /// setup/destroy pseudo instructions. The return value is the number of
-  /// instructions added/deleted to/from the basic block.
+  /// instructions added to (negative if removed from) the basic block.
   ///
   virtual int eliminateCallFramePseudoInstr(MachineFunction &MF,
 					     MachineBasicBlock &MBB,
@@ -252,7 +252,8 @@
   /// before the specified functions frame layout (MF.getFrameInfo()) is
   /// finalized.  Once the frame is finalized, MO_FrameIndex operands are
   /// replaced with direct constants.  This method is optional. The return value
-  /// is the number of instructions added/deleted to/from the basic block
+  /// is the number of instructions added to (negative if removed from) the
+  /// basic block
   ///
   virtual int processFunctionBeforeFrameFinalized(MachineFunction &MF) const {
     return 0;
@@ -264,14 +265,15 @@
   /// eliminated by this method.  This method may modify or replace the
   /// specified instruction, as long as it keeps the iterator pointing the the
   /// finished product. The return value is the number of instructions
-  /// added/deleted to/from the basic block
+  /// added to (negative if removed from) the basic block.
   ///
   virtual int eliminateFrameIndex(MachineFunction &MF,
                                   MachineBasicBlock::iterator &II) const = 0;
 
   /// emitProlog/emitEpilog - These methods insert prolog and epilog code into
   /// the function. The return value is the number of instructions
-  /// added/deleted to/from the basic block (entry for prologue, 
+  /// added to (negative if removed from) the basic block (entry for prologue).
+  ///
   virtual int emitPrologue(MachineFunction &MF) const = 0;
   virtual int emitEpilogue(MachineFunction &MF,
                            MachineBasicBlock &MBB) const = 0;





More information about the llvm-commits mailing list