projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In DenseMapInfo<pair<T, U>> tombstone key, use the tombstone for T and U instead
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
SmallBitVector.h
diff --git
a/include/llvm/ADT/SmallBitVector.h
b/include/llvm/ADT/SmallBitVector.h
index 3441d0a90c9b222d1b427133265ef44d25e7b03d..b15b3ee0418f9ce1f0b5f131058f0cda4ffc87da 100644
(file)
--- a/
include/llvm/ADT/SmallBitVector.h
+++ b/
include/llvm/ADT/SmallBitVector.h
@@
-187,6
+187,13
@@
public:
return getPointer()->any();
}
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())
/// none - Returns true if none of the bits are set.
bool none() const {
if (isSmall())