Searched refs:passManager (Results 1 – 6 of 6) sorted by relevance
27 void mlirPassManagerDestroy(MlirPassManager passManager) { in mlirPassManagerDestroy() argument28 delete unwrap(passManager); in mlirPassManagerDestroy()32 mlirPassManagerGetAsOpPassManager(MlirPassManager passManager) { in mlirPassManagerGetAsOpPassManager() argument33 return wrap(static_cast<OpPassManager *>(unwrap(passManager))); in mlirPassManagerGetAsOpPassManager()36 MlirLogicalResult mlirPassManagerRun(MlirPassManager passManager, in mlirPassManagerRun() argument38 return wrap(unwrap(passManager)->run(unwrap(module))); in mlirPassManagerRun()41 MlirOpPassManager mlirPassManagerGetNestedUnder(MlirPassManager passManager, in mlirPassManagerGetNestedUnder() argument43 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirPassManagerGetNestedUnder()46 MlirOpPassManager mlirOpPassManagerGetNestedUnder(MlirOpPassManager passManager, in mlirOpPassManagerGetNestedUnder() argument48 return wrap(&unwrap(passManager)->nest(unwrap(operationName))); in mlirOpPassManagerGetNestedUnder()[all …]
24 PyPassManager(MlirPassManager passManager) : passManager(passManager) {} in PyPassManager() argument25 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::PyPassManager60 MlirPassManager passManager = in populatePassManagerSubmodule() local62 return new PyPassManager(passManager); in populatePassManagerSubmodule()[all …]
54 MLIR_CAPI_EXPORTED void mlirPassManagerDestroy(MlirPassManager passManager);57 static inline bool mlirPassManagerIsNull(MlirPassManager passManager) { in mlirPassManagerIsNull() argument58 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 …]
33 PassManager passManager(module.getContext()); in runMLIRPasses() local34 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()
69 PassManager passManager(module.getContext()); in runMLIRPasses() local70 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()
832 llvm::legacy::PassManager passManager; in optimize() local837 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 …]