llvm::PatternMatch::CmpClass_match

Matches a compare instruction of Class against operand patterns.

Synopsis

Declared in <llvm/IR/PatternMatch.h>

template<
    typename LHS_t,
    typename RHS_t,
    typename Class,
    bool Commutable = false>
struct CmpClass_match;

Member Functions

NameDescription
CmpClass_match [constructor]Constructors
match Match V as Class with matching operands, optionally binding Predicate.

Data Members

NameDescription
L Sub-pattern for the left-hand operand.
Predicate Optional output that receives the matched compare predicate.
R Sub-pattern for the right-hand operand.

Non-Member Functions

NameDescription
m_CmpMatches any compare of L and R, binding the predicate to Pred.
m_CmpMatches any compare of L and R.
m_FCmpMatches an fcmp of L and R, binding the predicate to Pred.
m_FCmpMatches an fcmp of L and R.
m_ICmpMatches an icmp of L and R, binding the predicate to Pred.
m_ICmpMatches an icmp of L and R.
m_c_ICmpMatches an ICmp over LHS and RHS in either order without binding the pred.
m_c_ICmpMatches an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted.