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

/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp237 CallGraphNode *CGN = CG[BB->getParent()]; local
242 CGN->removeCallEdgeFor(CI);
244 CGN->removeCallEdgeFor(II);
H A DInliner.cpp527 CallGraphNode *CGN = I->second; local
528 Function *F = CGN->getFunction();
546 CGN->removeAllCalledFunctions();
551 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN);
554 FunctionsToRemove.push_back(CGN);
H A DArgumentPromotion.cpp77 CallGraphNode *PromoteArguments(CallGraphNode *CGN);
106 if (CallGraphNode *CGN = PromoteArguments(*I)) {
108 SCC.ReplaceNode(*I, CGN);
122 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { argument
123 Function *F = CGN->getFunction();
892 CallGraphNode *CGN = CG[F]; local
893 if (CGN->getNumReferences() == 0)
894 delete CG.removeFunctionFromModule(CGN);
/external/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp214 // functions (ie, there are no edges in it's CGN). The easiest way to do this
217 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { argument
218 assert(CGN->empty() && "Cannot remove function from call "
220 Function *F = CGN->getFunction(); // Get the function for the call graph node
221 delete CGN; // Delete the call graph node for this func
247 CallGraphNode *&CGN = FunctionMap[F]; local
248 if (CGN) return CGN;
251 return CGN = new CallGraphNode(const_cast<Function*>(F));
H A DCallGraphSCCPass.cpp188 CallGraphNode *CGN = *SCCIdx; local
189 Function *F = CGN->getFunction();
193 // CGN with those actually in the function.
200 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) {
225 CGN->removeCallEdge(I);
232 E = CGN->end();
295 // Update the edge target in CGN.
296 CGN->replaceCallEdge(CS, CS, CalleeNode);
304 // If the call site didn't exist in the CGN ye
[all...]
/external/clang/include/clang/Analysis/
H A DCallGraph.h188 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; } argument
204 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; } argument
212 static NodeType *getEntryNode(clang::CallGraph *CGN) { argument
213 return CGN->getRoot(); // Start at the external node!
237 static NodeType *getEntryNode(const clang::CallGraph *CGN) { argument
238 return CGN->getRoot();
/external/llvm/include/llvm/Analysis/
H A DCallGraph.h128 /// other functions (ie, there are no edges in it's CGN). The easiest way to
131 Function *removeFunctionFromModule(CallGraphNode *CGN);
315 static NodeType *getEntryNode(CallGraphNode *CGN) { return CGN; } argument
336 static NodeType *getEntryNode(const CallGraphNode *CGN) { return CGN; } argument
342 static NodeType *getEntryNode(CallGraph *CGN) { argument
343 return CGN->getExternalCallingNode(); // Start at the external node!
364 static NodeType *getEntryNode(const CallGraph *CGN) { argument
365 return CGN
[all...]

Completed in 158 milliseconds