llvm::computeKnownBits

Compute known bits for V into Known using the simplify query Q.

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

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

Parameters

NameDescription
VValue to analyze.
KnownOutput known-zero and known-one bits.
QSimplify query providing context for the analysis.
DepthCurrent recursion depth for this query.