[Mlir-commits] [mlir] 0e55112 - [NFC][PDL] Fix documentation typo, redundant test
Uday Bondhugula
llvmlistbot at llvm.org
Tue Jun 22 23:57:26 PDT 2021
Author: Vinayaka Bandishti
Date: 2021-06-23T12:27:12+05:30
New Revision: 0e55112242f644fdd59c382f774bf0f92143969f
URL: https://github.com/llvm/llvm-project/commit/0e55112242f644fdd59c382f774bf0f92143969f
DIFF: https://github.com/llvm/llvm-project/commit/0e55112242f644fdd59c382f774bf0f92143969f.diff
LOG: [NFC][PDL] Fix documentation typo, redundant test
Correct a documentation typo, and delete a duplicate test in
`pdl-to-pdl-interp-rewriter.mlir`.
Reviewed By: pr4tgpt, bondhugula, rriddle
Differential Revision: https://reviews.llvm.org/D104688
Added:
Modified:
mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td
mlir/test/Conversion/PDLToPDLInterp/pdl-to-pdl-interp-rewriter.mlir
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td b/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td
index 1c9de16af358..4c082c351891 100644
--- a/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td
+++ b/mlir/include/mlir/Dialect/PDL/IR/PDLDialect.td
@@ -35,8 +35,8 @@ def PDL_Dialect : Dialect {
a `pdl.rewrite` that either dispatches to an external rewriter or contains
a region for the rewrite specified via `pdl`. The types of values in `pdl`
are handle types to MLIR C++ types, with `!pdl.attribute`, `!pdl.operation`,
- and `!pdl.type` directly mapping to `mlir::Attribute`, `mlir::Operation*`,
- and `mlir::Value` respectively.
+ `!pdl.value`, and `!pdl.type` directly mapping to `mlir::Attribute`,
+ `mlir::Operation*`, `mlir::Value`, and `mlir::Type` respectively.
An example pattern is shown below:
diff --git a/mlir/test/Conversion/PDLToPDLInterp/pdl-to-pdl-interp-rewriter.mlir b/mlir/test/Conversion/PDLToPDLInterp/pdl-to-pdl-interp-rewriter.mlir
index 58d1c3177dad..d2f135864071 100644
--- a/mlir/test/Conversion/PDLToPDLInterp/pdl-to-pdl-interp-rewriter.mlir
+++ b/mlir/test/Conversion/PDLToPDLInterp/pdl-to-pdl-interp-rewriter.mlir
@@ -73,28 +73,6 @@ module @operation_operands {
// -----
-// CHECK-LABEL: module @operation_operands
-module @operation_operands {
- // CHECK: module @rewriters
- // CHECK: func @pdl_generated_rewriter(%[[OPERAND:.*]]: !pdl.value, %[[ROOT:.*]]: !pdl.operation)
- // CHECK: %[[NEWOP:.*]] = pdl_interp.create_operation "foo.op"(%[[OPERAND]] : !pdl.value)
- // CHECK: %[[OPERAND1:.*]] = pdl_interp.get_result 0 of %[[NEWOP]]
- // CHECK: pdl_interp.create_operation "foo.op2"(%[[OPERAND1]] : !pdl.value)
- pdl.pattern : benefit(1) {
- %operand = pdl.operand
- %root = pdl.operation "foo.op"(%operand : !pdl.value)
- pdl.rewrite %root {
- %type = pdl.type : i32
- %newOp = pdl.operation "foo.op"(%operand : !pdl.value) -> (%type : !pdl.type)
- %result = pdl.result 0 of %newOp
- %newOp1 = pdl.operation "foo.op2"(%result : !pdl.value)
- pdl.erase %root
- }
- }
-}
-
-// -----
-
// CHECK-LABEL: module @operation_infer_types_from_replaceop
module @operation_infer_types_from_replaceop {
// CHECK: module @rewriters
More information about the Mlir-commits
mailing list