[llvm] [SDPatternMatch] Add m_CondCode, m_NoneOf, and some SExt improvements (PR #90762)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 16:54:22 PDT 2024
================
@@ -758,6 +778,40 @@ inline auto m_False() {
m_Value()};
}
+struct CondCode_match {
+ std::optional<ISD::CondCode> CCToMatch;
+ ISD::CondCode *BindCC;
+
+ explicit CondCode_match(ISD::CondCode CC) : CCToMatch(CC), BindCC(nullptr) {}
----------------
topperc wrote:
Uses `ISD::CondCode *BindCC = nullptr` in the class body and you don't have to mention it here.
https://github.com/llvm/llvm-project/pull/90762
More information about the llvm-commits
mailing list