ΒΆbool isBuildVectorAllOnes(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowUndef = false)
bool isBuildVectorAllOnes(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowUndef = false)
Description
Return true if the specified instruction is a G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are ~0 or undef.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:419
Parameters
- const llvm::MachineInstr& MI
- const llvm::MachineRegisterInfo& MRI
- bool AllowUndef = false