[Mlir-commits] [mlir] [mlir][spirv] Add 6 Element Binary operators to TOSA Ext Inst Set (PR #179627)

Davide Grohmann llvmlistbot at llvm.org
Wed Feb 11 01:59:57 PST 2026


================
@@ -62,6 +62,19 @@ class SPIRV_TosaOpWithComplexResult<string mnemonic, int opcode, list<Trait> tra
   }];
 }
 
+class SPIRV_TosaElementwiseBinaryOp<string mnemonic, int opcode, list<Trait> traits = []> :
----------------
davidegrohmann wrote:

We could but then we need to have MUL as a special case. Indeed the output of integer multiplication is always i32, even if the inputs are i8 and i16.

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


More information about the Mlir-commits mailing list