Home
last modified time | relevance | path

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

/external/llvm/unittests/IR/
DPassManagerTest.cpp247 FunctionPassManager FPM; in TEST_F() local
253 FPM = std::move(NestedFPM); in TEST_F()
255 NestedMPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
268 FunctionPassManager FPM; in TEST_F() local
269 FPM.addPass(TestFunctionPass(FunctionPassRunCount2, AnalyzedInstrCount2, in TEST_F()
271 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
281 FunctionPassManager FPM; in TEST_F() local
282 FPM.addPass(TestFunctionPass(FunctionPassRunCount3, AnalyzedInstrCount3, in TEST_F()
284 FPM.addPass(TestInvalidationFunctionPass("f")); in TEST_F()
285 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in TEST_F()
[all …]
/external/llvm/tools/opt/
DPasses.cpp110 static bool parseFunctionPassName(FunctionPassManager &FPM, StringRef Name) { in parseFunctionPassName() argument
112 FPM.addPass(NoOpFunctionPass()); in parseFunctionPassName()
118 FPM.addPass(CREATE_PASS); \ in parseFunctionPassName()
126 static bool parseFunctionPassPipeline(FunctionPassManager &FPM, in parseFunctionPassPipeline() argument
143 FPM.addPass(std::move(NestedFPM)); in parseFunctionPassPipeline()
147 if (!parseFunctionPassName(FPM, PipelineText.substr(0, End))) in parseFunctionPassPipeline()
150 FPM.addPass(VerifierPass()); in parseFunctionPassPipeline()
294 FunctionPassManager FPM; in parsePassPipeline() local
295 if (!parseFunctionPassPipeline(FPM, PipelineText, VerifyEachPass) || in parsePassPipeline()
298 MPM.addPass(createModuleToFunctionPassAdaptor(std::move(FPM))); in parsePassPipeline()
[all …]
Dopt.cpp206 static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM, in AddOptimizationPasses() argument
208 FPM.add(createVerifierPass()); // Verify that input is correct in AddOptimizationPasses()
237 Builder.populateFunctionPassManager(FPM); in AddOptimizationPasses()
/external/llvm/lib/Transforms/IPO/
DPassManagerBuilder.cpp113 void PassManagerBuilder::populateFunctionPassManager(FunctionPassManager &FPM) { in populateFunctionPassManager() argument
114 addExtensionsToPM(EP_EarlyAsPossible, FPM); in populateFunctionPassManager()
117 if (LibraryInfo) FPM.add(new TargetLibraryInfo(*LibraryInfo)); in populateFunctionPassManager()
121 addInitialAliasAnalysisPasses(FPM); in populateFunctionPassManager()
123 FPM.add(createCFGSimplificationPass()); in populateFunctionPassManager()
125 FPM.add(createSROAPass()); in populateFunctionPassManager()
127 FPM.add(createScalarReplAggregatesPass()); in populateFunctionPassManager()
128 FPM.add(createEarlyCSEPass()); in populateFunctionPassManager()
129 FPM.add(createLowerExpectIntrinsicPass()); in populateFunctionPassManager()
442 FunctionPassManager *FPM = unwrap<FunctionPassManager>(PM); in LLVMPassManagerBuilderPopulateFunctionPassManager() local
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/
Dtoy.cpp820 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
824 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
826 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
828 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
830 FPM->add(createInstructionCombiningPass()); in compileModule()
832 FPM->add(createReassociatePass()); in compileModule()
834 FPM->add(createGVNPass()); in compileModule()
836 FPM->add(createCFGSimplificationPass()); in compileModule()
837 FPM->doInitialization(); in compileModule()
844 FPM->run(*it); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/initial/
Dtoy.cpp790 FunctionPassManager *FPM = new FunctionPassManager(OpenModule); in getPointerToFunction() local
794 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in getPointerToFunction()
796 FPM->add(createBasicAliasAnalysisPass()); in getPointerToFunction()
798 FPM->add(createPromoteMemoryToRegisterPass()); in getPointerToFunction()
800 FPM->add(createInstructionCombiningPass()); in getPointerToFunction()
802 FPM->add(createReassociatePass()); in getPointerToFunction()
804 FPM->add(createGVNPass()); in getPointerToFunction()
806 FPM->add(createCFGSimplificationPass()); in getPointerToFunction()
807 FPM->doInitialization(); in getPointerToFunction()
814 FPM->run(*it); in getPointerToFunction()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp1052 FunctionPassManager *FPM = 0; in compileModule() local
1055 FPM = new FunctionPassManager(M); in compileModule()
1059 FPM->add(new DataLayout(*EE->getDataLayout())); in compileModule()
1061 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
1063 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
1065 FPM->add(createInstructionCombiningPass()); in compileModule()
1067 FPM->add(createReassociatePass()); in compileModule()
1069 FPM->add(createGVNPass()); in compileModule()
1071 FPM->add(createCFGSimplificationPass()); in compileModule()
1073 FPM->doInitialization(); in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
Dtoy.cpp917 FunctionPassManager *FPM = new FunctionPassManager(M); in compileModule() local
921 FPM->add(new DataLayout(*NewEngine->getDataLayout())); in compileModule()
923 FPM->add(createBasicAliasAnalysisPass()); in compileModule()
925 FPM->add(createPromoteMemoryToRegisterPass()); in compileModule()
927 FPM->add(createInstructionCombiningPass()); in compileModule()
929 FPM->add(createReassociatePass()); in compileModule()
931 FPM->add(createGVNPass()); in compileModule()
933 FPM->add(createCFGSimplificationPass()); in compileModule()
934 FPM->doInitialization(); in compileModule()
941 FPM->run(*it); in compileModule()
[all …]
/external/llvm/include/llvm/IR/
DLegacyPassManager.h100 FunctionPassManagerImpl *FPM;
/external/llvm/lib/IR/
DLegacyPassManager.cpp1381 FPM = new FunctionPassManagerImpl(); in FunctionPassManager()
1383 FPM->setTopLevelManager(FPM); in FunctionPassManager()
1385 AnalysisResolver *AR = new AnalysisResolver(*FPM); in FunctionPassManager()
1386 FPM->setResolver(AR); in FunctionPassManager()
1390 delete FPM; in ~FunctionPassManager()
1399 FPM->add(P); in add()
1412 return FPM->run(F); in run()
1419 return FPM->doInitialization(*M); in doInitialization()
1425 return FPM->doFinalization(*M); in doFinalization()
DCore.cpp2688 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMInitializeFunctionPassManager() argument
2689 return unwrap<FunctionPassManager>(FPM)->doInitialization(); in LLVMInitializeFunctionPassManager()
2692 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F) { in LLVMRunFunctionPassManager() argument
2693 return unwrap<FunctionPassManager>(FPM)->run(*unwrap<Function>(F)); in LLVMRunFunctionPassManager()
2696 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM) { in LLVMFinalizeFunctionPassManager() argument
2697 return unwrap<FunctionPassManager>(FPM)->doFinalization(); in LLVMFinalizeFunctionPassManager()
/external/llvm/include/llvm/Transforms/IPO/
DPassManagerBuilder.h143 void populateFunctionPassManager(FunctionPassManager &FPM);
/external/clang/lib/CodeGen/
DBackendUtil.cpp319 FunctionPassManager *FPM = getPerFunctionPasses(); in CreatePasses() local
321 FPM->add(createVerifierPass()); in CreatePasses()
322 PMBuilder.populateFunctionPassManager(*FPM); in CreatePasses()
/external/llvm/lib/Analysis/
DLint.cpp706 FunctionPassManager FPM(F.getParent()); in lintFunction() local
708 FPM.add(V); in lintFunction()
709 FPM.run(F); in lintFunction()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c2216 CAMLprim value llvm_passmanager_initialize(LLVMPassManagerRef FPM) { in llvm_passmanager_initialize() argument
2217 return Val_bool(LLVMInitializeFunctionPassManager(FPM)); in llvm_passmanager_initialize()
2222 LLVMPassManagerRef FPM) { in llvm_passmanager_run_function() argument
2223 return Val_bool(LLVMRunFunctionPassManager(FPM, F)); in llvm_passmanager_run_function()
2227 CAMLprim value llvm_passmanager_finalize(LLVMPassManagerRef FPM) { in llvm_passmanager_finalize() argument
2228 return Val_bool(LLVMFinalizeFunctionPassManager(FPM)); in llvm_passmanager_finalize()
/external/llvm/include/llvm-c/
DCore.h2821 LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM);
2827 LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F);
2832 LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM);