summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LiveVar/BBLiveVar.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 16:31:03 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 16:31:03 +0000
commit7ad6519f90da236e97e58200b28244a976b968d3 (patch)
tree879051b200eb23b950d3ee82c4eae35fedef1ab6 /llvm/lib/Analysis/LiveVar/BBLiveVar.h
parent28d8eb2286cc77056db263309dbad23973c1e513 (diff)
downloadbcm5719-llvm-7ad6519f90da236e97e58200b28244a976b968d3.tar.gz
bcm5719-llvm-7ad6519f90da236e97e58200b28244a976b968d3.zip
Cut down include pollution and number of frivolous consts.
llvm-svn: 1683
Diffstat (limited to 'llvm/lib/Analysis/LiveVar/BBLiveVar.h')
-rw-r--r--llvm/lib/Analysis/LiveVar/BBLiveVar.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/llvm/lib/Analysis/LiveVar/BBLiveVar.h b/llvm/lib/Analysis/LiveVar/BBLiveVar.h
index 147d63321c8..08ccd2fe5c0 100644
--- a/llvm/lib/Analysis/LiveVar/BBLiveVar.h
+++ b/llvm/lib/Analysis/LiveVar/BBLiveVar.h
@@ -10,17 +10,11 @@
#include "LiveVarSet.h"
#include "LiveVarMap.h"
+class Method;
-#include "llvm/BasicBlock.h"
-#include "llvm/Instruction.h"
-#include "llvm/Type.h"
-#include "llvm/iOther.h"
-
-
-class BBLiveVar
-{
+class BBLiveVar {
const BasicBlock* BaseBB; // pointer to BasicBlock
- unsigned int POId; // Post-Order ID
+ unsigned POId; // Post-Order ID
LiveVarSet DefSet; // Def set for LV analysis
LiveVarSet InSet, OutSet; // In & Out for LV analysis
@@ -31,9 +25,9 @@ class BBLiveVar
std::hash_map<const Value *, const BasicBlock *> PhiArgMap;
// method to propogate an InSet to OutSet of a predecessor
- bool setPropagate( LiveVarSet *const OutSetOfPred,
- const LiveVarSet *const InSetOfThisBB,
- const BasicBlock *const PredBB);
+ bool setPropagate( LiveVarSet *OutSetOfPred,
+ const LiveVarSet *InSetOfThisBB,
+ const BasicBlock *PredBB);
// To add an operand which is a def
void addDef(const Value *Op);
@@ -42,12 +36,12 @@ class BBLiveVar
void addUse(const Value *Op);
public:
- BBLiveVar( const BasicBlock* baseBB, unsigned int POId);
+ BBLiveVar(const BasicBlock* baseBB, unsigned POId);
inline bool isInSetChanged() const { return InSetChanged; }
inline bool isOutSetChanged() const { return OutSetChanged; }
- inline unsigned int getPOId() const { return POId; }
+ inline unsigned getPOId() const { return POId; }
void calcDefUseSets() ; // calculates the Def & Use sets for this BB
bool applyTransferFunc(); // calcultes the In in terms of Out
OpenPOWER on IntegriCloud