llvm::computeKnownBits

Compute known bits for the demanded elements of V using Q.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

KnownBits
computeKnownBits(
    Value const* V,
    APInt const& DemandedElts,
    SimplifyQuery const& Q,
    unsigned int Depth = 0);

Return Value

Known-zero and known-one bits for the demanded elements of V.

Parameters

NameDescription
VValue to analyze.
DemandedEltsDemanded vector elements for the query.
QSimplify query providing context for the analysis.
DepthCurrent recursion depth for this query.