ΒΆbool isNullOrNullSplat(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowUndefs = false)
bool isNullOrNullSplat(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowUndefs = false)
Description
Return true if the value is a constant 0 integer or a splatted vector of a constant 0 integer (with no undefs if \p AllowUndefs is false). This will handle G_BUILD_VECTOR and G_BUILD_VECTOR_TRUNC as truncation is not an issue for null values.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:438
Parameters
- const llvm::MachineInstr& MI
- const llvm::MachineRegisterInfo& MRI
- bool AllowUndefs = false