summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-05 06:52:25 +0000
committerChris Lattner <sabre@nondot.org>2002-02-05 06:52:25 +0000
commit6357a3f42d13dd9d67340ba165a13ba26ed2b10b (patch)
tree6a163d2147da5178add5415d8acfdc645f4cb76d /include
parent2f898d207466bf233b55607e404baca302bc7b5e (diff)
downloadllvm-6357a3f42d13dd9d67340ba165a13ba26ed2b10b.tar.gz
llvm-6357a3f42d13dd9d67340ba165a13ba26ed2b10b.tar.bz2
llvm-6357a3f42d13dd9d67340ba165a13ba26ed2b10b.tar.xz
Convert BBLiveVar to be a BasicBlock annotation, this removes the BB2BBLVMap from MethodLiveVarInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1721 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h9
-rw-r--r--include/llvm/CodeGen/FunctionLiveVarInfo.h9
2 files changed, 6 insertions, 12 deletions
diff --git a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
index d107350dab..41e7b1d5cf 100644
--- a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
+++ b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h
@@ -73,15 +73,14 @@ class BBLiveVar;
class MachineInstr;
class MethodLiveVarInfo : public MethodPass {
- // A map between the BasicBlock and BBLiveVar
- std::map<const BasicBlock *, BBLiveVar *> BB2BBLVMap;
-
// Machine Instr to LiveVarSet Map for providing LVset BEFORE each inst
std::map<const MachineInstr *, const ValueSet *> MInst2LVSetBI;
// Machine Instr to LiveVarSet Map for providing LVset AFTER each inst
std::map<const MachineInstr *, const ValueSet *> MInst2LVSetAI;
+ // Stored Method that the data is computed with respect to
+ const Method *M;
// --------- private methods -----------------------------------------
@@ -89,17 +88,15 @@ class MethodLiveVarInfo : public MethodPass {
void constructBBs(const Method *M);
// do one backward pass over the CFG
- bool doSingleBackwardPass(const Method *M);
+ bool doSingleBackwardPass(const Method *M);
// calculates live var sets for instructions in a BB
void calcLiveVarSetsForBB(const BasicBlock *BB);
-
public:
static AnalysisID ID; // We are an analysis, we must have an ID
MethodLiveVarInfo(AnalysisID id = ID) { assert(id == ID); }
- ~MethodLiveVarInfo() { releaseMemory(); }
// --------- Implement the MethodPass interface ----------------------
diff --git a/include/llvm/CodeGen/FunctionLiveVarInfo.h b/include/llvm/CodeGen/FunctionLiveVarInfo.h
index d107350dab..41e7b1d5cf 100644
--- a/include/llvm/CodeGen/FunctionLiveVarInfo.h
+++ b/include/llvm/CodeGen/FunctionLiveVarInfo.h
@@ -73,15 +73,14 @@ class BBLiveVar;
class MachineInstr;
class MethodLiveVarInfo : public MethodPass {
- // A map between the BasicBlock and BBLiveVar
- std::map<const BasicBlock *, BBLiveVar *> BB2BBLVMap;
-
// Machine Instr to LiveVarSet Map for providing LVset BEFORE each inst
std::map<const MachineInstr *, const ValueSet *> MInst2LVSetBI;
// Machine Instr to LiveVarSet Map for providing LVset AFTER each inst
std::map<const MachineInstr *, const ValueSet *> MInst2LVSetAI;
+ // Stored Method that the data is computed with respect to
+ const Method *M;
// --------- private methods -----------------------------------------
@@ -89,17 +88,15 @@ class MethodLiveVarInfo : public MethodPass {
void constructBBs(const Method *M);
// do one backward pass over the CFG
- bool doSingleBackwardPass(const Method *M);
+ bool doSingleBackwardPass(const Method *M);
// calculates live var sets for instructions in a BB
void calcLiveVarSetsForBB(const BasicBlock *BB);
-
public:
static AnalysisID ID; // We are an analysis, we must have an ID
MethodLiveVarInfo(AnalysisID id = ID) { assert(id == ID); }
- ~MethodLiveVarInfo() { releaseMemory(); }
// --------- Implement the MethodPass interface ----------------------