ΒΆbool matchBinaryPredicate(
llvm::SDValue LHS,
llvm::SDValue RHS,
std::function<bool(ConstantSDNode*,
ConstantSDNode*)> Match,
bool AllowUndefs = false,
bool AllowTypeMismatch = false)
bool matchBinaryPredicate(
llvm::SDValue LHS,
llvm::SDValue RHS,
std::function<bool(ConstantSDNode*,
ConstantSDNode*)> Match,
bool AllowUndefs = false,
bool AllowTypeMismatch = false)
Description
Attempt to match a binary predicate against a pair of scalar/splat constants or every element of a pair of constant BUILD_VECTORs. If AllowUndef is true, then UNDEF elements will pass nullptr to Match. If AllowTypeMismatch is true then RetType + ArgTypes don't need to match.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:2674
Parameters
- llvm::SDValue LHS
- llvm::SDValue RHS
- std::function<bool(ConstantSDNode*, ConstantSDNode*)> Match
- bool AllowUndefs = false
- bool AllowTypeMismatch = false