[Mlir-commits] [mlir] [mlir][arith] doc updates for ub semantics, and int representations (PR #72932)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 20 21:50:42 PST 2023
================
@@ -273,7 +275,11 @@ def Arith_AddUIExtendedOp : Arith_Op<"addui_extended", [Pure, Commutative,
//===----------------------------------------------------------------------===//
def Arith_SubIOp : Arith_TotalIntBinaryOp<"subi"> {
- let summary = "integer subtraction operation";
+ let summary = [{
+ integer subtraction operation. If an overflow occurs, the result is the
+ mathematical value of the addition modulo 2^n, where `n` is the width of
+ the integer type.
----------------
joker-eph wrote:
Please move the addition to the "let description" and keep the summary short.
https://github.com/llvm/llvm-project/pull/72932
More information about the Mlir-commits
mailing list