Return the scalar sign-extended integral splat value defined by MI if possible.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<int64_t>
getIConstantSplatSExtVal(
MachineInstr const& MI,
MachineRegisterInfo const& MRI);
The sign-extended splat value, or std::nullopt.
| Name | Description |
|---|---|
| MI | Instruction that may define a splat constant. |
| MRI | Register information for the function. |