Matches a G_ICMP, including commuted operand order.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/MIPatternMatch.h>
template<
typename Pred,
typename LHS,
typename RHS>
CompareOp_match<Pred, LHS, RHS, TargetOpcode::G_ICMP, true>
m_c_GICmp(
Pred const& P,
LHS const& L,
RHS const& R);
Description
E.g.
m_c_GICmp(m_Pred(...), m_GAdd(...), m_GSub(...))
Could match both of:
icmp ugt (add x, y) (sub a, b) icmp ult (sub a, b) (add x, y)
Return Value
A commutative matcher for G_ICMP.
Parameters
Name |
Description |
P |
Sub‐pattern for the integer predicate. |
L |
Sub‐pattern for the left‐hand operand. |
R |
Sub‐pattern for the right‐hand operand. |
Created with MrDocs