diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-28 18:01:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-28 18:01:21 +0000 |
commit | 601fc7c71c252e7d5748ecb64a1600ab1e333b5d (patch) | |
tree | 86fc4aaed895ff71a6c87496a984b8484233fca4 /lib/Target/SparcV9/LiveVar/BBLiveVar.h | |
parent | b84a2ba877c670af013056c514fc80a56845fb87 (diff) | |
download | llvm-601fc7c71c252e7d5748ecb64a1600ab1e333b5d.tar.gz llvm-601fc7c71c252e7d5748ecb64a1600ab1e333b5d.tar.bz2 llvm-601fc7c71c252e7d5748ecb64a1600ab1e333b5d.tar.xz |
Eliminate uses of MachineBasicBlock::get
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/LiveVar/BBLiveVar.h')
-rw-r--r-- | lib/Target/SparcV9/LiveVar/BBLiveVar.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.h b/lib/Target/SparcV9/LiveVar/BBLiveVar.h index 0eed3375ab..eada3a7f08 100644 --- a/lib/Target/SparcV9/LiveVar/BBLiveVar.h +++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.h @@ -13,6 +13,7 @@ #include <map> class BasicBlock; class Value; +class MachineBasicBlock; enum LiveVarDebugLevel_t { LV_DEBUG_None, @@ -25,9 +26,10 @@ extern LiveVarDebugLevel_t DEBUG_LV; class BBLiveVar : public Annotation { const BasicBlock &BB; // pointer to BasicBlock + MachineBasicBlock &MBB; // Pointer to MachineBasicBlock unsigned POID; // Post-Order ID - ValueSet DefSet; // Def set (with no preceding uses) for LV analysis + ValueSet DefSet; // Def set (with no preceding uses) for LV analysis ValueSet InSet, OutSet; // In & Out for LV analysis bool InSetChanged, OutSetChanged; // set if the InSet/OutSet is modified @@ -49,16 +51,19 @@ class BBLiveVar : public Annotation { void calcDefUseSets(); // calculates the Def & Use sets for this BB - BBLiveVar(const BasicBlock &BB, unsigned POID); + BBLiveVar(const BasicBlock &BB, MachineBasicBlock &MBB, unsigned POID); ~BBLiveVar() {} // make dtor private public: - static BBLiveVar *CreateOnBB(const BasicBlock &BB, unsigned POID); + static BBLiveVar *CreateOnBB(const BasicBlock &BB, MachineBasicBlock &MBB, + unsigned POID); static BBLiveVar *GetFromBB(const BasicBlock &BB); static void RemoveFromBB(const BasicBlock &BB); inline bool isInSetChanged() const { return InSetChanged; } inline bool isOutSetChanged() const { return OutSetChanged; } + MachineBasicBlock &getMachineBasicBlock() const { return MBB; } + inline unsigned getPOId() const { return POID; } bool applyTransferFunc(); // calcultes the In in terms of Out |