Searched refs:CGN (Results 1 – 10 of 10) sorted by relevance
145 for (CallGraphNode *CGN : CurSCC) { in RunPassOnSCC()146 if (Function *F = CGN->getFunction()) { in RunPassOnSCC()183 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph()184 CGN->dump(); in RefreshCallGraph()194 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() local195 Function *F = CGN->getFunction(); in RefreshCallGraph()206 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph()236 CGN->removeCallEdge(I); in RefreshCallGraph()243 E = CGN->end(); in RefreshCallGraph()314 CGN->replaceCallEdge(CS, CS, CalleeNode); in RefreshCallGraph()[all …]
139 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument140 assert(CGN->empty() && "Cannot remove function from call " in removeFunctionFromModule()142 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule()168 auto &CGN = FunctionMap[F]; in getOrInsertFunction() local169 if (CGN) in getOrInsertFunction()170 return CGN.get(); in getOrInsertFunction()173 CGN = llvm::make_unique<CallGraphNode>(const_cast<Function *>(F)); in getOrInsertFunction()174 return CGN.get(); in getOrInsertFunction()
479 for (auto *CGN : SCC) in CollectSCCMembership() local480 if (Function *F = CGN->getFunction()) in CollectSCCMembership()
159 Function *removeFunctionFromModule(CallGraphNode *CGN);374 Function *removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument375 return G->removeFunctionFromModule(CGN); in removeFunctionFromModule()410 static NodeType *getEntryNode(CallGraphNode *CGN) { return CGN; }431 static NodeType *getEntryNode(const CallGraphNode *CGN) { return CGN; }448 static NodeType *getEntryNode(CallGraph *CGN) {449 return CGN->getExternalCallingNode(); // Start at the external node!471 static NodeType *getEntryNode(const CallGraph *CGN) {472 return CGN->getExternalCallingNode(); // Start at the external node!
178 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; }194 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; }202 static NodeType *getEntryNode(clang::CallGraph *CGN) {203 return CGN->getRoot(); // Start at the external node!227 static NodeType *getEntryNode(const clang::CallGraph *CGN) {228 return CGN->getRoot();
676 auto RemoveCGN = [&](CallGraphNode *CGN) { in removeDeadFunctions() argument678 CGN->removeAllCalledFunctions(); in removeDeadFunctions()683 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN); in removeDeadFunctions()686 FunctionsToRemove.push_back(CGN); in removeDeadFunctions()692 CallGraphNode *CGN = I.second.get(); in removeDeadFunctions() local693 Function *F = CGN->getFunction(); in removeDeadFunctions()717 DeadFunctionsInComdats.push_back(CGN); in removeDeadFunctions()722 RemoveCGN(CGN); in removeDeadFunctions()740 for (CallGraphNode *CGN : DeadFunctionsInComdats) { in removeDeadFunctions()741 Function *F = CGN->getFunction(); in removeDeadFunctions()[all …]
254 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock() local259 CGN->removeCallEdgeFor(CI); in DeleteBasicBlock()261 CGN->removeCallEdgeFor(II); in DeleteBasicBlock()
87 CallGraphNode *PromoteArguments(CallGraphNode *CGN);121 if (CallGraphNode *CGN = PromoteArguments(*I)) { in runOnSCC() local123 SCC.ReplaceNode(*I, CGN); in runOnSCC()210 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { in PromoteArguments() argument211 Function *F = CGN->getFunction(); in PromoteArguments()1008 CallGraphNode *CGN = CG[F]; in DoPromotion() local1009 if (CGN->getNumReferences() == 0) in DoPromotion()1010 delete CG.removeFunctionFromModule(CGN); in DoPromotion()
1813 const CallGraphNode *CGN = *SCC.begin(); in addNoRecurseAttrs() local1814 Function *F = CGN->getFunction(); in addNoRecurseAttrs()1821 if (std::all_of(CGN->begin(), CGN->end(), in addNoRecurseAttrs()
8153 "GB-CGN",18482 "CGN",