[llvm] [PatternMatchHelpers] Introduce m_Unless (NFC) (PR #212454)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 01:52:53 PDT 2026


================
@@ -208,7 +208,7 @@ template <typename Pred> struct Not {
 template <typename Pred> Not(const Pred &P) -> Not<Pred>;
 
 /// Match if the inner pattern does NOT match.
-template <typename Pred> inline Not<Pred> m_Unless(const Pred &P) {
----------------
lukel97 wrote:

Why do we need to rename these? Aren't SDPatternMatch and regular PatternMatch incl. PatternMatchHelpers in different namespaces? I feel like the solution is to fix whatever call site is including both

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


More information about the llvm-commits mailing list