llvm::isAllOnesOrAllOnesSplat

isAllOnesOrAllOnesSplat overloads

Synopses

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

Return true if the value is a constant -1 integer or splat.

bool
isAllOnesOrAllOnesSplat(
    SDValue V,
    bool AllowUndefs = false);
» more...

Return true if the value is a constant -1 integer or a splatted vector of a constant -1 integer (with no undefs if AllowUndefs is false).

bool
isAllOnesOrAllOnesSplat(
    MachineInstr const& MI,
    MachineRegisterInfo const& MRI,
    bool AllowUndefs = false);
» more...

Return Value

  • True if the value is a constant -1 integer or a splatted vector of a constant -1 integer (with no undefs).
  • True if the value is an all-ones constant or splat.

Parameters

NameDescription
VValue to test.
AllowUndefsWhether undef elements are permitted.
MIInstruction defining the value to test.
MRIRegister information for the function.