ΒΆbool isBuildVectorConstantSplat(
    const llvm::MachineInstr& MI,
    const llvm::MachineRegisterInfo& MRI,
    int64_t SplatValue,
    bool AllowUndef)

Description

Return true if the specified instruction is a G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are \p SplatValue or undef.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:407

Parameters

const llvm::MachineInstr& MI
const llvm::MachineRegisterInfo& MRI
int64_t SplatValue
bool AllowUndef