@@ -261,7 +261,7 @@ transform.sequence failures(propagate) {
261
261
262
262
// The actual tiling transformation takes tile sizes as attributes. It
263
263
// produces a handle to the loop generated during tiling.
264
- %loop , %tiled_max =
264
+ %tiled_max , %loop =
265
265
transform.structured.tile_using_forall %max tile_sizes [8, 32]
266
266
: (! transform.any_op) -> (! transform.any_op, ! transform.any_op)
267
267
@@ -271,12 +271,12 @@ transform.sequence failures(propagate) {
271
271
// important. We could also use " transform.merge_handles" to obtain a single
272
272
// handle to all operations and give it to ` fuse_into_containing_op` that
273
273
// would take care of the ordering in this case.
274
- %loop_0 , %tiled_add =
274
+ %add_fused , %loop_0 =
275
275
transform.structured.fuse_into_containing_op %add into %loop
276
276
: (! transform.any_op, ! transform.any_op)
277
277
-> (! transform.any_op, ! transform.any_op)
278
- %loop_1 , %tiled_matmul =
279
- transform.structured.fuse_into_containing_op %arg1 into %loop
278
+ %matmul_fused , %loop_1 =
279
+ transform.structured.fuse_into_containing_op %arg1 into %loop_0
280
280
: (! transform.op< " linalg.matmul" > , ! transform.any_op)
281
281
-> (! transform.any_op, ! transform.any_op)
282
282
@@ -304,7 +304,7 @@ transform.sequence failures(propagate) {
304
304
305
305
// The actual tiling transformation takes tile sizes as attributes. It
306
306
// produces a handle to the loop generated during tiling.
307
- %loop , %tiled = transform.structured.tile_using_forall %max tile_sizes [8, 32]
307
+ %tiled , %loop = transform.structured.tile_using_forall %max tile_sizes [8, 32]
308
308
: (! transform.any_op) -> (! transform.any_op, ! transform.any_op)
309
309
310
310
// We can now fuse the other operations into the loop. Here, we fuse
@@ -318,7 +318,7 @@ transform.sequence failures(propagate) {
318
318
: (! transform.any_op, ! transform.any_op)
319
319
-> (! transform.any_op, ! transform.any_op)
320
320
%matmul_fused, %loop_1 =
321
- transform.structured.fuse_into_containing_op %arg1 into %loop
321
+ transform.structured.fuse_into_containing_op %arg1 into %loop_0
322
322
: (! transform.op< " linalg.matmul" > , ! transform.any_op)
323
323
-> (! transform.any_op, ! transform.any_op)
324
324
@@ -327,7 +327,7 @@ transform.sequence failures(propagate) {
327
327
// "max" operation. This illustrates the precise targeting with the transform
328
328
// dialect. Otherwise, it is difficult to differentiate "add" and "max", both
329
329
// of which having the same kind.
330
- %loop_2 , %tiled_2 =
330
+ %tiled_2 , %loop_2 =
331
331
transform.structured.tile_using_forall %add_fused tile_sizes [4, 4]
332
332
: (!transform.any_op) -> (!transform.any_op, !transform.any_op)
333
333
%matmul_fused_2, %loop_3 =
@@ -338,7 +338,7 @@ transform.sequence failures(propagate) {
338
338
// Since outlining is currently only implemented for region-holding operations
339
339
// such as loops, use tiling to size 1 to materialize the outer loop that is
340
340
// going to be outlined.
341
- %outline_target , %_ =
341
+ %_ , %outline_target =
342
342
transform.structured.tile_using_forall %tiled_2 tile_sizes [1]
343
343
: (!transform.any_op) -> (!transform.any_op, !transform.any_op)
344
344
transform.structured.fuse_into_containing_op %matmul_fused_2
0 commit comments