diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-15 05:03:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-15 05:03:04 +0000 |
commit | a6001e21c43647daff2d81359cb3e9e8c0f0843e (patch) | |
tree | 478d7169a7b8ab7c1adaa975a290c1b5c8297fd3 /lib/VMCore/PassManager.cpp | |
parent | 8e3ba7439fb15df005a3125b0b9b6f51ea2697c9 (diff) | |
download | external_llvm-a6001e21c43647daff2d81359cb3e9e8c0f0843e.zip external_llvm-a6001e21c43647daff2d81359cb3e9e8c0f0843e.tar.gz external_llvm-a6001e21c43647daff2d81359cb3e9e8c0f0843e.tar.bz2 |
make -debug-pass=Executions show information about what call graph nodes
are in the SCC for each execution of a CGSCC pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81838 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 83045cd..f2c9ea3 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -67,6 +67,15 @@ PassDebugging("debug-pass", cl::Hidden, clEnumValEnd)); } // End of llvm namespace +/// isPassDebuggingExecutionsOrMore - Return true if -debug-pass=Executions +/// or higher is specified. +bool PMDataManager::isPassDebuggingExecutionsOrMore() const { + return PassDebugging >= Executions; +} + + + + void PassManagerPrettyStackEntry::print(raw_ostream &OS) const { if (V == 0 && M == 0) OS << "Releasing pass '"; @@ -1044,7 +1053,7 @@ void PMDataManager::dumpPassInfo(Pass *P, enum PassDebuggingString S1, errs() << "' on Loop '" << Msg << "'...\n"; break; case ON_CG_MSG: - errs() << "' on Call Graph '" << Msg << "'...\n"; + errs() << "' on Call Graph Nodes '" << Msg << "'...\n"; break; default: break; @@ -1076,10 +1085,10 @@ void PMDataManager::dumpAnalysisUsage(const StringRef &Msg, const Pass *P, return; errs() << (void*)P << std::string(getDepth()*2+3, ' ') << Msg << " Analyses:"; for (unsigned i = 0; i != Set.size(); ++i) { - if (i) errs() << ","; - errs() << " " << Set[i]->getPassName(); + if (i) errs() << ','; + errs() << ' ' << Set[i]->getPassName(); } - errs() << "\n"; + errs() << '\n'; } /// Add RequiredPass into list of lower level passes required by pass P. |