Return true if the specified register is defined by 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(
Register const Reg,
MachineRegisterInfo const& MRI,
int64_t SplatValue,
bool AllowUndef);
True if all elements are SplatValue or undef.
| Name | Description |
|---|---|
| Reg | Virtual register defined by a build vector. |
| MRI | Register information for the function. |
| SplatValue | Expected splat integer value. |
| AllowUndef | Whether undef elements are permitted. |