Home
last modified time | relevance | path

Searched refs:passManager (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/mlir/lib/CAPI/IR/
DPass.cpp27 void mlirPassManagerDestroy(MlirPassManager passManager) { in mlirPassManagerDestroy() argument
28 delete unwrap(passManager); in mlirPassManagerDestroy()
32 mlirPassManagerGetAsOpPassManager(MlirPassManager passManager) { in mlirPassManagerGetAsOpPassManager() argument
33 return wrap(static_cast<OpPassManager *>(unwrap(passManager))); in mlirPassManagerGetAsOpPassManager()
36 MlirLogicalResult mlirPassManagerRun(MlirPassManager passManager, in mlirPassManagerRun() argument
38 return wrap(unwrap(passManager)->run(unwrap(module))); in mlirPassManagerRun()
41 MlirOpPassManager mlirPassManagerGetNestedUnder(MlirPassManager passManager, in mlirPassManagerGetNestedUnder() argument
43 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirPassManagerGetNestedUnder()
46 MlirOpPassManager mlirOpPassManagerGetNestedUnder(MlirOpPassManager passManager, in mlirOpPassManagerGetNestedUnder() argument
48 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirOpPassManagerGetNestedUnder()
[all …]
/external/llvm-project/mlir/lib/Bindings/Python/
DPass.cpp24 PyPassManager(MlirPassManager passManager) : passManager(passManager) {} in PyPassManager() argument
25 PyPassManager(PyPassManager &&other) : passManager(other.passManager) { in PyPassManager()
26 other.passManager.ptr = nullptr; in PyPassManager()
29 if (!mlirPassManagerIsNull(passManager)) in ~PyPassManager()
30 mlirPassManagerDestroy(passManager); in ~PyPassManager()
32 MlirPassManager get() { return passManager; } in get()
34 void release() { passManager.ptr = nullptr; } in release()
48 MlirPassManager passManager; member in __anon13d87cc50111::PyPassManager
60 MlirPassManager passManager = in populatePassManagerSubmodule() local
62 return new PyPassManager(passManager); in populatePassManagerSubmodule()
[all …]
/external/llvm-project/mlir/include/mlir-c/
DPass.h54 MLIR_CAPI_EXPORTED void mlirPassManagerDestroy(MlirPassManager passManager);
57 static inline bool mlirPassManagerIsNull(MlirPassManager passManager) { in mlirPassManagerIsNull() argument
58 return !passManager.ptr; in mlirPassManagerIsNull()
63 mlirPassManagerGetAsOpPassManager(MlirPassManager passManager);
67 mlirPassManagerRun(MlirPassManager passManager, MlirModule module);
75 MlirPassManager passManager, MlirStringRef operationName);
81 MlirOpPassManager passManager, MlirStringRef operationName);
86 MLIR_CAPI_EXPORTED void mlirPassManagerAddOwnedPass(MlirPassManager passManager,
94 mlirOpPassManagerAddOwnedPass(MlirOpPassManager passManager, MlirPass pass);
99 MLIR_CAPI_EXPORTED void mlirPrintPassPipeline(MlirOpPassManager passManager,
[all …]
/external/llvm-project/mlir/tools/mlir-vulkan-runner/
Dmlir-vulkan-runner.cpp33 PassManager passManager(module.getContext()); in runMLIRPasses() local
34 applyPassManagerCLOptions(passManager); in runMLIRPasses()
36 passManager.addPass(createGpuKernelOutliningPass()); in runMLIRPasses()
37 passManager.addPass(createLegalizeStdOpsForSPIRVLoweringPass()); in runMLIRPasses()
38 passManager.addPass(createConvertGPUToSPIRVPass()); in runMLIRPasses()
39 OpPassManager &modulePM = passManager.nest<spirv::ModuleOp>(); in runMLIRPasses()
42 passManager.addPass(createConvertGpuLaunchFuncToVulkanLaunchFuncPass()); in runMLIRPasses()
47 passManager.addPass(createLowerToLLVMPass(llvmOptions)); in runMLIRPasses()
48 passManager.addPass(createConvertVulkanLaunchFuncToVulkanCallsPass()); in runMLIRPasses()
49 return passManager.run(module); in runMLIRPasses()
/external/llvm-project/mlir/tools/mlir-spirv-cpu-runner/
Dmlir-spirv-cpu-runner.cpp69 PassManager passManager(module.getContext()); in runMLIRPasses() local
70 applyPassManagerCLOptions(passManager); in runMLIRPasses()
71 passManager.addPass(createGpuKernelOutliningPass()); in runMLIRPasses()
72 passManager.addPass(createConvertGPUToSPIRVPass()); in runMLIRPasses()
74 OpPassManager &nestedPM = passManager.nest<spirv::ModuleOp>(); in runMLIRPasses()
77 passManager.addPass(createLowerHostCodeToLLVMPass()); in runMLIRPasses()
78 passManager.addPass(createConvertSPIRVToLLVMPass()); in runMLIRPasses()
79 return passManager.run(module); in runMLIRPasses()
/external/swiftshader/src/Reactor/
DLLVMJIT.cpp832 llvm::legacy::PassManager passManager; in optimize() local
837 passManager.add(llvm::createMemorySanitizerLegacyPassPass()); in optimize()
846 …case rr::Optimization::Pass::CFGSimplification: passManager.add(llvm::createCFGSimplificationPass(… in optimize()
847 case rr::Optimization::Pass::LICM: passManager.add(llvm::createLICMPass()); break; in optimize()
848 …case rr::Optimization::Pass::AggressiveDCE: passManager.add(llvm::createAggressiveDCEPass()); brea… in optimize()
849 case rr::Optimization::Pass::GVN: passManager.add(llvm::createGVNPass()); break; in optimize()
850 …case rr::Optimization::Pass::InstructionCombining: passManager.add(llvm::createInstructionCombinin… in optimize()
851 case rr::Optimization::Pass::Reassociate: passManager.add(llvm::createReassociatePass()); break; in optimize()
852 …case rr::Optimization::Pass::DeadStoreElimination: passManager.add(llvm::createDeadStoreEliminatio… in optimize()
853 case rr::Optimization::Pass::SCCP: passManager.add(llvm::createSCCPPass()); break; in optimize()
[all …]