Home
last modified time | relevance | path

Searched refs:CallGraph (Results 1 – 25 of 108) sorted by relevance

12345

/external/clang/lib/Analysis/
DCallGraph.cpp32 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/
DCallGraph.h74 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 …]
DCallGraphSCCPass.h30 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/
DCallGraph.h76 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 …]
DCallGraphSCCPass.h31 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/
DCallGraph.h34 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/llvm/lib/Analysis/
DCallPrinter.cpp25 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()
DCallGraph.cpp23 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()
DCallGraphSCCPass.cpp60 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/
DCallPrinter.cpp25 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()
DCallGraph.cpp32 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()
DCallGraphSCCPass.cpp69 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/tensorflow/tensorflow/compiler/xla/service/
Dcall_graph.cc128 CallGraph::CallGraph(const HloModule* module) : module_(module) {} in CallGraph() function in xla::CallGraph
130 const CallGraphNode& CallGraph::GetNode( in GetNode()
137 CallGraphNode& CallGraph::GetNode(const HloComputation* computation) { in GetNode()
143 bool CallGraph::DominatesHelper( in DominatesHelper()
168 bool CallGraph::Dominates(const HloComputation* a, in Dominates()
194 void CallGraph::SetCallContexts() { in SetCallContexts()
242 void CallGraph::SetNodeDepths() { in SetNodeDepths()
278 std::unique_ptr<CallGraph> CallGraph::Build(const HloModule* module) { in Build()
280 auto call_graph = absl::WrapUnique<CallGraph>(new CallGraph(module)); in Build()
319 Status CallGraph::VisitNodesInternal( in VisitNodesInternal()
[all …]
Dcall_graph.h133 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;
Dcall_graph_test.cc100 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 …]
Dflatten_call_graph_test.cc145 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/deqp-deps/SPIRV-Tools/source/fuzz/
Dcall_graph.cpp22 CallGraph::CallGraph(opt::IRContext* context) { in CallGraph() function in spvtools::fuzz::CallGraph
56 void CallGraph::PushDirectCallees(uint32_t function_id, in PushDirectCallees()
63 std::set<uint32_t> CallGraph::GetIndirectCallees(uint32_t function_id) const { in GetIndirectCallees()
/external/angle/third_party/spirv-tools/src/source/fuzz/
Dcall_graph.cpp22 CallGraph::CallGraph(opt::IRContext* context) { in CallGraph() function in spvtools::fuzz::CallGraph
56 void CallGraph::PushDirectCallees(uint32_t function_id, in PushDirectCallees()
63 std::set<uint32_t> CallGraph::GetIndirectCallees(uint32_t function_id) const { in GetIndirectCallees()
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/
Dcall_graph.cpp22 CallGraph::CallGraph(opt::IRContext* context) { in CallGraph() function in spvtools::fuzz::CallGraph
56 void CallGraph::PushDirectCallees(uint32_t function_id, in PushDirectCallees()
63 std::set<uint32_t> CallGraph::GetIndirectCallees(uint32_t function_id) const { in GetIndirectCallees()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/
DInliner.h25 class CallGraph; variable
40 bool doInitialization(CallGraph &CG) override;
50 bool doFinalization(CallGraph &CG) override;
63 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false);
DInternalize.h33 class CallGraph; variable
64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
73 CallGraph *CG = nullptr) {
/external/llvm/lib/Transforms/IPO/
DPruneEH.cpp52 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/
DPruneEH.cpp51 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/
DInternalize.h33 class CallGraph; variable
64 bool internalizeModule(Module &TheModule, CallGraph *CG = nullptr);
73 CallGraph *CG = nullptr) {
/external/llvm/unittests/Analysis/
DCallGraphTest.cpp49 CallGraph CG(M); in TEST()
57 CallGraph CG(M); in TEST()
59 canSpecializeGraphTraitsIterators(const_cast<const CallGraph *>(&CG)); in TEST()

12345