[Mlir-commits] [mlir] 2f7511c - [PDL] Mark PatternOp as SingleBlock
River Riddle
llvmlistbot at llvm.org
Tue Jul 27 17:07:58 PDT 2021
Author: River Riddle
Date: 2021-07-27T23:59:14Z
New Revision: 2f7511c82239a11b902dba7ac170668183fdca74
URL: https://github.com/llvm/llvm-project/commit/2f7511c82239a11b902dba7ac170668183fdca74
DIFF: https://github.com/llvm/llvm-project/commit/2f7511c82239a11b902dba7ac170668183fdca74.diff
LOG: [PDL] Mark PatternOp as SingleBlock
This provides access to the SingleBlock accessor methods, e.g. getBody().
Added:
Modified:
mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/PDL/IR/PDLOps.td b/mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
index 832cc461da2a..26786d32c8dd 100644
--- a/mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
+++ b/mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
@@ -400,7 +400,9 @@ def PDL_OperationOp
// pdl::PatternOp
//===----------------------------------------------------------------------===//
-def PDL_PatternOp : PDL_Op<"pattern", [IsolatedFromAbove, Symbol]> {
+def PDL_PatternOp : PDL_Op<"pattern", [
+ IsolatedFromAbove, SingleBlock, Symbol
+ ]> {
let summary = "Define a rewrite pattern";
let description = [{
`pdl.pattern` operations provide a transformable representation for a
More information about the Mlir-commits
mailing list