ΒΆbool isConstantSplat(
    llvm::SDValue Op,
    llvm::APInt& SplatVal,
    bool AllowPartialUndefs = true)

Description

If Op is a constant whose elements are all the same constant or undefined, return true and return the constant value in \p SplatVal. If we have undef bits that don't cover an entire element, we treat these as zero if AllowPartialUndefs is set, else we fail and return false.

Declared at: llvm/lib/Target/X86/X86ISelLowering.h:912

Parameters

llvm::SDValue Op
llvm::APInt& SplatVal
bool AllowPartialUndefs = true