Compute whether an unsigned subtract of LHS and RHS can overflow.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

OverflowResult
computeOverflowForUnsignedSub(
    Value const* LHS,
    Value const* RHS,
    SimplifyQuery const& SQ);

Return Value

Overflow classification for the unsigned subtract.

Parameters

Name

Description

LHS

Left‐hand operand of the subtract.

RHS

Right‐hand operand of the subtract.

SQ

Simplify query providing context for the analysis.

Created with MrDocs