@@ -373,7 +373,7 @@ func.func @make_dma_base_invalid_addressspace(%idx: index, %smem : memref<8xi32,
373373
374374func.func @make_dma_base_invalid_barrier (%base: !amdgpu.tdm_base <i32 >, %barrier: memref <8 xi32 >, %idx: index ) {
375375 // expected-error@+1 {{'amdgpu.make_dma_descriptor' op atomic barrier address must be in LDS.}}
376- amdgpu.make_dma_descriptor %base globalSize [64 , 64 ] globalStride [64 , 1 ] sharedSize [64 , 64 ] atomicBarrier (%barrier [%idx ] : memref <8 xi32 >) : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor < 2 >
376+ amdgpu.make_dma_descriptor %base globalSize [64 , 64 ] globalStride [64 , 1 ] sharedSize [64 , 64 ] atomicBarrier (%barrier [%idx ] : memref <8 xi32 >) : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor
377377}
378378
379379// -----
@@ -382,7 +382,7 @@ func.func @make_dma_base_invalid_barrier(%base: !amdgpu.tdm_base<i32>, %barrier:
382382// CHECK-SAME: (%[[BASE:.+]]: !amdgpu.tdm_base<i32>)
383383func.func @make_dma_descriptor_invalid_empty_strides (%base: !amdgpu.tdm_base <i32 >) {
384384 // expected-error@+1 {{'amdgpu.make_dma_descriptor' op strides must not be empty.}}
385- amdgpu.make_dma_descriptor %base globalSize [0 , 1 ] globalStride [] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor < 2 >
385+ amdgpu.make_dma_descriptor %base globalSize [0 , 1 ] globalStride [] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor
386386 func.return
387387}
388388
@@ -392,7 +392,7 @@ func.func @make_dma_descriptor_invalid_empty_strides(%base: !amdgpu.tdm_base<i32
392392// CHECK-SAME: (%[[BASE:.+]]: !amdgpu.tdm_base<i32>)
393393func.func @make_dma_descriptor_invalid_innermost_stride (%base: !amdgpu.tdm_base <i32 >) {
394394 // expected-error@+1 {{'amdgpu.make_dma_descriptor' op strides for the innermost dimension must be 1.}}
395- amdgpu.make_dma_descriptor %base globalSize [2 , 2 ] globalStride [1 , 2 ] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor < 2 >
395+ amdgpu.make_dma_descriptor %base globalSize [2 , 2 ] globalStride [1 , 2 ] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor
396396 func.return
397397}
398398
@@ -402,7 +402,7 @@ func.func @make_dma_descriptor_invalid_innermost_stride(%base: !amdgpu.tdm_base<
402402// CHECK-SAME: (%[[BASE:.+]]: !amdgpu.tdm_base<i32>)
403403func.func @make_dma_descriptor_invalid_size_and_stride_sizes (%base: !amdgpu.tdm_base <i32 >) {
404404 // expected-error@+1 {{'amdgpu.make_dma_descriptor' op strides and sizes must have same rank.}}
405- amdgpu.make_dma_descriptor %base globalSize [1 , 1 , 1 ] globalStride [1 , 1 ] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor < 2 >
405+ amdgpu.make_dma_descriptor %base globalSize [1 , 1 , 1 ] globalStride [1 , 1 ] sharedSize [1 , 0 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor
406406 func.return
407407}
408408
@@ -412,7 +412,7 @@ func.func @make_dma_descriptor_invalid_size_and_stride_sizes(%base: !amdgpu.tdm_
412412// CHECK-SAME: (%[[BASE:.+]]: !amdgpu.tdm_base<i32>)
413413func.func @make_dma_descriptor_invalid_shared_and_global_rank (%base: !amdgpu.tdm_base <i32 >) {
414414 // expected-error@+1 {{'amdgpu.make_dma_descriptor' op tensor must have same rank as tile.}}
415- amdgpu.make_dma_descriptor %base globalSize [4 , 4 ] globalStride [1 , 1 ] sharedSize [1 , 2 , 3 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor < 2 >
415+ amdgpu.make_dma_descriptor %base globalSize [4 , 4 ] globalStride [1 , 1 ] sharedSize [1 , 2 , 3 ] : !amdgpu.tdm_base <i32 > -> !amdgpu.tdm_descriptor
416416 func.return
417417}
418418
0 commit comments