llvm::TargetLowering::SimplifyDemandedBits

Simplify Op using only its demanded bits, or compute its known bits.

Synopses

Declared in <llvm/CodeGen/TargetLowering.h>

Simplify Op using only its demanded bits, or compute its known bits.

bool
SimplifyDemandedBits(
    SDValue Op,
    APInt const& DemandedBits,
    DAGCombinerInfo& DCI) const;
» more...

Simplify Op using only its demanded bits, or compute its known bits.

bool
SimplifyDemandedBits(
    SDValue Op,
    APInt const& DemandedBits,
    APInt const& DemandedElts,
    DAGCombinerInfo& DCI) const;
» more...

Simplify Op using only its demanded bits, or compute its known bits.

bool
SimplifyDemandedBits(
    SDValue Op,
    APInt const& DemandedBits,
    KnownBits& Known,
    TargetLoweringOpt& TLO,
    unsigned int Depth = 0,
    bool AssumeSingleUse = false) const;
» more...

Simplify Op using only its demanded bits, or compute its known bits.

bool
SimplifyDemandedBits(
    SDValue Op,
    APInt const& DemandedBits,
    APInt const& DemandedElts,
    KnownBits& Known,
    TargetLoweringOpt& TLO,
    unsigned int Depth = 0,
    bool AssumeSingleUse = false) const;
» more...

Return Value

True if simplify Op using only its demanded bits, or compute its known bits.

Parameters

NameDescription
OpSDNode or value being queried.
DemandedBitsBit mask of bits that are demanded.
DCIDAG combiner info.
DemandedEltsMask of vector elements that are demanded.
KnownKnown-bits or known-FP-class result to fill.
TLOTarget lowering optimization state.
DepthRecursion depth limit for the analysis.
AssumeSingleUseWhether a single use may be assumed.