[llvm] [DAG] SDPatternMatch - add m_Negative/m_StrictlyPositive/m_NonNegative/m_NonPositive/m_NonZero matchers (PR #175191)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 12 02:40:00 PST 2026
================
@@ -1213,6 +1244,21 @@ struct AllOnes_match {
}
};
+inline Negative_match m_Negative() {
----------------
RKSimon wrote:
Something like this should work (untested):
```
template <typename ValTy>
inline auto m_Negative(const ValTy &V) {
return m_AllOf(m_Negative(), V);
}
```
https://github.com/llvm/llvm-project/pull/175191
More information about the llvm-commits
mailing list