Searched refs:CGN (Results 1 – 7 of 7) sorted by relevance
155 Function *removeFunctionFromModule(CallGraphNode *CGN);369 Function *removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument370 return G->removeFunctionFromModule(CGN); in removeFunctionFromModule()405 static NodeType *getEntryNode(CallGraphNode *CGN) { return CGN; }423 static NodeType *getEntryNode(const CallGraphNode *CGN) { return CGN; }432 static NodeType *getEntryNode(CallGraph *CGN) {433 return CGN->getExternalCallingNode(); // Start at the external node!453 static NodeType *getEntryNode(const CallGraph *CGN) {454 return CGN->getExternalCallingNode();
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();
115 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument116 assert(CGN->empty() && "Cannot remove function from call " in removeFunctionFromModule()118 Function *F = CGN->getFunction(); // Get the function for the call graph node in removeFunctionFromModule()119 delete CGN; // Delete the call graph node for this func in removeFunctionFromModule()145 CallGraphNode *&CGN = FunctionMap[F]; in getOrInsertFunction() local146 if (CGN) in getOrInsertFunction()147 return CGN; in getOrInsertFunction()150 return CGN = new CallGraphNode(const_cast<Function*>(F)); in getOrInsertFunction()
196 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() local197 Function *F = CGN->getFunction(); in RefreshCallGraph()208 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph()233 CGN->removeCallEdge(I); in RefreshCallGraph()240 E = CGN->end(); in RefreshCallGraph()304 CGN->replaceCallEdge(CS, CS, CalleeNode); in RefreshCallGraph()322 CGN->addCalledFunction(CS, CalleeNode); in RefreshCallGraph()
240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock() local245 CGN->removeCallEdgeFor(CI); in DeleteBasicBlock()247 CGN->removeCallEdgeFor(II); in DeleteBasicBlock()
81 CallGraphNode *PromoteArguments(CallGraphNode *CGN);115 if (CallGraphNode *CGN = PromoteArguments(*I)) { in runOnSCC() local117 SCC.ReplaceNode(*I, CGN); in runOnSCC()131 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { in PromoteArguments() argument132 Function *F = CGN->getFunction(); in PromoteArguments()911 CallGraphNode *CGN = CG[F]; in DoPromotion() local912 if (CGN->getNumReferences() == 0) in DoPromotion()913 delete CG.removeFunctionFromModule(CGN); in DoPromotion()
648 CallGraphNode *CGN = I->second; in removeDeadFunctions() local649 Function *F = CGN->getFunction(); in removeDeadFunctions()669 CGN->removeAllCalledFunctions(); in removeDeadFunctions()674 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN); in removeDeadFunctions()677 FunctionsToRemove.push_back(CGN); in removeDeadFunctions()