Implement TLSLDM.
[oota-llvm.git] / include / llvm / ADT / BitVector.h
index 9dcb9e106f26b2a64630151a8f3c4f1798cfe6de..1940fd3900e03f3d96b7925881302e3bfe360b92 100644 (file)
@@ -127,6 +127,12 @@ public:
     return false;
   }
 
+  /// all - Returns true if all bits are set.
+  bool all() const {
+    // TODO: Optimize this.
+    return count() == size();
+  }
+
   /// none - Returns true if none of the bits are set.
   bool none() const {
     return !any();