/external/llvm/include/llvm/Analysis/ |
D | CallGraph.h | 68 class CallGraphNode; variable 78 typedef std::map<const Function *, CallGraphNode *> FunctionMapTy; 85 CallGraphNode *Root; 89 CallGraphNode *ExternalCallingNode; 93 CallGraphNode *CallsExternalNode; 125 inline const CallGraphNode *operator[](const Function *F) const { 132 inline CallGraphNode *operator[](const Function *F) { 140 CallGraphNode *getExternalCallingNode() const { return ExternalCallingNode; } in getExternalCallingNode() 142 CallGraphNode *getCallsExternalNode() const { return CallsExternalNode; } in getCallsExternalNode() 155 Function *removeFunctionFromModule(CallGraphNode *CGN); [all …]
|
D | CallGraphSCCPass.h | 29 class CallGraphNode; variable 85 std::vector<CallGraphNode*> Nodes; 89 void initialize(CallGraphNode*const*I, CallGraphNode*const*E) { in initialize() 98 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New); 100 typedef std::vector<CallGraphNode*>::const_iterator iterator;
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 27 class CallGraphNode; variable 35 friend class CallGraphNode; variable 37 typedef llvm::DenseMap<const Decl *, CallGraphNode *> FunctionMapTy; 43 CallGraphNode *Root; 61 CallGraphNode *getNode(const Decl *) const; 65 CallGraphNode *getOrInsertNode(Decl *); 81 CallGraphNode *getRoot() const { return Root; } in getRoot() 86 typedef llvm::SetVector<CallGraphNode *>::iterator nodes_iterator; 87 typedef llvm::SetVector<CallGraphNode *>::const_iterator const_nodes_iterator; 130 CallGraphNode *allocateNewNode(Decl *); [all …]
|
/external/clang/lib/Analysis/ |
D | CallGraph.cpp | 33 CallGraphNode *CallerNode; 36 CGBuilder(CallGraph *g, CallGraphNode *N) in CGBuilder() 57 CallGraphNode *CalleeNode = G->getOrInsertNode(D); in addCalledDecl() 140 CallGraphNode *Node = getOrInsertNode(D); in addNodeForDecl() 148 CallGraphNode *CallGraph::getNode(const Decl *F) const { in getNode() 154 CallGraphNode *CallGraph::getOrInsertNode(Decl *F) { in getOrInsertNode() 155 CallGraphNode *&Node = FunctionMap[F]; in getOrInsertNode() 159 Node = new CallGraphNode(F); in getOrInsertNode() 174 const CallGraphNode *N = *I; in print() 183 for (CallGraphNode::const_iterator CI = N->begin(), in print() [all …]
|
/external/llvm/lib/Analysis/IPA/ |
D | CallGraph.cpp | 25 CallsExternalNode(new CallGraphNode(nullptr)) { in CallGraph() 53 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 115 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() 144 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() 145 CallGraphNode *&CGN = FunctionMap[F]; in getOrInsertFunction() 150 return CGN = new CallGraphNode(const_cast<Function*>(F)); in getOrInsertFunction() 157 void CallGraphNode::print(raw_ostream &OS) const { in print() 176 void CallGraphNode::dump() const { print(dbgs()); } in dump() 182 void CallGraphNode::removeCallEdgeFor(CallSite CS) { in removeCallEdgeFor() 197 void CallGraphNode::removeAnyCallEdgeTo(CallGraphNode *Callee) { in removeAnyCallEdgeTo() [all …]
|
D | CallGraphSCCPass.cpp | 180 DenseMap<Value*, CallGraphNode*> CallSites; in RefreshCallGraph() 196 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() 208 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph() 263 DenseMap<Value*, CallGraphNode*>::iterator ExistingIt = in RefreshCallGraph() 266 CallGraphNode *ExistingNode = ExistingIt->second; in RefreshCallGraph() 289 CallGraphNode *CalleeNode; in RefreshCallGraph() 313 CallGraphNode *CalleeNode; in RefreshCallGraph() 442 const std::vector<CallGraphNode *> &NodeVec = *CGI; in runOnModule() 517 void CallGraphSCC::ReplaceNode(CallGraphNode *Old, CallGraphNode *New) { in ReplaceNode()
|
D | CallPrinter.cpp | 30 std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel()
|
D | GlobalsModRef.cpp | 362 const std::vector<CallGraphNode *> &SCC = *I; in AnalyzeCallGraph() 406 for (CallGraphNode::iterator CI = SCC[i]->begin(), E = SCC[i]->end(); in AnalyzeCallGraph() 420 CallGraphNode *CalleeNode = CG[Callee]; in AnalyzeCallGraph()
|
/external/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 81 CallGraphNode *PromoteArguments(CallGraphNode *CGN); 83 CallGraphNode *DoPromotion(Function *F, 115 if (CallGraphNode *CGN = PromoteArguments(*I)) { in runOnSCC() 131 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { in PromoteArguments() 495 CallGraphNode *ArgPromotion::DoPromotion(Function *F, in DoPromotion() 641 CallGraphNode *NF_CGN = CG.getOrInsertFunction(NF); in DoPromotion() 766 CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()]; in DoPromotion() 911 CallGraphNode *CGN = CG[F]; in DoPromotion()
|
D | PruneEH.cpp | 63 SmallPtrSet<CallGraphNode *, 8> SCCNodes; in runOnSCC() 120 CallGraphNode *CalleeNode = CG[Callee]; in runOnSCC() 240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
|
D | Inliner.cpp | 604 CallGraphNode *CalleeNode = CG[Callee]; in runOnSCC() 643 SmallVector<CallGraphNode*, 16> FunctionsToRemove; in removeDeadFunctions() 648 CallGraphNode *CGN = I->second; in removeDeadFunctions() 693 for (SmallVectorImpl<CallGraphNode *>::iterator I = FunctionsToRemove.begin(), in removeDeadFunctions()
|
D | Internalize.cpp | 136 CallGraphNode *ExternalNode = CG ? CG->getExternalCallingNode() : nullptr; in runOnModule()
|
/external/llvm/tools/opt/ |
D | PrintSCC.cpp | 99 const std::vector<CallGraphNode*> &nextSCC = *SCCI; in runOnModule() 101 for (std::vector<CallGraphNode*>::const_iterator I = nextSCC.begin(), in runOnModule()
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 274 CallGraphNode *CalleeNode = CG[Callee]; in UpdateCallGraphAfterInlining() 275 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining() 279 CallGraphNode::iterator I = CalleeNode->begin(), E = CalleeNode->end(); in UpdateCallGraphAfterInlining() 282 CallGraphNode::CalledFunctionsVector CallCache; in UpdateCallGraphAfterInlining()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | AnalysisConsumer.cpp | 476 CallGraphNode *N = *I; in HandleDeclsCallGraph()
|