diff options
Diffstat (limited to 'include/llvm/Analysis/DataStructure/EquivClassGraphs.h')
-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 9ae8c8955d..4d460c2111 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 { |