[Mlir-commits] [mlir] [MLIR] Add continuous tiling to transform dialect (PR #82792)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Jun 21 07:39:36 PDT 2024


================
@@ -645,11 +648,12 @@ def ForeachOp : TransformDialectOp<"foreach",
     rollback capabilities.
   }];
 
-  let arguments = (ins Variadic<Transform_AnyHandleOrParamType>:$targets);
+  let arguments = (ins Variadic<Transform_AnyHandleOrParamType>:$targets,
+                       UnitAttr:$zip_shortest);
   let results = (outs Variadic<Transform_AnyHandleOrParamType>:$results);
   let regions = (region SizedRegion<1>:$body);
   let assemblyFormat =
-    "$targets `:` type($targets) (`->` type($results)^)? $body attr-dict";
+    "$targets attr-dict `:` type($targets) (`->` type($results)^)? $body";
----------------
ftynse wrote:

How about turning the attribute into a keyword rather than putting the entire dictionary here, which looks rather awkward?

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


More information about the Mlir-commits mailing list