Home
last modified time | relevance | path

Searched refs:CallGraphNode (Results 1 – 15 of 15) sorted by relevance

/external/llvm/include/llvm/Analysis/
DCallGraph.h68 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 …]
DCallGraphSCCPass.h29 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/
DCallGraph.h27 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/
DCallGraph.cpp33 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/
DCallGraph.cpp25 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 …]
DCallGraphSCCPass.cpp180 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()
DCallPrinter.cpp30 std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel()
DGlobalsModRef.cpp362 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/
DArgumentPromotion.cpp81 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()
DPruneEH.cpp63 SmallPtrSet<CallGraphNode *, 8> SCCNodes; in runOnSCC()
120 CallGraphNode *CalleeNode = CG[Callee]; in runOnSCC()
240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
DInliner.cpp604 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()
DInternalize.cpp136 CallGraphNode *ExternalNode = CG ? CG->getExternalCallingNode() : nullptr; in runOnModule()
/external/llvm/tools/opt/
DPrintSCC.cpp99 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/
DInlineFunction.cpp274 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/
DAnalysisConsumer.cpp476 CallGraphNode *N = *I; in HandleDeclsCallGraph()