Skip to content

Commit fb82ac3

Browse files
committed
Rename $every to $pad_every.
1 parent b339c7a commit fb82ac3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPU.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ def AMDGPU_MakeDmaDescriptorOp :
12971297
Variadic<Index>: $shared_dynamic_sizes,
12981298
DenseI64ArrayAttr: $shared_static_sizes,
12991299
Optional<Index>: $pad,
1300-
Optional<Index>: $every,
1300+
Optional<Index>: $pad_every,
13011301
Optional<AnyMemRef>: $atomic_barrier_address,
13021302
Variadic<Index>: $atomic_barrier_indices,
13031303
Optional<Index>: $global_increment,
@@ -1333,7 +1333,7 @@ def AMDGPU_MakeDmaDescriptorOp :
13331333

13341334
// Example of moving a two dimension tensor to LDS where padding is applied after every integer.
13351335
%base = amdgpu.make_dma_base %src[0, 0], %dst[0, 0] : memref<32x32xi32>, memref<64x64xi32, #gpu.address_space<workgroup>> -> !amdgpu.tdm_base<i32>
1336-
%descriptor = amdgpu.make_dma_descriptor %base globalSize [32, 32] globalStride [32, 1] sharedSize [64, 64] padding(1 every 1) : !amdgpu.tdm_base<i32> -> !amdgpu.tdm_descriptor
1336+
%descriptor = amdgpu.make_dma_descriptor %base globalSize [32, 32] globalStride [32, 1] sharedSize [64, 64] padding(%pad pad_every %pad_every) : !amdgpu.tdm_base<i32> -> !amdgpu.tdm_descriptor
13371337
amdgpu.tensor_load_to_lds %descriptor : !amdgpu.tdm_descriptor
13381338
```
13391339
}];
@@ -1343,7 +1343,7 @@ def AMDGPU_MakeDmaDescriptorOp :
13431343
`globalSize` custom<DynamicIndexList>($global_dynamic_sizes, $global_static_sizes)
13441344
`globalStride` custom<DynamicIndexList>($global_dynamic_strides, $global_static_strides)
13451345
`sharedSize` custom<DynamicIndexList>($shared_dynamic_sizes, $shared_static_sizes)
1346-
( `padShared` `(` $pad^ `every` $every `)` )?
1346+
( `padShared` `(` $pad^ `every` $pad_every `)` )?
13471347
( `atomicBarrier` `(` $atomic_barrier_address^ `[` $atomic_barrier_indices `]`
13481348
`:` type($atomic_barrier_address) `)`)?
13491349
( `iterate` $global_increment^ `,` $lds_increment `,` $iteration_count )?

0 commit comments

Comments
 (0)