[llvm] [SDPatternMatch] Add m_CondCode, m_NoneOf, and some ZExt/SExt improvements (PR #90762)
Marc Auberer via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 12:57:51 PDT 2024
================
@@ -366,6 +379,10 @@ template <typename... Preds> Or<Preds...> m_AnyOf(Preds &&...preds) {
return Or<Preds...>(std::forward<Preds>(preds)...);
}
+template <typename... Preds> auto m_NoneOf(Preds &&...preds) {
+ return Not{m_AnyOf(std::forward<Preds>(preds)...)};
----------------
marcauberer wrote:
Maybe we want to have something like `m_not()` to wrap the struct instantiation?
https://github.com/llvm/llvm-project/pull/90762
More information about the llvm-commits
mailing list