aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/LiveVar/BBLiveVar.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/LiveVar/BBLiveVar.h')
-rw-r--r--lib/Analysis/LiveVar/BBLiveVar.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Analysis/LiveVar/BBLiveVar.h b/lib/Analysis/LiveVar/BBLiveVar.h
index 1fc91f1..442eb22 100644
--- a/lib/Analysis/LiveVar/BBLiveVar.h
+++ b/lib/Analysis/LiveVar/BBLiveVar.h
@@ -31,11 +31,12 @@ class BBLiveVar {
const BasicBlock *PredBB);
// To add an operand which is a def
- void addDef(const Value *Op);
+ void addDef(const Value *Op);
// To add an operand which is a use
- void addUse(const Value *Op);
+ void addUse(const Value *Op);
+ void calcDefUseSets(); // calculates the Def & Use sets for this BB
public:
BBLiveVar(const BasicBlock *BB, unsigned POID);
@@ -44,18 +45,16 @@ class BBLiveVar {
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
// calculates Out set using In sets of the predecessors
bool applyFlowFunc(std::map<const BasicBlock *, BBLiveVar *> &LVMap);
- inline const ValueSet *getOutSet() const { return &OutSet; }
- inline const ValueSet *getInSet() const { return &InSet; }
+ inline const ValueSet &getOutSet() const { return OutSet; }
+ inline const ValueSet &getInSet() const { return InSet; }
void printAllSets() const; // for printing Def/In/Out sets
void printInOutSets() const; // for printing In/Out sets
};
#endif
-