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

Jakub Kuderski llvmlistbot at llvm.org
Tue Feb 24 06:13:09 PST 2026


================
@@ -863,4 +884,220 @@ def SPIRV_TosaTanhOp : SPIRV_TosaOpWithResult<"Tanh", 13, [Pure,
 }
 
 
+def SPIRV_TosaAddOp : SPIRV_TosaElementwiseBinaryOp<"Add", 14, [NoMemoryEffect]> {
+  let summary = "Addition operator.";
+
+  let description = [{
+    Elementwise Addition of input1 and input2. Axis of size 1 will be broadcast,
+    as necessary. Rank of input tensors must match. The behaviour is undefined if
----------------
kuhar wrote:

```suggestion
    as necessary. Rank of input tensors must match. The behavior is undefined if
```

also elsewhere if applicable

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


More information about the Mlir-commits mailing list