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 | bc341e616ecf757ca890cb3d7d280e97490437a0 (patch) | |
tree | 417a35e4f9784a1b982d72ba2ef9792e1611eec1 /include/llvm/Analysis | |
parent | 2787e03d0e22faa8030ca8c05dc2da2bcd44748b (diff) | |
download | external_llvm-bc341e616ecf757ca890cb3d7d280e97490437a0.zip external_llvm-bc341e616ecf757ca890cb3d7d280e97490437a0.tar.gz external_llvm-bc341e616ecf757ca890cb3d7d280e97490437a0.tar.bz2 |
Add support for printing EQ graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/DataStructure/EquivClassGraphs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index 9ae8c89..4d460c2 100644 --- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/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 { |