summaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/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
commit91661812573e2f2a3d5bf254665615c86f7a00fe (patch)
tree281c2d297d83025399cd568bdec61003b2005e01 /lib/Target/SparcV9/LiveVar/BBLiveVar.h
parentcc3a0dbb85ee9ca3c694ee6de96bcb3b72f8dd6c (diff)
downloadllvm-91661812573e2f2a3d5bf254665615c86f7a00fe.tar.gz
llvm-91661812573e2f2a3d5bf254665615c86f7a00fe.tar.bz2
llvm-91661812573e2f2a3d5bf254665615c86f7a00fe.tar.xz
LV info on machine instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/LiveVar/BBLiveVar.h')
-rw-r--r--lib/Target/SparcV9/LiveVar/BBLiveVar.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.h b/lib/Target/SparcV9/LiveVar/BBLiveVar.h
index 7917cc2131..e4d5804489 100644
--- a/lib/Target/SparcV9/LiveVar/BBLiveVar.h
+++ b/lib/Target/SparcV9/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