[llvm] [PatternMatch] Add support for capture-and-match (NFC) (PR #149825)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 21 09:45:49 PDT 2025


================
@@ -822,12 +822,47 @@ template <typename Class> struct bind_ty {
   }
 };
 
+template <typename Class, typename MatchTy> struct bind_and_match_ty {
----------------
fhahn wrote:

would it be possible to just use m_CombineAnd to make the new matchers? Not sure if that would save much though

https://github.com/llvm/llvm-project/pull/149825


More information about the llvm-commits mailing list