ADd support for printing eqgraphs.

llvm-svn: 20582
This commit is contained in:
Chris Lattner 2005-03-13 19:51:24 +00:00
parent db98a9745a
commit 68c3caccb1
2 changed files with 8 additions and 2 deletions

View File

@ -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 @@ static void CheckAllGraphs(Module *M, GT &ECGraphs) {
// 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);

View File

@ -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 CompleteBUDataStructures::print(std::ostream &O, const Module *M) const {
}
void EquivClassGraphs::print(std::ostream &O, const Module *M) const {
if (DontPrintAnything) return;
printCollection(*this, O, M, "eq.");
}