Clean up interface.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 1 Mar 2007 02:18:06 +0000 (02:18 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 1 Mar 2007 02:18:06 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34769 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/RegisterScavenging.h

index 52dae023ee981907b2520d1496faa1db080eea6b..c8e2862f053296608ef5e7c253cd290358e50a7f 100644 (file)
@@ -45,16 +45,9 @@ public:
   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 @@ public:
                          bool ExCalleeSaved = false) const;
 
 private:
-  /// clear - Clear states.
-  ///
-  void clear();
-
   /// CalleeSavedrRegs - A bitvector of callee saved registers for the target.
   ///
   BitVector CalleeSavedRegs;