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 in <llvm/CodeGen/GlobalISel/Utils.h>
bool
isBuildVectorAllZeros(
MachineInstr const& MI,
MachineRegisterInfo const& MRI,
bool AllowUndef = false);
True if all elements are zero or undef.
| Name | Description |
|---|---|
| MI | Build-vector instruction to inspect. |
| MRI | Register information for the function. |
| AllowUndef | Whether undef elements are permitted. |