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

/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...]
/external/clang/include/clang/Analysis/
H A DCallGraph.h182 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; } argument
198 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; } argument
206 static NodeType *getEntryNode(clang::CallGraph *CGN) { argument
207 return CGN->getRoot(); // Start at the external node!
231 static NodeType *getEntryNode(const clang::CallGraph *CGN) { argument
232 return CGN->getRoot();
/external/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp212 // functions (ie, there are no edges in it's CGN). The easiest way to do this
215 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { argument
216 assert(CGN->empty() && "Cannot remove function from call "
218 Function *F = CGN->getFunction(); // Get the function for the call graph node
219 delete CGN; // Delete the call graph node for this func
245 CallGraphNode *&CGN = FunctionMap[F]; local
246 if (CGN) return CGN;
249 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();
293 // Update the edge target in CGN.
294 CGN->replaceCallEdge(CS, CS, CalleeNode);
302 // If the call site didn't exist in the CGN ye
[all...]
/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.cpp522 CallGraphNode *CGN = I->second; local
523 Function *F = CGN->getFunction();
541 CGN->removeAllCalledFunctions();
546 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN);
549 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();
898 CallGraphNode *CGN = CG[F]; local
899 if (CGN->getNumReferences() == 0)
900 delete CG.removeFunctionFromModule(CGN);

Completed in 348 milliseconds