/external/clang/lib/Analysis/ |
D | CallGraph.cpp | 32 CallGraph *G; 36 CGBuilder(CallGraph *g, CallGraphNode *N) in CGBuilder() 94 void CallGraph::addNodesForBlocks(DeclContext *D) { in addNodesForBlocks() 103 CallGraph::CallGraph() { in CallGraph() function in CallGraph 107 CallGraph::~CallGraph() { in ~CallGraph() 111 bool CallGraph::includeInGraph(const Decl *D) { in includeInGraph() 130 void CallGraph::addNodeForDecl(Decl* D, bool IsGlobal) { in addNodeForDecl() 142 CallGraphNode *CallGraph::getNode(const Decl *F) const { in getNode() 148 CallGraphNode *CallGraph::getOrInsertNode(Decl *F) { in getOrInsertNode() 163 void CallGraph::print(raw_ostream &OS) const { in print() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | CallGraph.h | 74 class CallGraph { 103 explicit CallGraph(Module &M); 104 CallGraph(CallGraph &&Arg); 105 ~CallGraph(); 270 friend class CallGraph; 299 using Result = CallGraph; 304 CallGraph run(Module &M, ModuleAnalysisManager &) { return CallGraph(M); } in run() 325 std::unique_ptr<CallGraph> G; 335 const CallGraph &getCallGraph() const { return *G; } in getCallGraph() 336 CallGraph &getCallGraph() { return *G; } in getCallGraph() [all …]
|
D | CallGraphSCCPass.h | 30 class CallGraph; variable 49 virtual bool doInitialization(CallGraph &CG) { in doInitialization() 64 virtual bool doFinalization(CallGraph &CG) { in doFinalization() 89 const CallGraph &CG; // The call graph for this SCC. 94 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC() 112 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
|
/external/llvm/include/llvm/Analysis/ |
D | CallGraph.h | 76 class CallGraph { 109 explicit CallGraph(Module &M); 110 CallGraph(CallGraph &&Arg); 111 ~CallGraph(); 273 friend class CallGraph; 304 typedef CallGraph Result; 309 CallGraph run(Module &M, ModuleAnalysisManager &) { return CallGraph(M); } in run() 329 std::unique_ptr<CallGraph> G; 339 const CallGraph &getCallGraph() const { return *G; } in getCallGraph() 340 CallGraph &getCallGraph() { return *G; } in getCallGraph() [all …]
|
D | CallGraphSCCPass.h | 31 class CallGraph; variable 49 virtual bool doInitialization(CallGraph &CG) { in doInitialization() 65 virtual bool doFinalization(CallGraph &CG) { in doFinalization() 90 const CallGraph &CG; // The call graph for this SCC. 95 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC() 112 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 34 class CallGraph : public RecursiveASTVisitor<CallGraph> { 46 CallGraph(); 47 ~CallGraph(); 159 void addCallee(CallGraphNode *N, CallGraph *CG) { in addCallee() 199 template <> struct GraphTraits<clang::CallGraph*> 202 static NodeType *getEntryNode(clang::CallGraph *CGN) { 208 typedef mapped_iterator<clang::CallGraph::iterator, DerefFun> nodes_iterator; 210 static nodes_iterator nodes_begin(clang::CallGraph *CG) { 213 static nodes_iterator nodes_end (clang::CallGraph *CG) { 220 static unsigned size(clang::CallGraph *CG) { [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/IPA/ |
D | CallGraph.cpp | 29 class BasicCallGraph : public ModulePass, public CallGraph { 52 CallGraph::initialize(M); in runOnModule() 80 CallGraph::print(OS, 0); in print() 92 if (PI == &CallGraph::ID) in getAdjustedAnalysisPointer() 93 return (CallGraph*)this; in getAdjustedAnalysisPointer() 170 CallGraph::destroy(); in destroy() 176 INITIALIZE_ANALYSIS_GROUP(CallGraph, "Call Graph", BasicCallGraph) 177 INITIALIZE_AG_PASS(BasicCallGraph, CallGraph, "basiccg", 180 char CallGraph::ID = 0; 183 void CallGraph::initialize(Module &M) { in initialize() [all …]
|
D | CallGraphSCCPass.cpp | 54 bool doInitialization(CallGraph &CG); 55 bool doFinalization(CallGraph &CG); 60 Info.addRequired<CallGraph>(); in getAnalysisUsage() 91 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, 95 CallGraph &CG, bool &CallGraphUpToDate, 97 bool RefreshCallGraph(CallGraphSCC &CurSCC, CallGraph &CG, 107 CallGraph &CG, bool &CallGraphUpToDate, in RunPassOnSCC() 171 CallGraph &CG, bool CheckingMode) { in RefreshCallGraph() 361 bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, in RunAllPassesOnSCC() 422 CallGraph &CG = getAnalysis<CallGraph>(); in runOnModule() [all …]
|
/external/llvm/lib/Analysis/ |
D | CallPrinter.cpp | 25 template <> struct DOTGraphTraits<CallGraph *> : public DefaultDOTGraphTraits { 28 static std::string getGraphName(CallGraph *Graph) { return "Call graph"; } in getGraphName() 30 std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel() 39 static CallGraph *getGraph(CallGraphWrapperPass *P) { in getGraph() 49 : public DOTGraphTraitsModuleViewer<CallGraphWrapperPass, true, CallGraph *, 54 : DOTGraphTraitsModuleViewer<CallGraphWrapperPass, true, CallGraph *, in CallGraphViewer() 62 CallGraphWrapperPass, true, CallGraph *, 67 : DOTGraphTraitsModulePrinter<CallGraphWrapperPass, true, CallGraph *, in CallGraphDOTPrinter()
|
D | CallGraph.cpp | 23 CallGraph::CallGraph(Module &M) in CallGraph() function in CallGraph 35 CallGraph::CallGraph(CallGraph &&Arg) in CallGraph() function in CallGraph 44 CallGraph::~CallGraph() { in ~CallGraph() 57 void CallGraph::addToCallGraph(Function *F) { in addToCallGraph() 98 void CallGraph::print(raw_ostream &OS) const { in print() 129 void CallGraph::dump() const { print(dbgs()); } in dump() 137 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() 152 void CallGraph::spliceFunction(const Function *From, const Function *To) { in spliceFunction() 165 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() 289 G.reset(new CallGraph(M)); in runOnModule()
|
D | CallGraphSCCPass.cpp | 60 bool doInitialization(CallGraph &CG); 61 bool doFinalization(CallGraph &CG); 97 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, 101 CallGraph &CG, bool &CallGraphUpToDate, 103 bool RefreshCallGraph(CallGraphSCC &CurSCC, CallGraph &CG, 113 CallGraph &CG, bool &CallGraphUpToDate, in RunPassOnSCC() 179 CallGraph &CG, bool CheckingMode) { in RefreshCallGraph() 381 bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, in RunAllPassesOnSCC() 442 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnModule() 446 scc_iterator<CallGraph*> CGI = scc_begin(&CG); in runOnModule() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CallPrinter.cpp | 25 template <> struct DOTGraphTraits<CallGraph *> : public DefaultDOTGraphTraits { 28 static std::string getGraphName(CallGraph *Graph) { return "Call graph"; } in getGraphName() 30 std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel() 39 static CallGraph *getGraph(CallGraphWrapperPass *P) { in getGraph() 49 : public DOTGraphTraitsModuleViewer<CallGraphWrapperPass, true, CallGraph *, 54 : DOTGraphTraitsModuleViewer<CallGraphWrapperPass, true, CallGraph *, in CallGraphViewer() 62 CallGraphWrapperPass, true, CallGraph *, 67 : DOTGraphTraitsModulePrinter<CallGraphWrapperPass, true, CallGraph *, in CallGraphDOTPrinter()
|
D | CallGraph.cpp | 32 CallGraph::CallGraph(Module &M) in CallGraph() function in CallGraph 40 CallGraph::CallGraph(CallGraph &&Arg) in CallGraph() function in CallGraph 48 CallGraph::~CallGraph() { in ~CallGraph() 61 void CallGraph::addToCallGraph(Function *F) { in addToCallGraph() 90 void CallGraph::print(raw_ostream &OS) const { in print() 114 LLVM_DUMP_METHOD void CallGraph::dump() const { print(dbgs()); } in dump() 123 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule() 137 void CallGraph::spliceFunction(const Function *From, const Function *To) { in spliceFunction() 150 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction() 275 G.reset(new CallGraph(M)); in runOnModule()
|
D | CallGraphSCCPass.cpp | 69 bool doInitialization(CallGraph &CG); 70 bool doFinalization(CallGraph &CG); 104 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, 108 CallGraph &CG, bool &CallGraphUpToDate, 110 bool RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG, 119 CallGraph &CG, bool &CallGraphUpToDate, in RunPassOnSCC() 191 bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG, in RefreshCallGraph() 392 bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, in RunAllPassesOnSCC() 453 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnModule() 457 scc_iterator<CallGraph*> CGI = scc_begin(&CG); in runOnModule() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | CallGraph.h | 72 class CallGraph { 152 CallGraph() {} in CallGraph() function 155 virtual ~CallGraph() { destroy(); } in ~CallGraph() 173 friend class CallGraph; variable 341 template<> struct GraphTraits<CallGraph*> : public GraphTraits<CallGraphNode*> { 342 static NodeType *getEntryNode(CallGraph *CGN) { 349 typedef mapped_iterator<CallGraph::iterator, DerefFun> nodes_iterator; 350 static nodes_iterator nodes_begin(CallGraph *CG) { 353 static nodes_iterator nodes_end (CallGraph *CG) { 362 template<> struct GraphTraits<const CallGraph*> : [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | call_graph.cc | 126 CallGraph::CallGraph(const HloModule* module) : module_(module) {} in CallGraph() function in xla::CallGraph 128 const CallGraphNode& CallGraph::GetNode( in GetNode() 135 CallGraphNode& CallGraph::GetNode(const HloComputation* computation) { in GetNode() 141 bool CallGraph::DominatesHelper( in DominatesHelper() 166 bool CallGraph::Dominates(const HloComputation* a, in Dominates() 192 void CallGraph::SetCallContexts() { in SetCallContexts() 240 void CallGraph::SetNodeDepths() { in SetNodeDepths() 276 std::unique_ptr<CallGraph> CallGraph::Build(const HloModule* module) { in Build() 278 auto call_graph = absl::WrapUnique<CallGraph>(new CallGraph(module)); in Build() 317 Status CallGraph::VisitNodesInternal( in VisitNodesInternal() [all …]
|
D | call_graph.h | 133 friend class CallGraph; 182 class CallGraph { 187 static std::unique_ptr<CallGraph> Build(const HloModule* module); 257 CallGraph(const HloModule* module); 260 CallGraph(const CallGraph&) = delete; 261 CallGraph& operator=(const CallGraph&) = delete;
|
D | call_graph_test.cc | 100 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 123 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 147 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 178 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 219 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 269 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 341 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 476 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 506 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 523 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() [all …]
|
D | flatten_call_graph_test.cc | 145 std::unique_ptr<CallGraph> flat_call_graph = CallGraph::Build(module.get()); in TEST_F() 180 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 188 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 217 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F() 249 std::unique_ptr<CallGraph> call_graph = CallGraph::Build(module.get()); in TEST_F()
|
/external/swiftshader/third_party/LLVM/tools/opt/ |
D | GraphPrinters.cpp | 53 struct DOTGraphTraits<CallGraph*> : public DefaultDOTGraphTraits { 57 static std::string getGraphName(CallGraph *F) { in getGraphName() 61 static std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) { in getNodeLabel() 76 WriteGraphToFile(llvm::errs(), "callgraph", &getAnalysis<CallGraph>()); in runOnModule() 83 AU.addRequired<CallGraph>(); in getAnalysisUsage()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | InlineAlways.cpp | 56 virtual bool doFinalization(CallGraph &CG) { in doFinalization() 59 virtual bool doInitialization(CallGraph &CG); 69 INITIALIZE_AG_DEPENDENCY(CallGraph) in INITIALIZE_AG_DEPENDENCY() argument 77 bool AlwaysInliner::doInitialization(CallGraph &CG) { in doInitialization()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/ |
D | Inliner.h | 25 class CallGraph; variable 40 bool doInitialization(CallGraph &CG) override; 50 bool doFinalization(CallGraph &CG) override; 63 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false);
|
/external/llvm/lib/Transforms/IPO/ |
D | PruneEH.cpp | 52 static bool SimplifyFunction(Function *F, CallGraph &CG); 53 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG); 64 static bool runImpl(CallGraphSCC &SCC, CallGraph &CG) { in runImpl() 185 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() 193 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() 235 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG) { in DeleteBasicBlock()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | PruneEH.cpp | 51 static bool SimplifyFunction(Function *F, CallGraph &CG); 52 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG); 63 static bool runImpl(CallGraphSCC &SCC, CallGraph &CG) { in runImpl() 181 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() 189 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() 231 static void DeleteBasicBlock(BasicBlock *BB, CallGraph &CG) { in DeleteBasicBlock()
|
/external/llvm/include/llvm/Transforms/IPO/ |
D | Internalize.h | 33 class CallGraph; variable 64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr); 73 CallGraph *CG = nullptr) {
|