[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure.h

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 9 15:13:07 PST 2002


Changes in directory llvm/include/llvm/Analysis:

DataStructure.h updated: 1.54 -> 1.55

---
Log message:

Add globals graphs to all three passes



---
Diffs of the changes:

Index: llvm/include/llvm/Analysis/DataStructure.h
diff -u llvm/include/llvm/Analysis/DataStructure.h:1.54 llvm/include/llvm/Analysis/DataStructure.h:1.55
--- llvm/include/llvm/Analysis/DataStructure.h:1.54	Sat Nov  9 14:01:01 2002
+++ llvm/include/llvm/Analysis/DataStructure.h	Sat Nov  9 15:12:07 2002
@@ -46,6 +46,8 @@
     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 @@
 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 @@
     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 @@
   // DSInfo, one graph for each function
   std::map<const Function*, DSGraph*> DSInfo;
   std::set<const Function*> GraphDone;
+  DSGraph *GlobalsGraph;
 public:
   ~TDDataStructures() { releaseMemory(); }
 
@@ -112,6 +118,8 @@
     assert(I != DSInfo.end() && "Function not in module!");
     return *I->second;
   }
+
+  DSGraph &getGlobalsGraph() const { return *GlobalsGraph; }
 
   // print - Print out the analysis results...
   void print(std::ostream &O, const Module *M) const;





More information about the llvm-commits mailing list