llvm::PatternMatch::m_c_ICmp

Matches an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted.

Synopsis

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);

Return Value

A matcher for an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted.

Parameters

NameDescription
PredBound to the matched (possibly swapped) predicate.
LMatcher for one operand.
RMatcher for the other operand.