[Mlir-commits] [mlir] [MLIR][TOSA] Enable strict property assembly format (PR #217291)

Mehdi Amini llvmlistbot at llvm.org
Fri Aug 21 03:50:30 PDT 2026


================
@@ -74,9 +74,9 @@ func.func @unary_resize_bilinear_fp16(%arg0 : tensor<3x1x1x7xf16>) -> tensor<3x1
 
 // CHECK-LABEL: @unary_resize_nearest_i8
 func.func @unary_resize_nearest_i8(%arg0 : tensor<3x1x1x7xi8>) -> tensor<3x1x1x7xi8> {
-  %scale = tosa.const_shape { values = dense<[2, 1, 3, 1]> : tensor<4xindex> } : () -> !tosa.shape<4>
-  %offset = tosa.const_shape { values = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
-  %border = tosa.const_shape { values = dense<0> : tensor<2xindex> } : () -> !tosa.shape<2>
+  %scale = tosa.const_shape values(dense<[2, 1, 3, 1]> : tensor<4xindex>) : () -> !tosa.shape<4>
+  %offset = tosa.const_shape values(dense<0> : tensor<2xindex>) : () -> !tosa.shape<2>
+  %border = tosa.const_shape values(dense<0> : tensor<2xindex>) : () -> !tosa.shape<2>
   %resize = tosa.resize %arg0, %scale, %offset, %border {mode = NEAREST_NEIGHBOR} : (tensor<3x1x1x7xi8>, !tosa.shape<4>, !tosa.shape<2>, !tosa.shape<2>) -> tensor<3x1x1x7xi8>
----------------
joker-eph wrote:

I removed the shared enum-aware custom parser/printer and converted all operations that used it to declarative assembly formats. Enum properties now use the stripped spelling, such as mode(<NEAREST_NEIGHBOR>), and the tests have been updated accordingly.

https://github.com/llvm/llvm-project/pull/217291


More information about the Mlir-commits mailing list