llvm::ISD::matchBinaryPredicate

Match a binary predicate over all elements of LHS and RHS.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

bool
matchBinaryPredicate(
    SDValue LHS,
    SDValue RHS,
    std::function<bool(ConstantSDNode*, ConstantSDNode*)> Match,
    bool AllowUndefs = false,
    bool AllowTypeMismatch = false);

Return Value

True if the binary predicate matched.

Parameters

NameDescription
LHSLeft-hand value.
RHSRight-hand value.
MatchPredicate invoked for each constant pair.
AllowUndefsWhether undef elements are allowed.
AllowTypeMismatchWhether operand types may differ.