Files
clang-p2996/mlir/test/Dialect/PDL/canonicalize.mlir
Mogball e99835ffed [mlir][pdl] Make pdl the default dialect when parsing/printing
PDLDialect being a somewhat user-facing dialect and whose ops contain exclusively other PDL ops in their regions can take advantage of `OpAsmOpInterface` to provide nicer IR.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D117828
2022-01-20 20:22:53 +00:00

11 lines
242 B
MLIR

// RUN: mlir-opt -canonicalize %s | FileCheck %s
pdl.pattern @operation_op : benefit(1) {
%root = operation "foo.op"
rewrite %root {
// CHECK: operation "bar.unused"
%unused_rewrite = operation "bar.unused"
erase %root
}
}