Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DCallGraph.h64 class CallGraphNode; variable
77 std::map<const Function *, std::unique_ptr<CallGraphNode>>;
84 CallGraphNode *ExternalCallingNode;
88 std::unique_ptr<CallGraphNode> CallsExternalNode;
121 inline const CallGraphNode *operator[](const Function *F) const {
128 inline CallGraphNode *operator[](const Function *F) {
136 CallGraphNode *getExternalCallingNode() const { return ExternalCallingNode; } in getExternalCallingNode()
138 CallGraphNode *getCallsExternalNode() const { in getCallsExternalNode()
153 Function *removeFunctionFromModule(CallGraphNode *CGN);
157 CallGraphNode *getOrInsertFunction(const Function *F);
[all …]
DCallGraphSCCPass.h30 class CallGraphNode; variable
90 std::vector<CallGraphNode *> Nodes;
95 void initialize(ArrayRef<CallGraphNode *> NewNodes) { in initialize()
104 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New);
106 using iterator = std::vector<CallGraphNode *>::const_iterator;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCallGraph.cpp33 CallsExternalNode(std::make_unique<CallGraphNode>(nullptr)) { in CallGraph()
61 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph()
93 SmallVector<CallGraphNode *, 16> Nodes; in print()
99 llvm::sort(Nodes, [](CallGraphNode *LHS, CallGraphNode *RHS) { in print()
107 for (CallGraphNode *CN : Nodes) in print()
121 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule()
148 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction()
154 CGN = std::make_unique<CallGraphNode>(const_cast<Function *>(F)); in getOrInsertFunction()
162 void CallGraphNode::print(raw_ostream &OS) const { in print()
181 LLVM_DUMP_METHOD void CallGraphNode::dump() const { print(dbgs()); } in dump()
[all …]
DCallGraphSCCPass.cpp171 for (CallGraphNode *CGN : CurSCC) { in RunPassOnSCC()
203 DenseMap<Value *, CallGraphNode *> Calls; in RefreshCallGraph()
207 for (CallGraphNode *CGN in RefreshCallGraph()
217 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph()
229 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph()
297 DenseMap<Value *, CallGraphNode *>::iterator ExistingIt = in RefreshCallGraph()
300 CallGraphNode *ExistingNode = ExistingIt->second; in RefreshCallGraph()
323 CallGraphNode *CalleeNode; in RefreshCallGraph()
347 CallGraphNode *CalleeNode; in RefreshCallGraph()
388 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph()
[all …]
DCallPrinter.cpp30 std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel()
DGlobalsModRef.cpp475 const std::vector<CallGraphNode *> &SCC = *I; in CollectSCCMembership()
493 const std::vector<CallGraphNode *> &SCC = *I; in AnalyzeCallGraph()
542 for (CallGraphNode::iterator CI = SCC[i]->begin(), E = SCC[i]->end(); in AnalyzeCallGraph()
551 CallGraphNode *CalleeNode = CG[Callee]; in AnalyzeCallGraph()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DPruneEH.cpp64 SmallPtrSet<CallGraphNode *, 8> SCCNodes; in runImpl()
69 for (CallGraphNode *I : SCC) in runImpl()
74 for (CallGraphNode *I : SCC) in runImpl()
128 CallGraphNode *CalleeNode = CG[Callee]; in runImpl()
152 for (CallGraphNode *I : SCC) { in runImpl()
166 for (CallGraphNode *I : SCC) { in runImpl()
237 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
DSyntheticCountsPropagation.cpp108 auto GetCallSiteProfCount = [&](const CallGraphNode *, in run()
109 const CallGraphNode::CallRecord &Edge) { in run()
131 &CG, GetCallSiteProfCount, [&](const CallGraphNode *N, Scaled64 New) { in run() argument
DInliner.cpp538 for (CallGraphNode *Node : SCC) { in inlineCallsImpl()
556 for (CallGraphNode *Node : SCC) { in inlineCallsImpl()
728 CallGraphNode *CalleeNode = CG[Callee]; in inlineCallsImpl()
786 SmallVector<CallGraphNode *, 16> FunctionsToRemove; in removeDeadFunctions()
789 auto RemoveCGN = [&](CallGraphNode *CGN) { in removeDeadFunctions()
805 CallGraphNode *CGN = I.second.get(); in removeDeadFunctions()
858 for (CallGraphNode *CGN : FunctionsToRemove) { in removeDeadFunctions()
DArgumentPromotion.cpp1133 for (CallGraphNode *OldNode : SCC) { in runOnSCC()
1140 CallGraphNode *NewCalleeNode = in runOnSCC()
1142 CallGraphNode *CallerNode = CG[Caller]; in runOnSCC()
1155 CallGraphNode *NewNode = CG.getOrInsertFunction(NewF); in runOnSCC()
DInternalize.cpp152 CallGraphNode *ExternalNode = CG ? CG->getExternalCallingNode() : nullptr; in internalizeModule()
DFunctionAttrs.cpp1501 for (CallGraphNode *I : SCC) { in runImpl()
DSampleProfile.cpp1792 for (CallGraphNode *node : *CGI) { in INITIALIZE_PASS_DEPENDENCY()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAnnotateKernelFeatures.cpp48 SmallVector<CallGraphNode*, 8> NodeList;
346 for (CallGraphNode *I : SCC) { in runOnSCC()
DAMDGPUPerfHintAnalysis.cpp375 for (CallGraphNode *I : SCC) { in runOnSCC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroutines.cpp189 static void buildCGN(CallGraph &CG, CallGraphNode *Node) { in buildCGN()
215 SmallVector<CallGraphNode *, 8> Nodes(SCC.begin(), SCC.end()); in updateCallGraph()
218 CallGraphNode *Callee = CG.getOrInsertFunction(F); in updateCallGraph()
DCoroSplit.cpp1445 SmallVector<CallGraphNode *, 8> Nodes(SCC.begin(), SCC.end()); in createDevirtTriggerFunc()
1456 CallGraphNode *PrepareUserNode = nullptr, *FnNode = nullptr; in replacePrepare()
1560 for (CallGraphNode *CGN : SCC) in runOnSCC()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp1186 CallGraphNode *CalleeNode = CG[Callee]; in UpdateCallGraphAfterInlining()
1187 CallGraphNode *CallerNode = CG[Caller]; in UpdateCallGraphAfterInlining()
1191 CallGraphNode::iterator I = CalleeNode->begin(), E = CalleeNode->end(); in UpdateCallGraphAfterInlining()
1194 CallGraphNode::CalledFunctionsVector CallCache; in UpdateCallGraphAfterInlining()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h573 for (CallGraphNode *Node : *I)