[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
https://github.com/fhahn commented:
This is going to be super useful, thanks!
> Currently the two ways to do that is to either capture using m_Value/m_Instruction and do a separate match on the result, or to use the somewhat awkward m_CombineOr(m_XYZ, m_Value(V)) pattern.
>From the description, should this say `m_CombineAnd`?
https://github.com/llvm/llvm-project/pull/149825
More information about the llvm-commits
mailing list