Home
last modified time | relevance | path

Searched refs:FPM (Results 1 – 20 of 20) sorted by relevance

/external/llvm/unittests/IR/
DPassManagerTest.cpp252 FunctionPassManager FPM; in TEST_F() local
258 FPM = std::move(NestedFPM); in TEST_F()
260 NestedMPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
273 FunctionPassManager FPM; in TEST_F() local
274 FPM.addPass(TestFunctionPass(FunctionPassRunCount2, AnalyzedInstrCount2, in TEST_F()
276 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
286 FunctionPassManager FPM; in TEST_F() local
287 FPM.addPass(TestFunctionPass(FunctionPassRunCount3, AnalyzedInstrCount3, in TEST_F()
289 FPM.addPass(TestInvalidationFunctionPass("f")); in TEST_F()
290 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
[all …]
/external/llvm/lib/Passes/
DPassBuilder.cpp188 bool PassBuilder::parseFunctionPassName(FunctionPassManager &FPM, in parseFunctionPassName() argument
192 FPM.addPass(CREATE_PASS); \ in parseFunctionPassName()
197 FPM.addPass(RequireAnalysisPass<decltype(CREATE_PASS)>()); \ in parseFunctionPassName()
201 FPM.addPass(InvalidateAnalysisPass<decltype(CREATE_PASS)>()); \ in parseFunctionPassName()
209 bool PassBuilder::parseFunctionPassPipeline(FunctionPassManager &FPM, in parseFunctionPassPipeline() argument
228 FPM.addPass(std::move(NestedFPM)); in parseFunctionPassPipeline()
232 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline()
235 FPM.addPass(VerifierPass()); in parseFunctionPassPipeline()
402 FunctionPassManager FPM(DebugLogging); in parsePassPipeline() local
403 if (!parseFunctionPassPipeline(FPM, PipelineText, VerifyEachPass, in parsePassPipeline()
[all …]
/external/llvm/lib/Transforms/IPO/
DPassManagerBuilder.cpp149 legacy::FunctionPassManager &FPM) { in populateFunctionPassManager() argument
150 addExtensionsToPM(EP_EarlyAsPossible, FPM); in populateFunctionPassManager()
154 FPM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo)); in populateFunctionPassManager()
158 addInitialAliasAnalysisPasses(FPM); in populateFunctionPassManager()
160 FPM.add(createCFGSimplificationPass()); in populateFunctionPassManager()
162 FPM.add(createSROAPass()); in populateFunctionPassManager()
164 FPM.add(createScalarReplAggregatesPass()); in populateFunctionPassManager()
165 FPM.add(createEarlyCSEPass()); in populateFunctionPassManager()
166 FPM.add(createLowerExpectIntrinsicPass()); in populateFunctionPassManager()
602 legacy::FunctionPassManager *FPM = unwrap<legacy::FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() local
[all …]
/external/llvm/examples/Kaleidoscope/Chapter4/
Dtoy.cpp559 auto *FPM = new legacy::FunctionPassManager(OpenModule); in getPointerToFunction() local
565 FPM->add(createBasicAliasAnalysisPass()); in getPointerToFunction()
567 FPM->add(createPromoteMemoryToRegisterPass()); in getPointerToFunction()
569 FPM->add(createInstructionCombiningPass()); in getPointerToFunction()
571 FPM->add(createReassociatePass()); in getPointerToFunction()
573 FPM->add(createGVNPass()); in getPointerToFunction()
575 FPM->add(createCFGSimplificationPass()); in getPointerToFunction()
576 FPM->doInitialization(); in getPointerToFunction()
583 FPM->run(*it); in getPointerToFunction()
587 delete FPM; in getPointerToFunction()
/external/llvm/include/llvm/Passes/
DPassBuilder.h93 bool parseFunctionPassName(FunctionPassManager &FPM, StringRef Name);
94 bool parseFunctionPassPipeline(FunctionPassManager &FPM,
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy.cpp819 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
823 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
825 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
827 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
829 FPM->add(createInstructionCombiningPass()); in compileModule()
831 FPM->add(createReassociatePass()); in compileModule()
833 FPM->add(createGVNPass()); in compileModule()
835 FPM->add(createCFGSimplificationPass()); in compileModule()
836 FPM->doInitialization(); in compileModule()
843 FPM->run(*it); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp789 FunctionPassManager *FPM = new FunctionPassManager(OpenModule); in getPointerToFunction() local
793 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in getPointerToFunction()
795 FPM->add(createBasicAliasAnalysisPass()); in getPointerToFunction()
797 FPM->add(createPromoteMemoryToRegisterPass()); in getPointerToFunction()
799 FPM->add(createInstructionCombiningPass()); in getPointerToFunction()
801 FPM->add(createReassociatePass()); in getPointerToFunction()
803 FPM->add(createGVNPass()); in getPointerToFunction()
805 FPM->add(createCFGSimplificationPass()); in getPointerToFunction()
806 FPM->doInitialization(); in getPointerToFunction()
813 FPM->run(*it); in getPointerToFunction()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp956 FunctionPassManager *FPM = 0; in compileModule() local
959 FPM = new FunctionPassManager(M); in compileModule()
963 FPM->add(new DataLayout(*EE->getDataLayout())); in compileModule()
965 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
967 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
969 FPM->add(createInstructionCombiningPass()); in compileModule()
971 FPM->add(createReassociatePass()); in compileModule()
973 FPM->add(createGVNPass()); in compileModule()
975 FPM->add(createCFGSimplificationPass()); in compileModule()
977 FPM->doInitialization(); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy.cpp916 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
920 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
922 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
924 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
926 FPM->add(createInstructionCombiningPass()); in compileModule()
928 FPM->add(createReassociatePass()); in compileModule()
930 FPM->add(createGVNPass()); in compileModule()
932 FPM->add(createCFGSimplificationPass()); in compileModule()
933 FPM->doInitialization(); in compileModule()
940 FPM->run(*it); in compileModule()
[all …]
/external/llvm/include/llvm/IR/
DLegacyPassManager.h92 FunctionPassManagerImpl *FPM;
/external/llvm/lib/IR/
DLegacyPassManager.cpp1382 FPM = new FunctionPassManagerImpl(); in FunctionPassManager()
1384 FPM->setTopLevelManager(FPM); in FunctionPassManager()
1386 AnalysisResolver *AR = new AnalysisResolver(*FPM); in FunctionPassManager()
1387 FPM->setResolver(AR); in FunctionPassManager()
1391 delete FPM; in ~FunctionPassManager()
1395 FPM->add(P); in add()
1405 return FPM->run(F); in run()
1412 return FPM->doInitialization(*M); in doInitialization()
1418 return FPM->doFinalization(*M); in doFinalization()
DCore.cpp2864 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMInitializeFunctionPassManager() argument
2865 return unwrap<legacy::FunctionPassManager>(FPM)->doInitialization(); in LLVMInitializeFunctionPassManager()
2868 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F) { in LLVMRunFunctionPassManager() argument
2869 return unwrap<legacy::FunctionPassManager>(FPM)->run(*unwrap<Function>(F)); in LLVMRunFunctionPassManager()
2872 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMFinalizeFunctionPassManager() argument
2873 return unwrap<legacy::FunctionPassManager>(FPM)->doFinalization(); in LLVMFinalizeFunctionPassManager()
/external/llvm/include/llvm/Transforms/IPO/
DPassManagerBuilder.h149 void populateFunctionPassManager(legacy::FunctionPassManager &FPM);
/external/llvm/tools/opt/
Dopt.cpp207 legacy::FunctionPassManager &FPM, in AddOptimizationPasses() argument
209 FPM.add(createVerifierPass()); // Verify that input is correct in AddOptimizationPasses()
237 Builder.populateFunctionPassManager(FPM); in AddOptimizationPasses()
/external/clang/lib/CodeGen/
DBackendUtil.cpp366 legacy::FunctionPassManager *FPM = getPerFunctionPasses(); in CreatePasses() local
368 FPM->add(createVerifierPass()); in CreatePasses()
369 PMBuilder.populateFunctionPassManager(*FPM); in CreatePasses()
/external/llvm/lib/Transforms/Scalar/
DPlaceSafepoints.cpp558 legacy::FunctionPassManager FPM(F.getParent()); in runOnFunction() local
562 FPM.add(PBS); in runOnFunction()
565 FPM.run(F); in runOnFunction()
/external/llvm/lib/Analysis/
DLint.cpp904 legacy::FunctionPassManager FPM(F.getParent()); in lintFunction() local
906 FPM.add(V); in lintFunction()
907 FPM.run(F); in lintFunction()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c2352 CAMLprim value llvm_passmanager_initialize(LLVMPassManagerRef FPM) { in llvm_passmanager_initialize() argument
2353 return Val_bool(LLVMInitializeFunctionPassManager(FPM)); in llvm_passmanager_initialize()
2358 LLVMPassManagerRef FPM) { in llvm_passmanager_run_function() argument
2359 return Val_bool(LLVMRunFunctionPassManager(FPM, F)); in llvm_passmanager_run_function()
2363 CAMLprim value llvm_passmanager_finalize(LLVMPassManagerRef FPM) { in llvm_passmanager_finalize() argument
2364 return Val_bool(LLVMFinalizeFunctionPassManager(FPM)); in llvm_passmanager_finalize()
/external/llvm/include/llvm-c/
DCore.h2945 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM);
2951 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F);
2956 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM);
/external/llvm/lib/Target/X86/
DX86ScheduleBtVer2.td39 def JFPU1 : ProcResource<1>; // Vector/FPU Pipe1: VALU1/STC/FPM