ΒΆllvm::ConstantSDNode* isConstOrConstSplat(
    llvm::SDValue N,
    const llvm::APInt& DemandedElts,
    bool AllowUndefs = false,
    bool AllowTruncation = false)

Description

Returns the SDNode if it is a demanded constant splat BuildVector or constant int.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1686

Parameters

llvm::SDValue N
const llvm::APInt& DemandedElts
bool AllowUndefs = false
bool AllowTruncation = false