[llvm-commits] CVS: llvm/include/llvm/CodeGen/RegisterScavenging.h

Evan Cheng evan.cheng at apple.com
Wed Feb 28 18:18:23 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

RegisterScavenging.h updated: 1.5 -> 1.6
---
Log message:

Clean up interface.

---
Diffs of the changes:  (+3 -14)

 RegisterScavenging.h |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)


Index: llvm/include/llvm/CodeGen/RegisterScavenging.h
diff -u llvm/include/llvm/CodeGen/RegisterScavenging.h:1.5 llvm/include/llvm/CodeGen/RegisterScavenging.h:1.6
--- llvm/include/llvm/CodeGen/RegisterScavenging.h:1.5	Tue Feb 27 16:58:43 2007
+++ llvm/include/llvm/CodeGen/RegisterScavenging.h	Wed Feb 28 20:18:06 2007
@@ -45,16 +45,9 @@
   RegScavenger(MachineBasicBlock *mbb)
     : MBB(mbb), NumPhysRegs(0), Tracking(false) {};
 
-  /// Init - Initialize the states.
-  ///
-  void init(MachineBasicBlock *mbb);
-
-  /// Reset - Discard previous states and re-initialize the states given for
-  /// the specific basic block.
-  void reset(MachineBasicBlock *mbb) {
-    clear();
-    init(mbb);
-  }
+  /// enterBasicBlock - Start tracking liveness from the begin of the specific
+  /// basic block.
+  void enterBasicBlock(MachineBasicBlock *mbb);
 
   /// forward / backward - Move the internal MBB iterator and update register
   /// states.
@@ -91,10 +84,6 @@
                          bool ExCalleeSaved = false) const;
 
 private:
-  /// clear - Clear states.
-  ///
-  void clear();
-
   /// CalleeSavedrRegs - A bitvector of callee saved registers for the target.
   ///
   BitVector CalleeSavedRegs;






More information about the llvm-commits mailing list