mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
[CG] Rename the DOT printing pass to actually reference "DOT".
There is another pass by the generic name 'CallGraphPrinter' which is actually just a call graph printer tucked away inside the opt tool. I'd like to bring it out and make it follow the same patterns as the rest of the CallGraph code, but doing so would end up conflicting with the name of the DOT printing pass. So this makes the DOT printing pass name be more precise. No functionality changed here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4196f55435
commit
562873f9be
@ -17,10 +17,10 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class ModulePass;
|
||||
class ModulePass;
|
||||
|
||||
ModulePass *createCallGraphViewerPass();
|
||||
ModulePass *createCallGraphPrinterPass();
|
||||
ModulePass *createCallGraphViewerPass();
|
||||
ModulePass *createCallGraphDOTPrinterPass();
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
|
@ -81,7 +81,7 @@ void initializeBoundsCheckingPass(PassRegistry&);
|
||||
void initializeBranchFolderPassPass(PassRegistry&);
|
||||
void initializeBranchProbabilityInfoWrapperPassPass(PassRegistry&);
|
||||
void initializeBreakCriticalEdgesPass(PassRegistry&);
|
||||
void initializeCallGraphPrinterPass(PassRegistry&);
|
||||
void initializeCallGraphDOTPrinterPass(PassRegistry&);
|
||||
void initializeCallGraphViewerPass(PassRegistry&);
|
||||
void initializeCFGOnlyPrinterPass(PassRegistry&);
|
||||
void initializeCFGOnlyViewerPass(PassRegistry&);
|
||||
|
@ -69,7 +69,7 @@ namespace {
|
||||
(void) llvm::createScopedNoAliasAAWrapperPass();
|
||||
(void) llvm::createBoundsCheckingPass();
|
||||
(void) llvm::createBreakCriticalEdgesPass();
|
||||
(void) llvm::createCallGraphPrinterPass();
|
||||
(void) llvm::createCallGraphDOTPrinterPass();
|
||||
(void) llvm::createCallGraphViewerPass();
|
||||
(void) llvm::createCFGSimplificationPass();
|
||||
(void) llvm::createCFLAAWrapperPass();
|
||||
|
@ -26,7 +26,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) {
|
||||
initializeBlockFrequencyInfoWrapperPassPass(Registry);
|
||||
initializeBranchProbabilityInfoWrapperPassPass(Registry);
|
||||
initializeCallGraphWrapperPassPass(Registry);
|
||||
initializeCallGraphPrinterPass(Registry);
|
||||
initializeCallGraphDOTPrinterPass(Registry);
|
||||
initializeCallGraphViewerPass(Registry);
|
||||
initializeCostModelAnalysisPass(Registry);
|
||||
initializeCFGViewerPass(Registry);
|
||||
|
@ -58,16 +58,16 @@ struct CallGraphViewer
|
||||
}
|
||||
};
|
||||
|
||||
struct CallGraphPrinter : public DOTGraphTraitsModulePrinter<
|
||||
struct CallGraphDOTPrinter : public DOTGraphTraitsModulePrinter<
|
||||
CallGraphWrapperPass, true, CallGraph *,
|
||||
AnalysisCallGraphWrapperPassTraits> {
|
||||
static char ID;
|
||||
|
||||
CallGraphPrinter()
|
||||
CallGraphDOTPrinter()
|
||||
: DOTGraphTraitsModulePrinter<CallGraphWrapperPass, true, CallGraph *,
|
||||
AnalysisCallGraphWrapperPassTraits>(
|
||||
"callgraph", ID) {
|
||||
initializeCallGraphPrinterPass(*PassRegistry::getPassRegistry());
|
||||
initializeCallGraphDOTPrinterPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
};
|
||||
|
||||
@ -77,8 +77,8 @@ char CallGraphViewer::ID = 0;
|
||||
INITIALIZE_PASS(CallGraphViewer, "view-callgraph", "View call graph", false,
|
||||
false)
|
||||
|
||||
char CallGraphPrinter::ID = 0;
|
||||
INITIALIZE_PASS(CallGraphPrinter, "dot-callgraph",
|
||||
char CallGraphDOTPrinter::ID = 0;
|
||||
INITIALIZE_PASS(CallGraphDOTPrinter, "dot-callgraph",
|
||||
"Print call graph to 'dot' file", false, false)
|
||||
|
||||
// Create methods available outside of this file, to use them
|
||||
@ -87,6 +87,6 @@ INITIALIZE_PASS(CallGraphPrinter, "dot-callgraph",
|
||||
|
||||
ModulePass *llvm::createCallGraphViewerPass() { return new CallGraphViewer(); }
|
||||
|
||||
ModulePass *llvm::createCallGraphPrinterPass() {
|
||||
return new CallGraphPrinter();
|
||||
ModulePass *llvm::createCallGraphDOTPrinterPass() {
|
||||
return new CallGraphDOTPrinter();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user