Home
last modified time | relevance | path

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

/external/llvm/include/llvm/Analysis/
DCallGraph.h155 Function *removeFunctionFromModule(CallGraphNode *CGN);
369 Function *removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument
370 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();
/external/clang/include/clang/Analysis/
DCallGraph.h178 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();
/external/llvm/lib/Analysis/IPA/
DCallGraph.cpp115 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() argument
116 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() local
146 if (CGN) in getOrInsertFunction()
147 return CGN; in getOrInsertFunction()
150 return CGN = new CallGraphNode(const_cast<Function*>(F)); in getOrInsertFunction()
DCallGraphSCCPass.cpp196 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() local
197 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()
/external/llvm/lib/Transforms/IPO/
DPruneEH.cpp240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock() local
245 CGN->removeCallEdgeFor(CI); in DeleteBasicBlock()
247 CGN->removeCallEdgeFor(II); in DeleteBasicBlock()
DArgumentPromotion.cpp81 CallGraphNode *PromoteArguments(CallGraphNode *CGN);
115 if (CallGraphNode *CGN = PromoteArguments(*I)) { in runOnSCC() local
117 SCC.ReplaceNode(*I, CGN); in runOnSCC()
131 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { in PromoteArguments() argument
132 Function *F = CGN->getFunction(); in PromoteArguments()
911 CallGraphNode *CGN = CG[F]; in DoPromotion() local
912 if (CGN->getNumReferences() == 0) in DoPromotion()
913 delete CG.removeFunctionFromModule(CGN); in DoPromotion()
DInliner.cpp648 CallGraphNode *CGN = I->second; in removeDeadFunctions() local
649 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()