ΒΆbool isBuildVectorConstantSplat(
const llvm::Register Reg,
const llvm::MachineRegisterInfo& MRI,
int64_t SplatValue,
bool AllowUndef)
bool isBuildVectorConstantSplat(
const llvm::Register Reg,
const llvm::MachineRegisterInfo& MRI,
int64_t SplatValue,
bool AllowUndef)
Description
Return true if the specified register is defined by 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:401
Parameters
- const llvm::Register Reg
- const llvm::MachineRegisterInfo& MRI
- int64_t SplatValue
- bool AllowUndef