Searched defs:CGN (Results 1 - 7 of 7) sorted by relevance

/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp240 CallGraphNode *CGN = CG[BB->getParent()]; local
245 CGN->removeCallEdgeFor(CI);
247 CGN->removeCallEdgeFor(II);
H A DInliner.cpp648 CallGraphNode *CGN = I->second; local
649 Function *F = CGN->getFunction();
669 CGN->removeAllCalledFunctions();
674 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN);
677 FunctionsToRemove.push_back(CGN);
H A DArgumentPromotion.cpp81 CallGraphNode *PromoteArguments(CallGraphNode *CGN);
115 if (CallGraphNode *CGN = PromoteArguments(*I)) {
117 SCC.ReplaceNode(*I, CGN);
131 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { argument
132 Function *F = CGN->getFunction();
911 CallGraphNode *CGN = CG[F]; local
912 if (CGN->getNumReferences() == 0)
913 delete CG.removeFunctionFromModule(CGN);
/external/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp112 // functions (ie, there are no edges in it's CGN). The easiest way to do this
115 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { argument
116 assert(CGN->empty() && "Cannot remove function from call "
118 Function *F = CGN->getFunction(); // Get the function for the call graph node
119 delete CGN; // Delete the call graph node for this func
145 CallGraphNode *&CGN = FunctionMap[F]; local
146 if (CGN)
147 return CGN;
150 return CGN = new CallGraphNode(const_cast<Function*>(F));
H A DCallGraphSCCPass.cpp196 CallGraphNode *CGN = *SCCIdx; local
197 Function *F = CGN->getFunction();
201 // CGN with those actually in the function.
208 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) {
233 CGN->removeCallEdge(I);
240 E = CGN->end();
303 // Update the edge target in CGN.
304 CGN->replaceCallEdge(CS, CS, CalleeNode);
312 // If the call site didn't exist in the CGN ye
[all...]
/external/clang/include/clang/Analysis/
H A DCallGraph.h178 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; } argument
194 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; } argument
202 static NodeType *getEntryNode(clang::CallGraph *CGN) { argument
203 return CGN->getRoot(); // Start at the external node!
227 static NodeType *getEntryNode(const clang::CallGraph *CGN) { argument
228 return CGN->getRoot();
/external/llvm/include/llvm/Analysis/
H A DCallGraph.h153 /// functions (ie, there are no edges in it's CGN). The easiest way to do
155 Function *removeFunctionFromModule(CallGraphNode *CGN);
367 /// functions (ie, there are no edges in it's CGN). The easiest way to do
369 Function *removeFunctionFromModule(CallGraphNode *CGN) { argument
370 return G->removeFunctionFromModule(CGN);
405 static NodeType *getEntryNode(CallGraphNode *CGN) { return CGN; } argument
423 static NodeType *getEntryNode(const CallGraphNode *CGN) { return CGN; } argument
432 static NodeType *getEntryNode(CallGraph *CGN) { argument
453 getEntryNode(const CallGraph *CGN) argument
[all...]

Completed in 191 milliseconds