isBuildVectorConstantSplat overloads

Synopses

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

Return true if the specified register is defined by G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are SplatValue or undef.

bool
isBuildVectorConstantSplat(
    Register const Reg,
    MachineRegisterInfo const& MRI,
    int64_t SplatValue,
    bool AllowUndef);

Return true if the specified register is defined by G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are SplatValue or undef.

bool
isBuildVectorConstantSplat(
    Register const Reg,
    MachineRegisterInfo const& MRI,
    APInt const& SplatValue,
    bool AllowUndef);

Return true if the specified instruction is a G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are SplatValue or undef.

bool
isBuildVectorConstantSplat(
    MachineInstr const& MI,
    MachineRegisterInfo const& MRI,
    int64_t SplatValue,
    bool AllowUndef);

Return true if the specified instruction is a G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are SplatValue or undef.

bool
isBuildVectorConstantSplat(
    MachineInstr const& MI,
    MachineRegisterInfo const& MRI,
    APInt const& SplatValue,
    bool AllowUndef);

Return Value

True if all elements are SplatValue or undef.

Parameters

Name

Description

Reg

Virtual register defined by a build vector.

MRI

Register information for the function.

SplatValue

Expected splat integer value.

AllowUndef

Whether undef elements are permitted.

MI

Build‐vector instruction to inspect.

Created with MrDocs