Try to match Reg as an integer constant splat of type ConstT.

Synopsis

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

template<typename ConstT>
std::optional<ConstT>
matchConstantSplat(
    Register Reg,
    MachineRegisterInfo const& MRI);

Specializations

Name

Description

matchConstantSplat<APInt>

Match Reg as an APInt constant splat.

matchConstantSplat<long>

Match Reg as a sign‐extended int64 constant splat.

Return Value

The splat lane value, or nullopt if matching fails.

Parameters

Name

Description

Reg

Register that may hold a constant splat.

MRI

Register info used to inspect constants.

Created with MrDocs