diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-13 19:50:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-13 19:50:40 +0000 |
commit | db98a9745a0265ffe15cab10a5faaa217b131295 (patch) | |
tree | 65be456413ae39ef9d23e47117c89a8ae7796320 | |
parent | 9cc2c3e9d6377ab1815b279257b887709053f331 (diff) | |
download | bcm5719-llvm-db98a9745a0265ffe15cab10a5faaa217b131295.tar.gz bcm5719-llvm-db98a9745a0265ffe15cab10a5faaa217b131295.zip |
Add support for printing EQ graphs
llvm-svn: 20581
-rw-r--r-- | llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index 9ae8c8955db..4d460c2111b 100644 --- a/llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h @@ -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 { |