[Mlir-commits] [mlir] [mlir][Transform dial] Expose convert-linalg-to-affine-loops transf (PR #211308)

Guillaume Iooss llvmlistbot at llvm.org
Fri Jul 31 07:23:58 PDT 2026


================
@@ -3075,4 +3075,37 @@ def DecomposeWinogradOp : Op<Transform_Dialect,
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// LinAlgToAffine
+//===----------------------------------------------------------------------===//
+
+def LinAlgToAffineOp : Op<Transform_Dialect, "structured.linalg_to_affine",
+    [FunctionalStyleTransformOpTrait,
+     MemoryEffectsOpInterface,
+     TransformOpInterface, TransformEachOpTrait,
+     ReportTrackingListenerFailuresOpTrait]> {
+  let description = [{
+    Convert a linalg operator into affine for loops.
+    The hypothesis are the same than the convert-linalg-to-affine
+    pass: we assume that the linalg operator is already generalized
+    (into linalg.generic operators) and that "memref" are used.
----------------
guillaumeiooss wrote:

Silenceable Errors are now emitted with explicit error messages for these two hypothesis + the comment was updated.

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


More information about the Mlir-commits mailing list