diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-01 02:18:06 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-01 02:18:06 +0000 |
commit | 28654b6205acc56863cdf988eed3e345da11eca3 (patch) | |
tree | e897ba7e8df99c9f0ebf1bf7bf67d1e026a0f7b9 | |
parent | 8e92b4bae298d079e28f4166d335cc662a50d6cc (diff) |
Clean up interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34769 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/RegisterScavenging.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/llvm/CodeGen/RegisterScavenging.h b/include/llvm/CodeGen/RegisterScavenging.h index 52dae023ee..c8e2862f05 100644 --- a/include/llvm/CodeGen/RegisterScavenging.h +++ b/include/llvm/CodeGen/RegisterScavenging.h @@ -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; |