[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 13 11:50:55 PST 2005
Changes in directory llvm/include/llvm/Analysis/DataStructure:
EquivClassGraphs.h updated: 1.15 -> 1.16
---
Log message:
Add support for printing EQ graphs
---
Diffs of the changes: (+8 -0)
EquivClassGraphs.h | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h
diff -u llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h:1.15 llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h:1.16
--- llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h:1.15 Sat Mar 12 06:08:44 2005
+++ llvm/include/llvm/Analysis/DataStructure/EquivClassGraphs.h Sun Mar 13 13:50:40 2005
@@ -58,6 +58,10 @@
///
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 @@
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 {
More information about the llvm-commits
mailing list