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,
APInt const& SplatValue,
bool AllowUndef);
| Name | Description |
|---|---|
| MI | Representation of each machine instruction. |
| MRI | MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc. |
| SplatValue | Arbitrary-precision integer. |