In DenseMapInfo<pair<T, U>> tombstone key, use the tombstone for T and U instead
[oota-llvm.git] / include / llvm / ADT / SmallBitVector.h
index 3441d0a90c9b222d1b427133265ef44d25e7b03d..b15b3ee0418f9ce1f0b5f131058f0cda4ffc87da 100644 (file)
@@ -187,6 +187,13 @@ public:
     return getPointer()->any();
   }
 
+  /// all - Returns true if all bits are set.
+  bool all() const {
+    if (isSmall())
+      return getSmallBits() == (uintptr_t(1) << getSmallSize()) - 1;
+    return getPointer()->all();
+  }
+
   /// none - Returns true if none of the bits are set.
   bool none() const {
     if (isSmall())