getIConstantSplatSExtVal overloads

Synopses

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

Return the scalar sign‐extended integral splat value of Reg if possible.

std::optional<int64_t>
getIConstantSplatSExtVal(
    Register const Reg,
    MachineRegisterInfo const& MRI);

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

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

Return Value

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

Parameters

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.

Created with MrDocs