llvm::computeOverflowForSignedAdd

This version also leverages the sign bit of Add if known.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

OverflowResult
computeOverflowForSignedAdd(
    AddOperator const* Add,
    SimplifyQuery const& SQ);

Return Value

Overflow classification for the signed add.

Parameters

NameDescription
AddSigned add operator to analyze for overflow.
SQSimplify query providing context for the analysis.