Add support for printing EQ graphs
authorChris Lattner <sabre@nondot.org>
Sun, 13 Mar 2005 19:50:40 +0000 (19:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Mar 2005 19:50:40 +0000 (19:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20581 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/EquivClassGraphs.h

index 9ae8c8955dbeadc52147d98d2636f76489d7dcdc..4d460c2111b2541e5f0c31d7de8c707a769fe327 100644 (file)
@@ -58,6 +58,10 @@ namespace llvm {
     /// 
     virtual bool runOnModule(Module &M);
 
+    /// print - Print out the analysis results...
+    ///
+    void print(std::ostream &O, const Module *M) const;
+
     /// getDSGraph - Return the data structure graph for the specified function.
     /// This returns the folded graph.  The folded graph is the same as the CBU
     /// graph iff the function is in a singleton equivalence class AND all its 
@@ -69,6 +73,10 @@ namespace llvm {
       return *I->second;
     }
 
+    bool hasGraph(const Function &F) const {
+      return DSInfo.find(&F) != DSInfo.end();
+    }
+
     /// ContainsDSGraphFor - Return true if we have a graph for the specified
     /// function.
     bool ContainsDSGraphFor(const Function &F) const {