[#llvm-PatternMatch-SpecificCmpClass_match] = xref:llvm.adoc[llvm]::xref:llvm/PatternMatch.adoc[PatternMatch]::SpecificCmpClass_match :relfileprefix: ../../ :mrdocs: Matches a compare of Class with a required predicate and operands. == Synopsis Declared in `<llvm/IR/PatternMatch.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename LHS_t, typename RHS_t, typename Class, bool Commutable = false> struct SpecificCmpClass_match; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/SpecificCmpClass_match/2constructor.adoc[`SpecificCmpClass_match`] [.small]#[constructor]# | Construct a matcher for `Pred` and both operands. | xref:llvm/PatternMatch/SpecificCmpClass_match/match.adoc[`match`] | Match `V` if predicate and operands succeed. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/SpecificCmpClass_match/L.adoc[`L`] | Sub‐pattern for the left‐hand operand. | xref:llvm/PatternMatch/SpecificCmpClass_match/Predicate.adoc[`Predicate`] | Predicate that must match. | xref:llvm/PatternMatch/SpecificCmpClass_match/R.adoc[`R`] | Sub‐pattern for the right‐hand operand. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/PatternMatch/m_SpecificCmp.adoc[`m_SpecificCmp`] | Matches any compare of `L` and `R` with predicate `MatchPred.` | xref:llvm/PatternMatch/m_SpecificFCmp.adoc[`m_SpecificFCmp`] | Matches an fcmp of `L` and `R` with predicate `MatchPred.` | xref:llvm/PatternMatch/m_SpecificICmp.adoc[`m_SpecificICmp`] | Matches an icmp of `L` and `R` with predicate `MatchPred.` | xref:llvm/PatternMatch/m_c_SpecificICmp.adoc[`m_c_SpecificICmp`] | Matches an icmp of `L` and `R` with `MatchPred` in either order. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#