Matches an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted.
Declared in <llvm/IR/PatternMatch.h>
template<
typename LHS,
typename RHS>
CmpClass_match<LHS, RHS, ICmpInst, true>
m_c_ICmp(
CmpPredicate& Pred,
LHS const& L,
RHS const& R);
A matcher for an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted.
| Name | Description |
|---|---|
| Pred | Bound to the matched (possibly swapped) predicate. |
| L | Matcher for one operand. |
| R | Matcher for the other operand. |