From cbab8e9f2503dfb6a74675411061db7752b063a9 Mon Sep 17 00:00:00 2001 From: Pranathi Vasireddy Date: Tue, 12 Nov 2024 13:28:06 -0700 Subject: [PATCH] Removing empty padDims --- test/python/aie_ops.py | 12 ++++++------ test/python/code_region.py | 4 ++-- test/python/core_ext_kernel.py | 4 ++-- test/python/objFifo.py | 6 +++--- test/python/objFifo_link.py | 12 ++++++------ 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/test/python/aie_ops.py b/test/python/aie_ops.py index a4211e687d..fe978af361 100644 --- a/test/python/aie_ops.py +++ b/test/python/aie_ops.py @@ -101,7 +101,7 @@ def externalBufferOp(): # CHECK-LABEL: objFifo # CHECK: %[[VAL0:.*]] = aie.tile(6, 6) # CHECK: %[[VAL1:.*]] = aie.tile(2, 2) -# CHECK: aie.objectfifo @of0(%[[VAL0]] dimensionsToStream [], {%[[VAL1]] dimensionsFromStream []}, 2 : i32) {padDimensions = #aie, via_DMA = true} : !aie.objectfifo> +# CHECK: aie.objectfifo @of0(%[[VAL0]] dimensionsToStream [], {%[[VAL1]] dimensionsFromStream []}, 2 : i32) {via_DMA = true} : !aie.objectfifo> @construct_and_print_module def objFifo(): dev = Device(AIEDevice.xcvc1902) @@ -126,8 +126,8 @@ def objFifo(): # CHECK: %[[VAL_0:.*]] = aie.tile(6, 3) # CHECK: %[[VAL_1:.*]] = aie.tile(6, 1) # CHECK: %[[VAL_2:.*]] = aie.tile(7, 3) -# CHECK: aie.objectfifo @[[VAL_3:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @[[VAL_4:.*]](%[[VAL_1]], {%[[VAL_2]]}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @[[VAL_3:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @[[VAL_4:.*]](%[[VAL_1]], {%[[VAL_2]]}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.link [@[[VAL_3]]] -> [@[[VAL_4]]]([] []) @construct_and_print_module def objFifoLink(): @@ -146,7 +146,7 @@ def objFifoLink(): # CHECK-LABEL: objFifoAcquire # CHECK: %[[VAL_0:.*]] = aie.tile(6, 6) # CHECK: %[[VAL_1:.*]] = aie.tile(2, 2) -# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) : !aie.objectfifo> # CHECK: %[[VAL_3:.*]] = aie.objectfifo.acquire @[[VAL_2]](Consume, 1) : !aie.objectfifosubview> @construct_and_print_module def objFifoAcquire(): @@ -166,7 +166,7 @@ def objFifoAcquire(): # CHECK-LABEL: objFifoSubviewAccess # CHECK: %[[VAL_0:.*]] = aie.tile(6, 6) # CHECK: %[[VAL_1:.*]] = aie.tile(2, 2) -# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) : !aie.objectfifo> # CHECK: %[[VAL_3:.*]] = aie.objectfifo.acquire @[[VAL_2]](Consume, 1) : !aie.objectfifosubview> # CHECK: %[[VAL_4:.*]] = aie.objectfifo.subview.access %[[VAL_3]][0] : !aie.objectfifosubview> -> memref<12xf16> @construct_and_print_module @@ -189,7 +189,7 @@ def objFifoSubviewAccess(): # CHECK-LABEL: objFifoRelease # CHECK: %[[VAL_0:.*]] = aie.tile(6, 6) # CHECK: %[[VAL_1:.*]] = aie.tile(2, 2) -# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @[[VAL_2:.*]](%[[VAL_0]], {%[[VAL_1]]}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.release @[[VAL_2]](Produce, 1) @construct_and_print_module def objFifoRelease(): diff --git a/test/python/code_region.py b/test/python/code_region.py index 656cb63df9..1ec75d51e1 100644 --- a/test/python/code_region.py +++ b/test/python/code_region.py @@ -24,8 +24,8 @@ # CHECK: %tile_0_2 = aie.tile(0, 2) # CHECK: %tile_1_2 = aie.tile(1, 2) # CHECK: %tile_3_3 = aie.tile(3, 3) -# CHECK: aie.objectfifo @of0(%tile_0_2, {%tile_1_2}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of1(%tile_1_2, {%tile_3_3}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @of0(%tile_0_2, {%tile_1_2}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of1(%tile_1_2, {%tile_3_3}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.link [@of0] -> [@of1]([] []) # CHECK: %core_3_3 = aie.core(%tile_3_3) { # CHECK: %c0 = arith.constant 0 : index diff --git a/test/python/core_ext_kernel.py b/test/python/core_ext_kernel.py index 5b300ec8c0..406edd7f33 100644 --- a/test/python/core_ext_kernel.py +++ b/test/python/core_ext_kernel.py @@ -27,8 +27,8 @@ # CHECK: %tile_0_2 = aie.tile(0, 2) # CHECK: %tile_1_2 = aie.tile(1, 2) # CHECK: %tile_3_3 = aie.tile(3, 3) -# CHECK: aie.objectfifo @of0(%tile_0_2, {%tile_1_2}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of1(%tile_1_2, {%tile_3_3}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @of0(%tile_0_2, {%tile_1_2}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of1(%tile_1_2, {%tile_3_3}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.link [@of0] -> [@of1]([] []) # CHECK: %core_3_3 = aie.core(%tile_3_3) { # CHECK: %c0 = arith.constant 0 : index diff --git a/test/python/objFifo.py b/test/python/objFifo.py index ab1a1f24e9..fb5ce11b5f 100644 --- a/test/python/objFifo.py +++ b/test/python/objFifo.py @@ -23,9 +23,9 @@ # CHECK: %tile_0_1 = aie.tile(0, 1) # CHECK: %tile_1_2 = aie.tile(1, 2) # CHECK: %tile_1_3 = aie.tile(1, 3) -# CHECK: aie.objectfifo @of0(%tile_0_0, {%tile_1_2}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of1(%tile_0_1, {%tile_1_2}, 2 : i32) {memtile_repeat = 4 : i32, padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of2(%tile_1_2, {%tile_1_3}, 2 : i32) {padDimensions = #aie, via_shared_mem = 1 : i32} : !aie.objectfifo> +# CHECK: aie.objectfifo @of0(%tile_0_0, {%tile_1_2}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of1(%tile_0_1, {%tile_1_2}, 2 : i32) {memtile_repeat = 4 : i32} : !aie.objectfifo> +# CHECK: aie.objectfifo @of2(%tile_1_2, {%tile_1_3}, 2 : i32) {via_shared_mem = 1 : i32} : !aie.objectfifo> # CHECK: %core_1_2 = aie.core(%tile_1_2) { # CHECK: %0 = aie.objectfifo.acquire @of0(Consume, 1) : !aie.objectfifosubview> # CHECK: %1 = aie.objectfifo.subview.access %0[0] : !aie.objectfifosubview> -> memref<256xi32> diff --git a/test/python/objFifo_link.py b/test/python/objFifo_link.py index 2cb3c26a63..25087f84e1 100644 --- a/test/python/objFifo_link.py +++ b/test/python/objFifo_link.py @@ -23,13 +23,13 @@ # CHECK: %tile_1_1 = aie.tile(1, 1) # CHECK: %tile_2_2 = aie.tile(2, 2) # CHECK: %tile_2_3 = aie.tile(2, 3) -# CHECK: aie.objectfifo @of0(%tile_0_0, {%tile_1_1}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of1(%tile_1_1, {%tile_2_2, %tile_2_3}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @of0(%tile_0_0, {%tile_1_1}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of1(%tile_1_1, {%tile_2_2, %tile_2_3}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.link [@of0] -> [@of1]([] []) -# CHECK: aie.objectfifo @of2(%tile_1_1 dimensionsToStream [], {%tile_2_2 dimensionsFromStream [], %tile_2_3 dimensionsFromStream []}, [2 : i32, 2 : i32, 7 : i32]) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of3(%tile_0_0, {%tile_1_1}, 1 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of4(%tile_1_1, {%tile_2_2}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> -# CHECK: aie.objectfifo @of5(%tile_1_1, {%tile_2_3}, 2 : i32) {padDimensions = #aie} : !aie.objectfifo> +# CHECK: aie.objectfifo @of2(%tile_1_1 dimensionsToStream [], {%tile_2_2 dimensionsFromStream [], %tile_2_3 dimensionsFromStream []}, [2 : i32, 2 : i32, 7 : i32]) : !aie.objectfifo> +# CHECK: aie.objectfifo @of3(%tile_0_0, {%tile_1_1}, 1 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of4(%tile_1_1, {%tile_2_2}, 2 : i32) : !aie.objectfifo> +# CHECK: aie.objectfifo @of5(%tile_1_1, {%tile_2_3}, 2 : i32) : !aie.objectfifo> # CHECK: aie.objectfifo.link [@of3] -> [@of4, @of5]([] [0, 128]) # CHECK: } # CHECK: }