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