llvm::isKnownNonNegative

Returns true if the give value is known to be non-negative.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

bool
isKnownNonNegative(
    Value const* V,
    SimplifyQuery const& SQ,
    unsigned int Depth = 0);

Return Value

True if V is known non-negative.

Parameters

NameDescription
VValue to test for being non-negative.
SQSimplify query providing context for the analysis.
DepthCurrent recursion depth for this query.