ΒΆbool matchUnaryPredicate(
    llvm::SDValue Op,
    std::function<bool(ConstantSDNode*)> Match,
    bool AllowUndefs = false)

Description

Attempt to match a unary predicate against a scalar/splat constant or every element of a constant BUILD_VECTOR. If AllowUndef is true, then UNDEF elements will pass nullptr to Match.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:2666

Parameters

llvm::SDValue Op
std::function<bool(ConstantSDNode*)> Match
bool AllowUndefs = false