Skip to content

Commit b339c7a

Browse files
committed
Do not use attribute splitting
1 parent 50e76d4 commit b339c7a

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,9 +1297,7 @@ def AMDGPU_MakeDmaDescriptorOp :
12971297
Variadic<Index>: $shared_dynamic_sizes,
12981298
DenseI64ArrayAttr: $shared_static_sizes,
12991299
Optional<Index>: $pad,
1300-
OptionalAttr<IndexAttr>: $pad_const,
13011300
Optional<Index>: $every,
1302-
OptionalAttr<IndexAttr>: $every_const,
13031301
Optional<AnyMemRef>: $atomic_barrier_address,
13041302
Variadic<Index>: $atomic_barrier_indices,
13051303
Optional<Index>: $global_increment,
@@ -1345,7 +1343,7 @@ def AMDGPU_MakeDmaDescriptorOp :
13451343
`globalSize` custom<DynamicIndexList>($global_dynamic_sizes, $global_static_sizes)
13461344
`globalStride` custom<DynamicIndexList>($global_dynamic_strides, $global_static_strides)
13471345
`sharedSize` custom<DynamicIndexList>($shared_dynamic_sizes, $shared_static_sizes)
1348-
( `padShared` `(` custom<DynamicIndex>($pad, $pad_const)^ `every` custom<DynamicIndex>($every, $every_const) `)` )?
1346+
( `padShared` `(` $pad^ `every` $every `)` )?
13491347
( `atomicBarrier` `(` $atomic_barrier_address^ `[` $atomic_barrier_indices `]`
13501348
`:` type($atomic_barrier_address) `)`)?
13511349
( `iterate` $global_increment^ `,` $lds_increment `,` $iteration_count )?

mlir/test/Dialect/AMDGPU/ops.mlir

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -710,18 +710,6 @@ func.func @make_dma_descriptor(%base: !amdgpu.tdm_base<i32>, %barrier: memref<8x
710710
// CHECK-SAME: sharedSize [0] : !amdgpu.tdm_base<i32> -> !amdgpu.tdm_descriptor
711711
sharedSize [0] : !amdgpu.tdm_base<i32> -> !amdgpu.tdm_descriptor
712712

713-
// CHECK: amdgpu.make_dma_descriptor %[[BASE]]
714-
amdgpu.make_dma_descriptor %base
715-
// CHECK-SAME: globalSize [0]
716-
globalSize [0]
717-
// CHECK-SAME: globalStride [1]
718-
globalStride [1]
719-
// CHECK-SAME: sharedSize [0]
720-
sharedSize [0]
721-
// CHECK-SAME: padShared(1 every 1)
722-
padShared(1 every 1)
723-
: !amdgpu.tdm_base<i32> -> !amdgpu.tdm_descriptor
724-
725713
// CHECK: amdgpu.make_dma_descriptor %[[BASE]]
726714
amdgpu.make_dma_descriptor %base
727715
// CHECK-SAME: globalSize [0]

0 commit comments

Comments
 (0)