Matches a compare instruction of Class against operand patterns.
Declared in <llvm/IR/PatternMatch.h>
template<
typename LHS_t,
typename RHS_t,
typename Class,
bool Commutable = false>
struct CmpClass_match;
| Name | Description |
|---|---|
CmpClass_match [constructor] | Constructors |
match | Match V as Class with matching operands, optionally binding Predicate. |
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
m_Cmp | Matches any compare of L and R, binding the predicate to Pred. |
m_Cmp | Matches any compare of L and R. |
m_FCmp | Matches an fcmp of L and R, binding the predicate to Pred. |
m_FCmp | Matches an fcmp of L and R. |
m_ICmp | Matches an icmp of L and R, binding the predicate to Pred. |
m_ICmp | Matches an icmp of L and R. |
m_c_ICmp | Matches an ICmp over LHS and RHS in either order without binding the pred. |
m_c_ICmp | Matches an ICmp with a predicate over LHS and RHS in either order. Swaps the predicate if operands are commuted. |