/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | CallGraph.h | 65 class CallGraphNode; variable 78 std::map<const Function *, std::unique_ptr<CallGraphNode>>; 85 CallGraphNode *ExternalCallingNode; 89 std::unique_ptr<CallGraphNode> CallsExternalNode; 122 inline const CallGraphNode *operator[](const Function *F) const { 129 inline CallGraphNode *operator[](const Function *F) { 137 CallGraphNode *getExternalCallingNode() const { return ExternalCallingNode; } in getExternalCallingNode() 139 CallGraphNode *getCallsExternalNode() const { in getCallsExternalNode() 154 Function *removeFunctionFromModule(CallGraphNode *CGN); 158 CallGraphNode *getOrInsertFunction(const Function *F); [all …]
|
D | CallGraphSCCPass.h | 31 class CallGraphNode; variable 91 std::vector<CallGraphNode *> Nodes; 96 void initialize(ArrayRef<CallGraphNode *> NewNodes) { in initialize() 105 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New); 107 using iterator = std::vector<CallGraphNode *>::const_iterator;
|
/external/llvm/include/llvm/Analysis/ |
D | CallGraph.h | 69 class CallGraphNode; variable 79 typedef std::map<const Function *, std::unique_ptr<CallGraphNode>> 87 CallGraphNode *Root; 91 CallGraphNode *ExternalCallingNode; 95 std::unique_ptr<CallGraphNode> CallsExternalNode; 128 inline const CallGraphNode *operator[](const Function *F) const { 135 inline CallGraphNode *operator[](const Function *F) { 143 CallGraphNode *getExternalCallingNode() const { return ExternalCallingNode; } in getExternalCallingNode() 145 CallGraphNode *getCallsExternalNode() const { in getCallsExternalNode() 160 Function *removeFunctionFromModule(CallGraphNode *CGN); [all …]
|
D | CallGraphSCCPass.h | 30 class CallGraphNode; variable 92 std::vector<CallGraphNode*> Nodes; 97 void initialize(CallGraphNode *const *I, CallGraphNode *const *E) { in initialize() 106 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New); 108 typedef std::vector<CallGraphNode *>::const_iterator iterator;
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | CallGraph.h | 67 class CallGraphNode; variable 76 typedef std::map<const Function *, CallGraphNode *> FunctionMapTy; 98 inline const CallGraphNode *operator[](const Function *F) const { 103 inline CallGraphNode *operator[](const Function *F) { 111 virtual CallGraphNode* getExternalCallingNode() const { return 0; } in getExternalCallingNode() 112 virtual CallGraphNode* getCallsExternalNode() const { return 0; } in getCallsExternalNode() 117 virtual CallGraphNode* getRoot() { return 0; } in getRoot() 118 virtual const CallGraphNode* getRoot() const { return 0; } in getRoot() 131 Function *removeFunctionFromModule(CallGraphNode *CGN); 139 CallGraphNode *getOrInsertFunction(const Function *F); [all …]
|
/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/swiftshader/third_party/LLVM/lib/Analysis/IPA/ |
D | CallGraph.cpp | 33 CallGraphNode *Root; 37 CallGraphNode *ExternalCallingNode; 41 CallGraphNode *CallsExternalNode; 55 CallsExternalNode = new CallGraphNode(0); in runOnModule() 97 CallGraphNode* getExternalCallingNode() const { return ExternalCallingNode; } in getExternalCallingNode() 98 CallGraphNode* getCallsExternalNode() const { return CallsExternalNode; } in getCallsExternalNode() 103 CallGraphNode *getRoot() { return Root; } in getRoot() 104 const CallGraphNode *getRoot() const { return Root; } in getRoot() 115 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 222 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() [all …]
|
D | CallGraphSCCPass.cpp | 172 DenseMap<Value*, CallGraphNode*> CallSites; in RefreshCallGraph() 188 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() 200 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph() 253 DenseMap<Value*, CallGraphNode*>::iterator ExistingIt = in RefreshCallGraph() 256 CallGraphNode *ExistingNode = ExistingIt->second; in RefreshCallGraph() 279 CallGraphNode *CalleeNode; in RefreshCallGraph() 303 CallGraphNode *CalleeNode; in RefreshCallGraph() 432 std::vector<CallGraphNode*> &NodeVec = *CGI; in runOnModule() 507 void CallGraphSCC::ReplaceNode(CallGraphNode *Old, CallGraphNode *New) { in ReplaceNode()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | call_graph.cc | 85 CallGraphNode::CallGraphNode(HloComputation* computation) in CallGraphNode() function in xla::CallGraphNode 88 const CallSite* CallGraphNode::GetCallSite( in GetCallSite() 97 void CallGraphNode::AddCallerCallSite(const CallSite& caller_callsite) { in AddCallerCallSite() 106 void CallGraphNode::AddCallSiteForInstruction(HloInstruction* instruction) { in AddCallSiteForInstruction() 128 const CallGraphNode& CallGraph::GetNode( in GetNode() 135 CallGraphNode& CallGraph::GetNode(const HloComputation* computation) { in GetNode() 150 const CallGraphNode& b_node = GetNode(b); in DominatesHelper() 193 std::queue<CallGraphNode*> worklist; in SetCallContexts() 198 CallGraphNode& node = GetNode(computation); in SetCallContexts() 206 CallGraphNode* node = worklist.front(); in SetCallContexts() [all …]
|
D | call_graph.h | 93 class CallGraphNode { 95 CallGraphNode(HloComputation* computation); 184 using VisitorFunction = std::function<Status(const CallGraphNode&)>; 190 const CallGraphNode& GetNode(const HloComputation* computation) const; 191 CallGraphNode& GetNode(const HloComputation* computation); 194 const std::vector<CallGraphNode>& nodes() const { return nodes_; } in nodes() 274 const VisitorFunction& visitor_func, const CallGraphNode& node, 275 absl::flat_hash_set<const CallGraphNode*>* visited) const; 288 std::vector<CallGraphNode> nodes_;
|
D | call_graph_test.cc | 104 const CallGraphNode& node = call_graph->GetNode(computation); in TEST_F() 126 const CallGraphNode& entry_node = call_graph->GetNode(entry_computation); in TEST_F() 131 const CallGraphNode& unreachable_node = in TEST_F() 150 const CallGraphNode& entry_node = call_graph->GetNode(entry_computation); in TEST_F() 159 const CallGraphNode& map_node = call_graph->GetNode(map_computation); in TEST_F() 185 const CallGraphNode& entry_node = call_graph->GetNode(entry_computation); in TEST_F() 193 const CallGraphNode& called_node = call_graph->GetNode(called_computation); in TEST_F() 224 const CallGraphNode& entry_node = call_graph->GetNode(entry_computation); in TEST_F() 242 const CallGraphNode& sub_node = call_graph->GetNode(subcomputation); in TEST_F() 273 const CallGraphNode& entry_node = call_graph->GetNode(entry_computation); in TEST_F() [all …]
|
D | flatten_call_graph_test.cc | 146 const CallGraphNode& c_node = flat_call_graph->GetNode(c_computation); in TEST_F() 181 const CallGraphNode& cond_node = call_graph->GetNode(cond_computation); in TEST_F() 189 const CallGraphNode& cond_node = call_graph->GetNode(cond_computation); in TEST_F() 220 const CallGraphNode& c_node = call_graph->GetNode(c_computation); in TEST_F() 223 const CallGraphNode& b_node = call_graph->GetNode(b_computation); in TEST_F() 253 const CallGraphNode& sub_node = call_graph->GetNode(sub_computation); in TEST_F()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CallGraph.cpp | 34 CallsExternalNode(llvm::make_unique<CallGraphNode>(nullptr)) { in CallGraph() 62 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 94 SmallVector<CallGraphNode *, 16> Nodes; in print() 101 [](CallGraphNode *LHS, CallGraphNode *RHS) { in print() 109 for (CallGraphNode *CN : Nodes) in print() 123 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() 150 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() 156 CGN = llvm::make_unique<CallGraphNode>(const_cast<Function *>(F)); in getOrInsertFunction() 164 void CallGraphNode::print(raw_ostream &OS) const { in print() 183 LLVM_DUMP_METHOD void CallGraphNode::dump() const { print(dbgs()); } in dump() [all …]
|
D | CallGraphSCCPass.cpp | 161 for (CallGraphNode *CGN : CurSCC) { in RunPassOnSCC() 193 DenseMap<Value*, CallGraphNode*> CallSites; in RefreshCallGraph() 197 for (CallGraphNode *CGN in RefreshCallGraph() 207 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() 219 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph() 286 DenseMap<Value*, CallGraphNode*>::iterator ExistingIt = in RefreshCallGraph() 289 CallGraphNode *ExistingNode = ExistingIt->second; in RefreshCallGraph() 312 CallGraphNode *CalleeNode; in RefreshCallGraph() 336 CallGraphNode *CalleeNode; in RefreshCallGraph() 377 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph() [all …]
|
/external/llvm/lib/Analysis/ |
D | CallGraph.cpp | 25 CallsExternalNode(llvm::make_unique<CallGraphNode>(nullptr)) { in CallGraph() 58 CallGraphNode *Node = getOrInsertFunction(F); in addToCallGraph() 109 SmallVector<CallGraphNode *, 16> Nodes; in print() 116 [](CallGraphNode *LHS, CallGraphNode *RHS) { in print() 124 for (CallGraphNode *CN : Nodes) in print() 137 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() 165 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() 171 CGN = llvm::make_unique<CallGraphNode>(const_cast<Function *>(F)); in getOrInsertFunction() 179 void CallGraphNode::print(raw_ostream &OS) const { in print() 198 void CallGraphNode::dump() const { print(dbgs()); } in dump() [all …]
|
D | CallGraphSCCPass.cpp | 146 for (CallGraphNode *CGN : CurSCC) { in RunPassOnSCC() 180 DenseMap<Value*, CallGraphNode*> CallSites; in RefreshCallGraph() 184 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph() 195 CallGraphNode *CGN = *SCCIdx; in RefreshCallGraph() 207 for (CallGraphNode::iterator I = CGN->begin(), E = CGN->end(); I != E; ) { in RefreshCallGraph() 274 DenseMap<Value*, CallGraphNode*>::iterator ExistingIt = in RefreshCallGraph() 277 CallGraphNode *ExistingNode = ExistingIt->second; in RefreshCallGraph() 300 CallGraphNode *CalleeNode; in RefreshCallGraph() 324 CallGraphNode *CalleeNode; in RefreshCallGraph() 364 for (CallGraphNode *CGN : CurSCC) in RefreshCallGraph() [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() 134 CallGraphNode *Node = getOrInsertNode(D); in addNodeForDecl() 142 CallGraphNode *CallGraph::getNode(const Decl *F) const { in getNode() 148 CallGraphNode *CallGraph::getOrInsertNode(Decl *F) { in getOrInsertNode() 152 CallGraphNode *&Node = FunctionMap[F]; in getOrInsertNode() 156 Node = new CallGraphNode(F); in getOrInsertNode() 171 const CallGraphNode *N = *I; in print() 180 for (CallGraphNode::const_iterator CI = N->begin(), in print() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | CallGraphSCCPass.h | 29 class CallGraphNode; variable 82 std::vector<CallGraphNode*> Nodes; 86 void initialize(CallGraphNode*const*I, CallGraphNode*const*E) { in initialize() 95 void ReplaceNode(CallGraphNode *Old, CallGraphNode *New); 97 typedef std::vector<CallGraphNode*>::const_iterator iterator;
|
/external/llvm/lib/Transforms/IPO/ |
D | PruneEH.cpp | 65 SmallPtrSet<CallGraphNode *, 8> SCCNodes; in runImpl() 70 for (CallGraphNode *I : SCC) in runImpl() 75 for (CallGraphNode *I : SCC) in runImpl() 132 CallGraphNode *CalleeNode = CG[Callee]; in runImpl() 156 for (CallGraphNode *I : SCC) { in runImpl() 170 for (CallGraphNode *I : SCC) { in runImpl() 240 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
|
D | Inliner.cpp | 384 for (CallGraphNode *Node : SCC) { in inlineCalls() 401 for (CallGraphNode *Node : SCC) { in inlineCalls() 538 CallGraphNode *CalleeNode = CG[Callee]; in inlineCalls() 576 SmallVector<CallGraphNode*, 16> FunctionsToRemove; in removeDeadFunctions() 577 SmallVector<CallGraphNode *, 16> DeadFunctionsInComdats; in removeDeadFunctions() 580 auto RemoveCGN = [&](CallGraphNode *CGN) { in removeDeadFunctions() 596 CallGraphNode *CGN = I.second.get(); in removeDeadFunctions() 644 for (CallGraphNode *CGN : DeadFunctionsInComdats) { in removeDeadFunctions() 671 for (CallGraphNode *CGN : FunctionsToRemove) { in removeDeadFunctions()
|
D | ArgumentPromotion.cpp | 95 static CallGraphNode * 96 PromoteArguments(CallGraphNode *CGN, CallGraph &CG, 103 static CallGraphNode * 128 for (CallGraphNode *OldNode : SCC) { in runImpl() 129 if (CallGraphNode *NewNode = in runImpl() 241 static CallGraphNode * 242 PromoteArguments(CallGraphNode *CGN, CallGraph &CG, in PromoteArguments() 633 static CallGraphNode * 774 CallGraphNode *NF_CGN = CG.getOrInsertFunction(NF); in DoPromotion() 897 CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()]; in DoPromotion() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | PruneEH.cpp | 64 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() 236 CallGraphNode *CGN = CG[BB->getParent()]; in DeleteBasicBlock()
|
D | SyntheticCountsPropagation.cpp | 107 auto GetCallSiteRelFreq = [&](const CallGraphNode::CallRecord &Edge) { in run() 126 [&](const CallGraphNode *N) { return Counts[N->getFunction()]; }, in run() 127 [&](const CallGraphNode *N, uint64_t New) { in run()
|
/external/swiftshader/third_party/LLVM/tools/opt/ |
D | PrintSCC.cpp | 95 CallGraphNode* rootNode = getAnalysis<CallGraph>().getRoot(); in runOnModule() 98 for (scc_iterator<CallGraphNode*> SCCI = scc_begin(rootNode), in runOnModule() 100 const std::vector<CallGraphNode*> &nextSCC = *SCCI; in runOnModule() 102 for (std::vector<CallGraphNode*>::const_iterator I = nextSCC.begin(), in runOnModule()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 77 CallGraphNode *PromoteArguments(CallGraphNode *CGN); 79 CallGraphNode *DoPromotion(Function *F, 106 if (CallGraphNode *CGN = PromoteArguments(*I)) { in runOnSCC() 122 CallGraphNode *ArgPromotion::PromoteArguments(CallGraphNode *CGN) { in PromoteArguments() 491 CallGraphNode *ArgPromotion::DoPromotion(Function *F, in DoPromotion() 635 CallGraphNode *NF_CGN = CG.getOrInsertFunction(NF); in DoPromotion() 755 CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()]; in DoPromotion() 898 CallGraphNode *CGN = CG[F]; in DoPromotion()
|