Lines Matching refs:CG
474 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() local
536 InlineFunctionInfo InlineInfo(&CG, ACT); in runOnSCC()
561 CG[Caller]->removeCallEdgeFor(CS); in runOnSCC()
631 CG[Callee]->getNumReferences() == 0) { in runOnSCC()
634 CallGraphNode *CalleeNode = CG[Callee]; in runOnSCC()
640 delete CG.removeFunctionFromModule(CalleeNode); in runOnSCC()
666 bool Inliner::doFinalization(CallGraph &CG) { in doFinalization() argument
667 return removeDeadFunctions(CG); in doFinalization()
671 bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) { in removeDeadFunctions() argument
683 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN); in removeDeadFunctions()
691 for (const auto &I : CG) { in removeDeadFunctions()
731 for (const Function &F : CG.getModule()) in removeDeadFunctions()
734 for (const GlobalVariable &GV : CG.getModule().globals()) in removeDeadFunctions()
737 for (const GlobalAlias &GA : CG.getModule().aliases()) in removeDeadFunctions()
768 delete CG.removeFunctionFromModule(CGN); in removeDeadFunctions()