32 return Func->getName();
34 return "external node";
48 struct CallGraphViewer
50 AnalysisCallGraphWrapperPassTraits> {
62 CallGraphWrapperPass, true, CallGraph *,
63 AnalysisCallGraphWrapperPassTraits> {
77 INITIALIZE_PASS(CallGraphViewer,
"view-callgraph",
"View call graph",
false,
80 char CallGraphPrinter::
ID = 0;
91 return new CallGraphPrinter();
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
void Print(const Unit &U, const char *PrintAfter="")
A node in the call graph for a module.
Function * getFunction() const
Returns the function that this call graph node represents.
void initializeCallGraphPrinterPass(PassRegistry &)
Number of individual test Apply this number of consecutive mutations to each input exit after the first new interesting input is found the minimized corpus is saved into the first input directory Number of jobs to run If Reload the main corpus periodically to get new units discovered by other processes Read the given input file
This file provides interfaces used to build and manipulate a call graph, which is a very useful tool ...
DOTGraphTraits(bool isSimple=false)
static std::string getGraphName(CallGraph *Graph)
void initializeCallGraphViewerPass(PassRegistry &)
The ModulePass which wraps up a CallGraph and the logic to build it.
std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph)
DOTGraphTraits - Template class that can be specialized to customize how graphs are converted to 'dot...
The basic data container for the call graph of a Module of IR.
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
const CallGraph & getCallGraph() const
The internal CallGraph around which the rest of this interface is wrapped.
DefaultDOTGraphTraits - This class provides the default implementations of all of the DOTGraphTraits ...
ModulePass * createCallGraphPrinterPass()
INITIALIZE_PASS(CallGraphViewer,"view-callgraph","View call graph", false, false) char CallGraphPrinter INITIALIZE_PASS(CallGraphPrinter,"dot-callgraph","Print call graph to 'dot' file", false, false) ModulePass *llvm
static CallGraph * getGraph(CallGraphWrapperPass *P)
ModulePass * createCallGraphViewerPass()