Add a new isSignWrappedSet() method to ConstantRange.
[oota-llvm.git] / include / llvm / Support / ConstantRange.h
index 29086b2ac4f2d302b71ef2cbb4bbf56cf13effcf..2af2cf61eaeac298ec00d82f88df464df0abb7e3 100644 (file)
@@ -92,6 +92,11 @@ public:
   ///
   bool isWrappedSet() const;
 
+  /// isSignWrappedSet - Return true if this set wraps around the INT_MIN of
+  /// its bitwidth, for example: i8 [120, 140).
+  ///
+  bool isSignWrappedSet() const;
+
   /// contains - Return true if the specified value is in the set.
   ///
   bool contains(const APInt &Val) const;