Consider expression "0.0 - X" as the negation of X if
[oota-llvm.git] / include / llvm / IR / Constant.h
index 36a4538e86cbe80a65772f5c125a50d1e09ac851..5a3ba28447328be19a352fab24f55c6492583227 100644 (file)
@@ -61,6 +61,9 @@ public:
   /// by getZeroValueForNegation.
   bool isNegativeZeroValue() const;
 
+  /// Return true if the value is negative zero or null value.
+  bool isZeroValue() const;
+
   /// canTrap - Return true if evaluation of this constant could trap.  This is
   /// true for things like constant expressions that could divide by zero.
   bool canTrap() const;