Return true if the specified instruction is a G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are SplatValue or undef.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
bool
isBuildVectorConstantSplat(
MachineInstr const& MI,
MachineRegisterInfo const& MRI,
int64_t SplatValue,
bool AllowUndef);
True if all elements are SplatValue or undef.
| Name | Description |
|---|---|
| MI | Build-vector instruction to inspect. |
| MRI | Register information for the function. |
| SplatValue | Expected splat integer value. |
| AllowUndef | Whether undef elements are permitted. |