[Mlir-commits] [mlir] [mlir][spirv] Clarify SPIR-V TOSA op examples (PR #192952)

Davide Grohmann llvmlistbot at llvm.org
Mon Apr 20 06:27:45 PDT 2026


================
@@ -986,8 +986,12 @@ def SPIRV_TosaArithmeticRightShiftOp : SPIRV_TosaElementwiseBinaryOp<"Arithmetic
 
     #### Example:
     ```mlir
-    %1 = spirv.Tosa.ArithmeticRightShift round = true, %arg0, %arg1 : !spirv.arm.tensor<1x47x22xi16>, !spirv.arm.tensor<49x47x22xi16> -> !spirv.arm.tensor<49x47x22xi16>
+    %1 = spirv.Tosa.ArithmeticRightShift round = true, %input1, %input2 : !spirv.arm.tensor<1x47x22xi16>, !spirv.arm.tensor<49x47x22xi16> -> !spirv.arm.tensor<49x47x22xi16>
----------------
davidegrohmann wrote:

It aligns with the input name  in the op definition which aligns with the TOSA spec, but maybe for the examples make sense to have a more descriptive name

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


More information about the Mlir-commits mailing list