[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:10 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:
Is this signed or unsigned overflow? While general addition is signless, I think overflow is relative to signed interpretation, no?
https://github.com/llvm/llvm-project/pull/179627
More information about the Mlir-commits
mailing list