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

/freebsd-10.0-release/contrib/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...]
/freebsd-10.0-release/contrib/llvm/lib/Analysis/IPA/
H A DCallGraph.cpp215 // functions (ie, there are no edges in it's CGN). The easiest way to do this
218 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { argument
219 assert(CGN->empty() && "Cannot remove function from call "
221 Function *F = CGN->getFunction(); // Get the function for the call graph node
222 delete CGN; // Delete the call graph node for this func
248 CallGraphNode *&CGN = FunctionMap[F]; local
249 if (CGN) return CGN;
252 return CGN = new CallGraphNode(const_cast<Function*>(F));
H A DCallGraphSCCPass.cpp191 CallGraphNode *CGN = *SCCIdx; local
192 Function *F = CGN->getFunction();
196 // CGN with those actually in the function.
203 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) {
228 CGN->removeCallEdge(I);
235 E = CGN->end();
298 // Update the edge target in CGN.
299 CGN->replaceCallEdge(CS, CS, CalleeNode);
307 // If the call site didn't exist in the CGN ye
[all...]
/freebsd-10.0-release/contrib/llvm/tools/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();
/freebsd-10.0-release/contrib/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp241 CallGraphNode *CGN = CG[BB->getParent()]; local
246 CGN->removeCallEdgeFor(CI);
248 CGN->removeCallEdgeFor(II);
H A DInliner.cpp561 CallGraphNode *CGN = I->second; local
562 Function *F = CGN->getFunction();
582 CGN->removeAllCalledFunctions();
587 CG.getExternalCallingNode()->removeAnyCallEdgeTo(CGN);
590 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();
890 CallGraphNode *CGN = CG[F]; local
891 if (CGN->getNumReferences() == 0)
892 delete CG.removeFunctionFromModule(CGN);

Completed in 133 milliseconds