[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
Fri Jan 9 09:04:11 PST 2026
================
@@ -2077,6 +2077,21 @@ class SelectionDAG {
/// floating-point value.
LLVM_ABI bool SignBitIsZeroFP(SDValue Op, unsigned Depth = 0) const;
+ /// Return true if Op is strictly positive FP or integer
+ LLVM_ABI bool IsStrictlyPositive(SDValue Op, unsigned Depth = 0) const;
+
+ /// Return true if Op is non positive FP or integer
+ LLVM_ABI bool IsNonPositive(SDValue Op, unsigned Depth = 0) const;
+
+ /// Return true if Op is a Negative FP or integer
+ LLVM_ABI bool IsNegative(SDValue Op, unsigned Depth = 0) const;
+
+ /// Return true if Op is non negative
+ LLVM_ABI bool IsNonNegative(SDValue Op, unsigned Depth = 0) const;
+
+ /// Return true if Op is non zero
+ LLVM_ABI bool IsNonZero(SDValue Op, unsigned Depth = 0) const;
----------------
RKSimon wrote:
Drop all these
https://github.com/llvm/llvm-project/pull/175191
More information about the llvm-commits
mailing list