Match a binary predicate over all elements of LHS and RHS.
Declared in <llvm/CodeGen/SelectionDAGNodes.h>
bool
matchBinaryPredicate(
SDValue LHS,
SDValue RHS,
std::function<bool(ConstantSDNode*, ConstantSDNode*)> Match,
bool AllowUndefs = false,
bool AllowTypeMismatch = false);
True if the binary predicate matched.
| Name | Description |
|---|---|
| LHS | Left-hand value. |
| RHS | Right-hand value. |
| Match | Predicate invoked for each constant pair. |
| AllowUndefs | Whether undef elements are allowed. |
| AllowTypeMismatch | Whether operand types may differ. |