diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-09 21:12:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-09 21:12:07 +0000 |
commit | aa0b468f6d0e4d30d4f31d528d499e4c9a67c4f2 (patch) | |
tree | b0c006082bbc026983e495353411933f150e0872 /include/llvm/Analysis/DataStructure/DataStructure.h | |
parent | dc26d45c710fda254b235852dc830f4b2e4bcb03 (diff) |
Add globals graphs to all three passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DataStructure.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 71bf5128ec..ea1c2ae192 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -46,6 +46,8 @@ public: return *I->second; } + DSGraph &getGlobalsGraph() const { return *GlobalsGraph; } + // print - Print out the analysis results... void print(std::ostream &O, const Module *M) const; @@ -66,6 +68,7 @@ public: class BUDataStructures : public Pass { // DSInfo, one graph for each function std::map<const Function*, DSGraph*> DSInfo; + DSGraph *GlobalsGraph; public: ~BUDataStructures() { releaseMemory(); } @@ -78,7 +81,9 @@ public: return *I->second; } - // print - Print out the analysis results... + DSGraph &getGlobalsGraph() const { return *GlobalsGraph; } + + // print - Print out the analysis results... void print(std::ostream &O, const Module *M) const; // If the pass pipeline is done with this pass, we can release our memory... @@ -101,6 +106,7 @@ class TDDataStructures : public Pass { // DSInfo, one graph for each function std::map<const Function*, DSGraph*> DSInfo; std::set<const Function*> GraphDone; + DSGraph *GlobalsGraph; public: ~TDDataStructures() { releaseMemory(); } @@ -113,6 +119,8 @@ public: return *I->second; } + DSGraph &getGlobalsGraph() const { return *GlobalsGraph; } + // print - Print out the analysis results... void print(std::ostream &O, const Module *M) const; |