Lines Matching defs:CallGraph
1 //===- CallGraph.cpp - Build a Module's call graph ------------------------===//
9 #include "llvm/Analysis/CallGraph.h"
29 // Implementations of the CallGraph class methods.
32 CallGraph::CallGraph(Module &M)
41 CallGraph::CallGraph(CallGraph &&Arg)
54 CallGraph::~CallGraph() {
67 bool CallGraph::invalidate(Module &, const PreservedAnalyses &PA,
75 void CallGraph::addToCallGraph(Function *F) {
89 void CallGraph::populateCallGraphNode(CallGraphNode *Node) {
115 void CallGraph::print(raw_ostream &OS) const {
138 LLVM_DUMP_METHOD void CallGraph::dump() const { print(dbgs()); }
141 void CallGraph::ReplaceExternalCallEdge(CallGraphNode *Old,
157 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) {
170 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) {
317 for (scc_iterator<CallGraph *> SCCI = scc_begin(&CG); !SCCI.isAtEnd();
357 // All the real work is done in the constructor for the CallGraph.
358 G.reset(new CallGraph(M));
362 INITIALIZE_PASS(CallGraphWrapperPass, "basiccg", "CallGraph Construction",