[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 13 11:51:37 PST 2005
Changes in directory llvm/lib/Analysis/DataStructure:
EquivClassGraphs.cpp updated: 1.21 -> 1.22
Printer.cpp updated: 1.75 -> 1.76
---
Log message:
ADd support for printing eqgraphs.
---
Diffs of the changes: (+8 -2)
EquivClassGraphs.cpp | 4 ++--
Printer.cpp | 6 ++++++
2 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp
diff -u llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.21 llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.22
--- llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp:1.21 Sat Mar 12 06:08:52 2005
+++ llvm/lib/Analysis/DataStructure/EquivClassGraphs.cpp Sun Mar 13 13:51:24 2005
@@ -29,7 +29,7 @@
using namespace llvm;
namespace {
- RegisterAnalysis<EquivClassGraphs> X("equivdatastructure",
+ RegisterAnalysis<EquivClassGraphs> X("eqdatastructure",
"Equivalence-class Bottom-up Data Structure Analysis");
Statistic<> NumEquivBUInlines("equivdatastructures",
"Number of graphs inlined");
@@ -58,7 +58,7 @@
// getSomeCalleeForCallSite - Return any one callee function at a call site.
//
-Function *EquivClassGraphs:: getSomeCalleeForCallSite(const CallSite &CS) const{
+Function *EquivClassGraphs::getSomeCalleeForCallSite(const CallSite &CS) const{
Function *thisFunc = CS.getCaller();
assert(thisFunc && "getSomeCalleeForCallSite(): Not a valid call site?");
DSGraph &DSG = getDSGraph(*thisFunc);
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.75 llvm/lib/Analysis/DataStructure/Printer.cpp:1.76
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.75 Tue Feb 1 13:10:48 2005
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Sun Mar 13 13:51:24 2005
@@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/DataStructure/DataStructure.h"
+#include "llvm/Analysis/DataStructure/EquivClassGraphs.h"
#include "llvm/Analysis/DataStructure/DSGraph.h"
#include "llvm/Analysis/DataStructure/DSGraphTraits.h"
#include "llvm/Module.h"
@@ -333,3 +334,8 @@
}
+void EquivClassGraphs::print(std::ostream &O, const Module *M) const {
+ if (DontPrintAnything) return;
+ printCollection(*this, O, M, "eq.");
+}
+
More information about the llvm-commits
mailing list