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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 00:56:23 PDT 2025


nikic wrote:

> > 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`?

Yes, it should... fixed.

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


More information about the llvm-commits mailing list