Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Rewrite/
H A DFrozenRewritePatternSet.cpp19 static LogicalResult convertPDLToPDLInterp(ModuleOp pdlModule) { in convertPDLToPDLInterp() argument
21 if (llvm::empty(pdlModule.getOps<pdl::PatternOp>())) in convertPDLToPDLInterp()
31 pdlModule.getBody()->walk(simplifyFn); in convertPDLToPDLInterp()
34 PassManager pdlPipeline(pdlModule.getContext()); in convertPDLToPDLInterp()
41 if (failed(pdlPipeline.run(pdlModule))) in convertPDLToPDLInterp()
45 pdlModule.getBody()->walk(simplifyFn); in convertPDLToPDLInterp()
123 ModuleOp pdlModule = pdlPatterns.getModule(); in FrozenRewritePatternSet() local
124 if (!pdlModule) in FrozenRewritePatternSet()
126 if (failed(convertPDLToPDLInterp(pdlModule))) in FrozenRewritePatternSet()
132 pdlModule, pdlPatterns.takeConstraintFunctions(), in FrozenRewritePatternSet()
/llvm-project-15.0.7/mlir/lib/IR/
H A DPatternMatch.cpp158 if (!other.pdlModule) in mergeIn()
168 if (!pdlModule) { in mergeIn()
169 pdlModule = std::move(other.pdlModule); in mergeIn()
174 Block *block = pdlModule->getBody(); in mergeIn()
176 other.pdlModule->getBody()->getOperations()); in mergeIn()
/llvm-project-15.0.7/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-15.0.7/mlir/include/mlir/IR/
H A DPatternMatch.h1266 PDLPatternModule(OwningOpRef<ModuleOp> pdlModule)
1267 : pdlModule(std::move(pdlModule)) {}
1273 ModuleOp getModule() { return pdlModule.get(); }
1355 pdlModule = nullptr;
1362 OwningOpRef<ModuleOp> pdlModule;
/llvm-project-15.0.7/mlir/lib/Tools/mlir-pdll-lsp-server/
H A DPDLLServer.cpp1364 OwningOpRef<ModuleOp> pdlModule = in getPDLLViewOutput() local
1366 if (!pdlModule) in getPDLLViewOutput()
1369 pdlModule->print(os, OpPrintingFlags().enableDebugInfo()); in getPDLLViewOutput()
1376 codegenPDLLToCPP(**astModule, *pdlModule, os); in getPDLLViewOutput()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/PDL/IR/
H A DPDLOps.td81 void registerNativeRewrite(PDLPatternModule &pdlModule) {
82 pdlModule.registerRewriteFunction("myNativeFunc", myNativeFunc);