llvm::analyzeKnownBitsFromAndXorOr

Using KnownBits LHS/RHS produce the known bits for logic op (and/xor/or).

Synopsis

Declared in <llvm/Analysis/ValueTracking.h>

KnownBits
analyzeKnownBitsFromAndXorOr(
    Operator const* I,
    KnownBits const& KnownLHS,
    KnownBits const& KnownRHS,
    SimplifyQuery const& SQ,
    unsigned int Depth = 0);

Return Value

Known bits of the logic operation result.

Parameters

NameDescription
IAnd, or, or xor operator being analyzed.
KnownLHSKnown bits of the left-hand operand.
KnownRHSKnown bits of the right-hand operand.
SQSimplify query providing context for the analysis.
DepthCurrent recursion depth for this query.