ΒΆbool matchUnaryPredicate(
    const llvm::MachineRegisterInfo& MRI,
    llvm::Register Reg,
    std::function<bool(const Constant*)> Match,
    bool AllowUndefs = false)

Description

Attempt to match a unary predicate against a scalar/splat constant or every element of a constant G_BUILD_VECTOR. If \p ConstVal is null, the source value was undef.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:483

Parameters

const llvm::MachineRegisterInfo& MRI
llvm::Register Reg
std::function<bool(const Constant*)> Match
bool AllowUndefs = false