Compute whether an unsigned add of LHS and RHS can overflow.
Declared in <llvm/Analysis/ValueTracking.h>
OverflowResult
computeOverflowForUnsignedAdd(
WithCache<Value const*> const& LHS,
WithCache<Value const*> const& RHS,
SimplifyQuery const& SQ);
Overflow classification for the unsigned add.
| Name | Description |
|---|---|
| LHS | Left-hand operand of the add. |
| RHS | Right-hand operand of the add. |
| SQ | Simplify query providing context for the analysis. |