[Mlir-commits] [mlir] [MLIR][Transform] Safely erase transform ops by collecting first (PR #172016)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Dec 19 00:47:03 PST 2025


================
@@ -0,0 +1,15 @@
+// RUN: mlir-opt %s -test-transform-dialect-erase-schedule | FileCheck %s
+
+module attributes {transform.with_named_sequence} {
+    func.func @transform_example(%arg0: !transform.any_op) {
+        %transform_copy = transform.structured.match ops{["linalg.copy"]} in %arg0 : (!transform.any_op) -> !transform.any_op
+        transform.nvgpu.rewrite_copy_as_tma %transform_copy : (!transform.any_op) -> ()
+        transform.yield
----------------
ftynse wrote:

I'm surprised this doesn't trigger an error to start with, we shouldn't have `transform.yield` terminating a `func.func`.

https://github.com/llvm/llvm-project/pull/172016


More information about the Mlir-commits mailing list