llvm::getIConstantSplatSExtVal

Return the scalar sign-extended integral splat value defined by MI if possible.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

std::optional<int64_t>
getIConstantSplatSExtVal(
    MachineInstr const& MI,
    MachineRegisterInfo const& MRI);

Return Value

The sign-extended splat value, or std::nullopt.

Parameters

NameDescription
MIInstruction that may define a splat constant.
MRIRegister information for the function.