/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/ |
D | LazyCallGraphTest.cpp | 222 LazyCallGraph CG(M, TLI); in buildCG() local 223 return CG; in buildCG() 229 LazyCallGraph CG = buildCG(*M); in TEST() local 234 auto I = CG.begin(); in TEST() 259 EXPECT_EQ(CG.end(), I); in TEST() 319 CG.buildRefSCCs(); in TEST() 320 auto J = CG.postorder_ref_scc_begin(); in TEST() 336 EXPECT_EQ(&D, &*CG.postorder_ref_scc_begin()); in TEST() 352 EXPECT_EQ(&C, &*std::next(CG.postorder_ref_scc_begin())); in TEST() 370 EXPECT_EQ(&B, &*std::next(CG.postorder_ref_scc_begin(), 2)); in TEST() [all …]
|
D | CGSCCPassManagerTest.cpp | 141 LazyCallGraph &CG, CGSCCUpdateResult &UR) { in run() 142 return Func(C, AM, CG, UR); in run() 274 LazyCallGraph &CG, CGSCCUpdateResult &UR) { in TEST_F() argument 278 AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager(); in TEST_F() 280 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager(); in TEST_F() 286 TestSCCAnalysis::Result &AR = AM.getResult<TestSCCAnalysis>(C, CG); in TEST_F() 351 LazyCallGraph &CG, CGSCCUpdateResult &UR) { in TEST_F() argument 353 AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager(); in TEST_F() 370 LazyCallGraph &CG, CGSCCUpdateResult &UR) { in TEST_F() argument 372 AM.getResult<ModuleAnalysisManagerCGSCCProxy>(C, CG).getManager(); in TEST_F() [all …]
|
D | CallGraphTest.cpp | 49 CallGraph CG(M); in TEST() local 51 canSpecializeGraphTraitsIterators(&CG); in TEST() 57 CallGraph CG(M); in TEST() local 59 canSpecializeGraphTraitsIterators(const_cast<const CallGraph *>(&CG)); in TEST()
|
/external/llvm/unittests/Analysis/ |
D | LazyCallGraphTest.cpp | 126 LazyCallGraph CG(*M); in TEST() local 131 auto I = CG.begin(); in TEST() 132 LazyCallGraph::Node &A1 = (I++)->getNode(CG); in TEST() 134 LazyCallGraph::Node &A2 = (I++)->getNode(CG); in TEST() 136 LazyCallGraph::Node &A3 = (I++)->getNode(CG); in TEST() 138 LazyCallGraph::Node &B1 = (I++)->getNode(CG); in TEST() 140 LazyCallGraph::Node &B2 = (I++)->getNode(CG); in TEST() 142 LazyCallGraph::Node &B3 = (I++)->getNode(CG); in TEST() 144 LazyCallGraph::Node &C1 = (I++)->getNode(CG); in TEST() 146 LazyCallGraph::Node &C2 = (I++)->getNode(CG); in TEST() [all …]
|
D | CallGraphTest.cpp | 49 CallGraph CG(M); in TEST() local 51 canSpecializeGraphTraitsIterators(&CG); in TEST() 57 CallGraph CG(M); in TEST() local 59 canSpecializeGraphTraitsIterators(const_cast<const CallGraph *>(&CG)); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
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() argument 123 Module &M = CG.getModule(); in RunPassOnSCC() 128 DevirtualizedCall |= RefreshCallGraph(CurSCC, CG, false); in RunPassOnSCC() 150 RefreshCallGraph(CurSCC, CG, true); in RunPassOnSCC() 191 bool CGPassManager::RefreshCallGraph(const CallGraphSCC &CurSCC, CallGraph &CG, in RefreshCallGraph() argument [all …]
|
/external/llvm/lib/Analysis/ |
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() argument 121 DevirtualizedCall |= RefreshCallGraph(CurSCC, CG, false); in RunPassOnSCC() 134 RefreshCallGraph(CurSCC, CG, true); in RunPassOnSCC() 179 CallGraph &CG, bool CheckingMode) { in RefreshCallGraph() argument 302 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/IPA/ |
D | CallGraphSCCPass.cpp | 54 bool doInitialization(CallGraph &CG); 55 bool doFinalization(CallGraph &CG); 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() argument 115 DevirtualizedCall |= RefreshCallGraph(CurSCC, CG, false); in RunPassOnSCC() 128 RefreshCallGraph(CurSCC, CG, true); in RunPassOnSCC() 171 CallGraph &CG, bool CheckingMode) { in RefreshCallGraph() argument 281 CalleeNode = CG.getOrInsertFunction(Callee); in RefreshCallGraph() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | Inliner.cpp | 452 bool LegacyInlinerBase::doInitialization(CallGraph &CG) { in doInitialization() argument 454 ImportedFunctionsStats.setModuleInfo(CG.getModule()); in doInitialization() 465 inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG, in inlineCallsImpl() argument 542 InlineFunctionInfo InlineInfo(&CG, &GetAssumptionCache, PSI); in inlineCallsImpl() 598 CG[Caller]->removeCallEdgeFor(CS); in inlineCallsImpl() 659 CG[Callee]->getNumReferences() == 0) { in inlineCallsImpl() 662 CallGraphNode *CalleeNode = CG[Callee]; in inlineCallsImpl() 668 delete CG.removeFunctionFromModule(CalleeNode); in inlineCallsImpl() 693 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in inlineCalls() local 700 return inlineCallsImpl(SCC, CG, GetAssumptionCache, PSI, TLI, InsertLifetime, in inlineCalls() [all …]
|
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() argument 76 MadeChange |= SimplifyFunction(F, CG); in runImpl() 128 CallGraphNode *CalleeNode = CG[Callee]; in runImpl() 171 MadeChange |= SimplifyFunction(F, CG); in runImpl() 181 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() local 182 return runImpl(SCC, CG); in runOnSCC() 189 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() argument 199 DeleteBasicBlock(UnwindBlock, CG); // Delete the new BB. in SimplifyFunction() [all …]
|
/external/clang/include/clang/Analysis/ |
D | CallGraph.h | 159 void addCallee(CallGraphNode *N, CallGraph *CG) { in addCallee() argument 210 static nodes_iterator nodes_begin(clang::CallGraph *CG) { 211 return map_iterator(CG->begin(), DerefFun(CGdereference)); 213 static nodes_iterator nodes_end (clang::CallGraph *CG) { 214 return map_iterator(CG->end(), DerefFun(CGdereference)); 220 static unsigned size(clang::CallGraph *CG) { 221 return CG->size(); 236 static nodes_iterator nodes_begin(const clang::CallGraph *CG) { 237 return map_iterator(CG->begin(), DerefFun(CGdereference)); 239 static nodes_iterator nodes_end(const clang::CallGraph *CG) { [all …]
|
/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() argument 77 MadeChange |= SimplifyFunction(F, CG); in runImpl() 132 CallGraphNode *CalleeNode = CG[Callee]; in runImpl() 175 MadeChange |= SimplifyFunction(F, CG); in runImpl() 185 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in runOnSCC() local 186 return runImpl(SCC, CG); in runOnSCC() 193 static bool SimplifyFunction(Function *F, CallGraph &CG) { in SimplifyFunction() argument 203 DeleteBasicBlock(UnwindBlock, CG); // Delete the new BB. in SimplifyFunction() [all …]
|
D | Inliner.cpp | 377 CallGraph &CG = getAnalysis<CallGraphWrapperPass>().getCallGraph(); in inlineCalls() local 379 PSI = getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(CG.getModule()); in inlineCalls() 440 InlineFunctionInfo InlineInfo(&CG, ACT); in inlineCalls() 465 CG[Caller]->removeCallEdgeFor(CS); in inlineCalls() 535 CG[Callee]->getNumReferences() == 0) { in inlineCalls() 538 CallGraphNode *CalleeNode = CG[Callee]; in inlineCalls() 544 delete CG.removeFunctionFromModule(CalleeNode); in inlineCalls() 570 bool Inliner::doFinalization(CallGraph &CG) { in doFinalization() argument 571 return removeDeadFunctions(CG); in doFinalization() 575 bool Inliner::removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly) { in removeDeadFunctions() argument [all …]
|
/external/llvm/test/Other/ |
D | pass-pipeline-parsing.ll | 106 ; RUN: | FileCheck %s --check-prefix=CHECK-TWO-NOOP-CG 107 ; CHECK-TWO-NOOP-CG: Starting llvm::Module pass manager run 108 ; CHECK-TWO-NOOP-CG: Running pass: ModuleToPostOrderCGSCCPassAdaptor 109 ; CHECK-TWO-NOOP-CG: Starting llvm::LazyCallGraph::SCC pass manager run 110 ; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass 111 ; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass 112 ; CHECK-TWO-NOOP-CG: Finished llvm::LazyCallGraph::SCC pass manager run 113 ; CHECK-TWO-NOOP-CG: Finished llvm::Module pass manager run 117 ; RUN: | FileCheck %s --check-prefix=CHECK-NESTED-MP-CG-FP 118 ; CHECK-NESTED-MP-CG-FP: Starting llvm::Module pass manager run [all …]
|
D | new-pass-manager.ll | 231 ; RUN: | FileCheck %s --check-prefix=CHECK-INVALIDATE-ALL-CG 232 ; CHECK-INVALIDATE-ALL-CG: Starting llvm::Module pass manager run 233 ; CHECK-INVALIDATE-ALL-CG: Running pass: RequireAnalysisPass 234 ; CHECK-INVALIDATE-ALL-CG: Running analysis: NoOpModuleAnalysis 235 ; CHECK-INVALIDATE-ALL-CG: Starting llvm::Module pass manager run 236 ; CHECK-INVALIDATE-ALL-CG: Running pass: RequireAnalysisPass 237 ; CHECK-INVALIDATE-ALL-CG-NOT: Running analysis: NoOpModuleAnalysis 238 ; CHECK-INVALIDATE-ALL-CG: Starting llvm::LazyCallGraph::SCC pass manager run 239 ; CHECK-INVALIDATE-ALL-CG: Running pass: RequireAnalysisPass 240 ; CHECK-INVALIDATE-ALL-CG: Running analysis: NoOpCGSCCAnalysis [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Other/ |
D | pass-pipeline-parsing.ll | 106 ; RUN: | FileCheck %s --check-prefix=CHECK-TWO-NOOP-CG 107 ; CHECK-TWO-NOOP-CG: Starting llvm::Module pass manager run 108 ; CHECK-TWO-NOOP-CG: Running pass: ModuleToPostOrderCGSCCPassAdaptor 109 ; CHECK-TWO-NOOP-CG: Starting CGSCC pass manager run 110 ; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass 111 ; CHECK-TWO-NOOP-CG: Running pass: NoOpCGSCCPass 112 ; CHECK-TWO-NOOP-CG: Finished CGSCC pass manager run 113 ; CHECK-TWO-NOOP-CG: Finished llvm::Module pass manager run 117 ; RUN: | FileCheck %s --check-prefix=CHECK-NESTED-MP-CG-FP 118 ; CHECK-NESTED-MP-CG-FP: Starting llvm::Module pass manager run [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/ |
D | Inliner.cpp | 331 CallGraph &CG = getAnalysis<CallGraph>(); in runOnSCC() local 391 InlineFunctionInfo InlineInfo(&CG, TD); in runOnSCC() 415 CG[Caller]->removeCallEdgeFor(CS); in runOnSCC() 474 CG[Callee]->getNumReferences() == 0) { in runOnSCC() 477 CallGraphNode *CalleeNode = CG[Callee]; in runOnSCC() 485 delete CG.removeFunctionFromModule(CalleeNode); in runOnSCC() 511 bool Inliner::doFinalization(CallGraph &CG) { in doFinalization() argument 512 return removeDeadFunctions(CG); in doFinalization() 517 bool Inliner::removeDeadFunctions(CallGraph &CG, in removeDeadFunctions() argument 523 for (CallGraph::iterator I = CG.begin(), E = CG.end(); I != E; ++I) { in removeDeadFunctions() [all …]
|
D | InlineAlways.cpp | 56 virtual bool doFinalization(CallGraph &CG) { in doFinalization() argument 57 return removeDeadFunctions(CG, &NeverInline); in doFinalization() 59 virtual bool doInitialization(CallGraph &CG); 77 bool AlwaysInliner::doInitialization(CallGraph &CG) { in doInitialization() argument 80 Module &M = CG.getModule(); in doInitialization()
|
/external/llvm/tools/lto/ |
D | lto.cpp | 147 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local 156 CG->setAttr(attrs.c_str()); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 161 CG->setOptLevel(OptLevel - '0'); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 409 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile() local 410 CG->NativeObjectFile = in lto_codegen_compile() 411 CG->compile(DisableVerify, DisableInline, DisableGVNLoadPRE, in lto_codegen_compile() 413 if (!CG->NativeObjectFile) in lto_codegen_compile() 415 *length = CG->NativeObjectFile->getBufferSize(); in lto_codegen_compile() 416 return CG->NativeObjectFile->getBufferStart(); in lto_codegen_compile() 427 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile_optimized() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/lto/ |
D | lto.cpp | 155 LTOCodeGenerator *CG = unwrap(cg); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local 164 CG->setAttr(attrs); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 169 CG->setOptLevel(OptLevel - '0'); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 170 CG->setFreestanding(EnableFreestanding); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 422 LibLTOCodeGenerator *CG = unwrap(cg); in lto_codegen_compile() local 423 CG->NativeObjectFile = in lto_codegen_compile() 424 CG->compile(DisableVerify, DisableInline, DisableGVNLoadPRE, in lto_codegen_compile() 426 if (!CG->NativeObjectFile) in lto_codegen_compile() 428 *length = CG->NativeObjectFile->getBufferSize(); in lto_codegen_compile() 429 return CG->NativeObjectFile->getBufferStart(); in lto_codegen_compile() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | CallGraphSCCPass.h | 49 virtual bool doInitialization(CallGraph &CG) { in doInitialization() argument 65 virtual bool doFinalization(CallGraph &CG) { in doFinalization() argument 90 const CallGraph &CG; // The call graph for this SCC. variable 95 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC() 112 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | CGSCCPassManager.h | 160 LazyCallGraph &CG, CGSCCUpdateResult &) { 161 (void)AM.template getResult<AnalysisT>(C, CG); 348 LazyCallGraph &CG = AM.getResult<LazyCallGraphAnalysis>(M); 368 CG.buildRefSCCs(); 369 for (auto RCI = CG.postorder_ref_scc_begin(), 370 RCE = CG.postorder_ref_scc_end(); 431 PreservedAnalyses PassPA = Pass.run(*C, CGAM, CG, UR); 593 LazyCallGraph &CG, CGSCCUpdateResult &UR) { 596 AM.getResult<FunctionAnalysisManagerCGSCCProxy>(C, CG).getManager(); 615 if (CG.lookupSCC(*N) != CurrentC) [all …]
|
D | CallGraphSCCPass.h | 49 virtual bool doInitialization(CallGraph &CG) { in doInitialization() argument 64 virtual bool doFinalization(CallGraph &CG) { in doFinalization() argument 89 const CallGraph &CG; // The call graph for this SCC. variable 94 CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {} in CallGraphSCC() 112 const CallGraph &getCallGraph() { return CG; } in getCallGraph()
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | CallGraph.h | 350 static nodes_iterator nodes_begin(CallGraph *CG) { 351 return map_iterator(CG->begin(), DerefFun(CGdereference)); 353 static nodes_iterator nodes_end (CallGraph *CG) { 354 return map_iterator(CG->end(), DerefFun(CGdereference)); 369 static nodes_iterator nodes_begin(const CallGraph *CG) { return CG->begin(); } 370 static nodes_iterator nodes_end (const CallGraph *CG) { return CG->end(); }
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/IPO/ |
D | Inliner.h | 40 bool doInitialization(CallGraph &CG) override; 50 bool doFinalization(CallGraph &CG) override; 63 bool removeDeadFunctions(CallGraph &CG, bool AlwaysInlineOnly = false); 105 LazyCallGraph &CG, CGSCCUpdateResult &UR);
|