llvm::isKnownNegative

Returns true if the given value is known be negative (i.e. non-positive and non-zero).

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

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

Return Value

True if V is known negative.

Parameters

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