Compute whether a signed subtract of LHS and RHS can overflow.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

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

Return Value

Overflow classification for the signed 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