getIConstantSplatVal overloads
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
Return the scalar integral splat value of Reg if possible.
std::optional<APInt>
getIConstantSplatVal(
Register const Reg,
MachineRegisterInfo const& MRI);
» more...
Return the scalar integral splat value defined by MI if possible.
std::optional<APInt>
getIConstantSplatVal(
MachineInstr const& MI,
MachineRegisterInfo const& MRI);
» more...
The splat APInt, or std::nullopt.
| Name | Description |
|---|---|
| Reg | Virtual register that may define a splat constant. |
| MRI | Register information for the function. |
| MI | Instruction that may define a splat constant. |