summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-01 02:18:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-01 02:18:06 +0000
commit71c2d65e74679ed9381ccbf7456e42443a5a7ca6 (patch)
tree717950de913674b00a609f4a8bfe5f83f9077805
parent9be123c56880f43f9afcff2b8eca7f25c9c029f4 (diff)
downloadbcm5719-llvm-71c2d65e74679ed9381ccbf7456e42443a5a7ca6.tar.gz
bcm5719-llvm-71c2d65e74679ed9381ccbf7456e42443a5a7ca6.zip
Clean up interface.
llvm-svn: 34769
-rw-r--r--llvm/include/llvm/CodeGen/RegisterScavenging.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/llvm/include/llvm/CodeGen/RegisterScavenging.h b/llvm/include/llvm/CodeGen/RegisterScavenging.h
index 52dae023ee9..c8e2862f053 100644
--- a/llvm/include/llvm/CodeGen/RegisterScavenging.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud