summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LiveVar/BBLiveVar.h
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-08-20 21:11:01 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-08-20 21:11:01 +0000
commitec1a5411d718059d4d05bc64e526f428f89787b7 (patch)
treecdecb153131848845f850bdc72baa363d4d568a3 /llvm/lib/Analysis/LiveVar/BBLiveVar.h
parent8c99a3298230457ab06e92af23fd3c79874bccf3 (diff)
downloadbcm5719-llvm-ec1a5411d718059d4d05bc64e526f428f89787b7.tar.gz
bcm5719-llvm-ec1a5411d718059d4d05bc64e526f428f89787b7.zip
LV info on machine instructions
llvm-svn: 359
Diffstat (limited to 'llvm/lib/Analysis/LiveVar/BBLiveVar.h')
-rw-r--r--llvm/lib/Analysis/LiveVar/BBLiveVar.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/LiveVar/BBLiveVar.h b/llvm/lib/Analysis/LiveVar/BBLiveVar.h
index 7917cc21315..e4d5804489d 100644
--- a/llvm/lib/Analysis/LiveVar/BBLiveVar.h
+++ b/llvm/lib/Analysis/LiveVar/BBLiveVar.h
@@ -1,8 +1,8 @@
-/* Title: ValueSet.h
+/* Title: BBLiveVar.h
Author: Ruchira Sasanka
Date: Jun 30, 01
Purpose: This is a wrapper class for BasicBlock which is used by live
- variable anaysis
+ variable anaysis.
*/
#ifndef LIVE_VAR_BB_H
@@ -28,9 +28,10 @@ class BBLiveVar
bool InSetChanged, OutSetChanged; // set if the InSet/OutSet is modified
// map that contains phi args->BB they came
+ // set by calcDefUseSets & used by setPropagate
hash_map<const Value *, const BasicBlock *, hashFuncValue> PhiArgMap;
- // method to propogate an InSet to OutSet of a predecessor
+ // method to propogate an InSet to OutSet of a predecessor
bool setPropagate( LiveVarSet *const OutSetOfPred,
const LiveVarSet *const InSetOfThisBB,
const BasicBlock *const PredBB);
@@ -47,16 +48,18 @@ class BBLiveVar
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
+ // calculates Out set using In sets of the predecessors
bool applyFlowFunc(BBToBBLiveVarMapType LVMap);
inline const LiveVarSet* getOutSet() const { return &OutSet; }
inline const LiveVarSet* getInSet() const { return &InSet; }
- void printAllSets() const; // for printing Def/In/Out sets
- void printInOutSets() const; // for printing In/Out sets
+ void printAllSets() const; // for printing Def/In/Out sets
+ void printInOutSets() const; // for printing In/Out sets
+
+ ~BBLiveVar() { } // nothing to do since only composite objects
+
- //TODO write a destructor to deallocate Def/In.Out sets and PhiArgMap
};
@@ -65,5 +68,6 @@ class BBLiveVar
+
#endif
OpenPOWER on IntegriCloud