Files
clang-p2996/mlir/test/Dialect/Transform/include/test-interpreter-external-concurrent-source.mlir
Oleksandr "Alex" Zinenko 5468f88413 [mlir] update remaining transform tests to main pass (#81279)
Use the main transform interpreter pass instead of the test pass. The
only tests that are not updated are specific to the operation of the
test pass.
2024-02-28 11:06:53 +01:00

22 lines
807 B
MLIR

// RUN: mlir-opt %s
// No need to check anything else than parsing here, this is being used by another test as data.
module attributes {transform.with_named_sequence} {
transform.named_sequence @__transform_main(%root: !transform.any_op) {
transform.with_pdl_patterns %root : !transform.any_op {
^bb0(%arg0: !transform.any_op):
pdl.pattern @func_return : benefit(1) {
%0 = pdl.operation "func.return"
pdl.rewrite %0 with "transform.dialect"
}
sequence %arg0 : !transform.any_op failures(propagate) {
^bb1(%arg1: !transform.any_op):
%0 = pdl_match @func_return in %arg1 : (!transform.any_op) -> !transform.op<"func.return">
transform.debug.emit_remark_at %0, "matched" : !transform.op<"func.return">
}
}
transform.yield
}
}