[llvm] [SDPatternMatch] Add m_CondCode, m_NoneOf, and some SExt improvements (PR #90762)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 15:34:17 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)...)};
----------------
mshockwave wrote:

Done. I created a `m_IsNot` to wrap the `Not` struct instantiation.

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


More information about the llvm-commits mailing list