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