Home
last modified time | relevance | path

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

/llvm-project/mlir/lib/Rewrite/
H A DFrozenRewritePatternSet.cpp24 convertPDLToPDLInterp(ModuleOp pdlModule, in convertPDLToPDLInterp() argument
27 if (pdlModule.getOps<pdl::PatternOp>().empty()) in convertPDLToPDLInterp()
37 pdlModule.getBody()->walk(simplifyFn); in convertPDLToPDLInterp()
40 PassManager pdlPipeline(pdlModule->getName()); in convertPDLToPDLInterp()
47 if (failed(pdlPipeline.run(pdlModule))) in convertPDLToPDLInterp()
51 pdlModule.getBody()->walk(simplifyFn); in convertPDLToPDLInterp()
131 ModuleOp pdlModule = pdlPatterns.getModule(); in FrozenRewritePatternSet() local
132 if (!pdlModule) in FrozenRewritePatternSet()
136 if (failed(convertPDLToPDLInterp(pdlModule, configMap))) in FrozenRewritePatternSet()
142 pdlModule, pdlPatterns.takeConfigs(), configMap, in FrozenRewritePatternSet()
/llvm-project/mlir/lib/IR/PDL/
H A DPDLPatternMatch.cpp77 if (!other.pdlModule) in mergeIn()
91 if (!pdlModule) { in mergeIn()
92 pdlModule = std::move(other.pdlModule); in mergeIn()
97 Block *block = pdlModule->getBody(); in mergeIn()
99 other.pdlModule->getBody()->getOperations()); in mergeIn()
/llvm-project/mlir/tools/mlir-pdll/
H A Dmlir-pdll.cpp76 OwningOpRef<ModuleOp> pdlModule = in processBuffer() local
78 if (!pdlModule) in processBuffer()
82 pdlModule->print(os, OpPrintingFlags().enableDebugInfo()); in processBuffer()
85 codegenPDLLToCPP(**module, *pdlModule, os); in processBuffer()
/llvm-project/mlir/include/mlir/IR/
H A DPDLPatternMatch.h.inc821 : pdlModule(std::move(module)) {}
827 attachConfigToPatterns(*pdlModule, *configSet);
835 ModuleOp getModule() { return pdlModule.get(); }
931 pdlModule = nullptr;
942 OwningOpRef<ModuleOp> pdlModule;
944 /// The set of configuration sets referenced by patterns within `pdlModule`.
/llvm-project/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp1321 OwningOpRef<ModuleOp> pdlModule = in getPDLLViewOutput() local
1323 if (!pdlModule) in getPDLLViewOutput()
1326 pdlModule->print(os, OpPrintingFlags().enableDebugInfo()); in getPDLLViewOutput()
1333 codegenPDLLToCPP(**astModule, *pdlModule, os); in getPDLLViewOutput()
/llvm-project/mlir/include/mlir/Dialect/PDL/IR/
H A DPDLOps.td88 void registerNativeRewrite(PDLPatternModule &pdlModule) {
89 pdlModule.registerRewriteFunction("myNativeFunc", myNativeFunc);