[Mlir-commits] [mlir] [mlir][spirv] Add 6 Element Binary operators to TOSA Ext Inst Set (PR #179627)
Jakub Kuderski
llvmlistbot at llvm.org
Wed Feb 25 06:43:25 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
+ the addition overflows or underflows the integer range.
----------------
kuhar wrote:
We should specify this in the op description
https://github.com/llvm/llvm-project/pull/179627
More information about the Mlir-commits
mailing list