Home
last modified time | relevance | path

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

12

/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 …]
DCMakeLists.txt11 CallGraph.cpp
DAndroid.mk19 CallGraph.cpp \
/external/llvm/include/llvm/Analysis/
DCallGraph.h75 class CallGraph {
108 explicit CallGraph(Module &M);
109 CallGraph(CallGraph &&Arg);
110 ~CallGraph();
272 friend class CallGraph;
300 typedef CallGraph Result;
307 CallGraph run(Module *M) { return CallGraph(*M); } in run()
321 std::unique_ptr<CallGraph> G;
331 const CallGraph &getCallGraph() const { return *G; } in getCallGraph()
332 CallGraph &getCallGraph() { return *G; } in getCallGraph()
[all …]
DCallGraphSCCPass.h30 class CallGraph; variable
48 virtual bool doInitialization(CallGraph &CG) { in doInitialization()
64 virtual bool doFinalization(CallGraph &CG) { in doFinalization()
DGlobalsModRef.h81 CallGraph &CG);
105 void AnalyzeCallGraph(CallGraph &CG, Module &M);
111 void CollectSCCMembership(CallGraph &CG);
/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 CallGraphPrinter()
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()
100 void CallGraph::print(raw_ostream &OS) const { in print()
131 void CallGraph::dump() const { print(dbgs()); } in dump()
139 Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) { in removeFunctionFromModule()
154 void CallGraph::spliceFunction(const Function *From, const Function *To) { in spliceFunction()
167 CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) { in getOrInsertFunction()
284 G.reset(new CallGraph(M)); in runOnModule()
DCallGraphSCCPass.cpp59 bool doInitialization(CallGraph &CG);
60 bool doFinalization(CallGraph &CG);
96 bool RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG,
100 CallGraph &CG, bool &CallGraphUpToDate,
102 bool RefreshCallGraph(CallGraphSCC &CurSCC, CallGraph &CG,
112 CallGraph &CG, bool &CallGraphUpToDate, in RunPassOnSCC()
178 CallGraph &CG, bool CheckingMode) { in RefreshCallGraph()
380 bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG, in RunAllPassesOnSCC()
441 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnModule()
445 scc_iterator<CallGraph*> CGI = scc_begin(&CG); in runOnModule()
[all …]
DGlobalsModRef.cpp471 void GlobalsAAResult::CollectSCCMembership(CallGraph &CG) { in CollectSCCMembership()
475 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in CollectSCCMembership()
490 void GlobalsAAResult::AnalyzeCallGraph(CallGraph &CG, Module &M) { in AnalyzeCallGraph()
493 for (scc_iterator<CallGraph *> I = scc_begin(&CG); !I.isAtEnd(); ++I) { in AnalyzeCallGraph()
947 CallGraph &CG) { in analyzeModule()
DCMakeLists.txt15 CallGraph.cpp
DAndroid.mk13 CallGraph.cpp \
/external/llvm/unittests/Analysis/
DCallGraphTest.cpp48 CallGraph CG(M); in TEST()
55 CallGraph CG(M); in TEST()
57 canSpecializeGraphTraitsIterators(const_cast<const CallGraph *>(&CG)); in TEST()
/external/llvm/include/llvm/Transforms/IPO/
DInlinerPass.h48 bool doFinalization(CallGraph &CG) override;
75 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false);
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h43 class CallGraph; variable
209 explicit InlineFunctionInfo(CallGraph *cg = nullptr,
215 CallGraph *CG;
/external/llvm/tools/opt/
DPrintSCC.cpp94 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnModule()
97 for (scc_iterator<CallGraph*> SCCI = scc_begin(&CG); !SCCI.isAtEnd(); in runOnModule()
/external/clang/lib/StaticAnalyzer/Checkers/
DDebugCheckers.cpp127 CallGraph CG; in checkASTDecl()
147 CallGraph CG; in checkASTDecl()
/external/llvm/lib/Transforms/IPO/
DPruneEH.cpp67 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC()
252 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in DeleteBasicBlock()
DInlineAlways.cpp60 bool doFinalization(CallGraph &CG) override { in doFinalization()
DInliner.cpp474 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC()
666 bool Inliner::doFinalization(CallGraph &CG) { in doFinalization()
671 bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) { in removeDeadFunctions()
DInternalize.cpp174 CallGraph *CG = CGPass ? &CGPass->getCallGraph() : nullptr; in runOnModule()
DArgumentPromotion.cpp95 bool doInitialization(CallGraph &CG) override;
750 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in DoPromotion()
1017 bool ArgPromotion::doInitialization(CallGraph &CG) { in doInitialization()
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp462 CallGraph CG; in HandleDeclsCallGraph()
475 llvm::ReversePostOrderTraversal<clang::CallGraph*> RPOT(&CG); in HandleDeclsCallGraph()
476 for (llvm::ReversePostOrderTraversal<clang::CallGraph*>::rpo_iterator in HandleDeclsCallGraph()
/external/llvm/unittests/IR/
DLegacyPassManagerTest.cpp171 struct CGPass : public PassTest<CallGraph, CallGraphSCCPass> {

12