Return the scalar integral splat value defined by MI if possible.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
std::optional<APInt>
getIConstantSplatVal(
MachineInstr const& MI,
MachineRegisterInfo const& MRI);
Return Value
The splat APInt, or std::nullopt.
Parameters
Name |
Description |
MI |
Instruction that may define a splat constant. |
MRI |
Register information for the function. |
Created with MrDocs