llvm::APInt::uadd_ov

Unsigned add that records whether the result overflowed.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
uadd_ov(
    APInt const& RHS,
    bool& Overflow) const;

Return Value

The unsigned sum of *this and RHS.

Parameters

NameDescription
RHSRight-hand operand
OverflowSet to true if the operation overflowed