llvm::isKnownNonNegativeInLoop

Returns true if we can prove that S is defined and always non-negative in loop L.

Synopsis

Declared in <llvm/Transforms/Utils/LoopUtils.h>

bool
isKnownNonNegativeInLoop(
    SCEV const* S,
    Loop const* L,
    ScalarEvolution& SE);

Return Value

True if S is defined and always non-negative in L.

Parameters

NameDescription
SSCEV expression to classify.
LLoop in which S is evaluated.
SEScalarEvolution used for the proof.