[Mlir-commits] [mlir] [mlir][arith] doc updates for ub semantics, and int representations (PR #72932)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Nov 20 21:34:16 PST 2023
================
@@ -198,7 +198,9 @@ def Arith_AddIOp : Arith_TotalIntBinaryOp<"addi", [Commutative]> {
The `addi` operation takes two operands and returns one result, each of
these is required to be the same type. This type may be an integer scalar
type, a vector whose element type is integer, or a tensor of integers. It
- has no standard attributes.
+ has no standard attributes. If an overflow occurs, the result is the
----------------
kuhar wrote:
The result is (a+b)%(2^n) regardless an overflow happening or not.
https://github.com/llvm/llvm-project/pull/72932
More information about the Mlir-commits
mailing list