|
LLVM
7.0.0
|
#include "llvm/ADT/StringMap.h"#include "llvm/ADT/StringExtras.h"#include "llvm/Support/Compiler.h"#include "llvm/Support/DJB.h"#include "llvm/Support/MathExtras.h"#include <cassert>Go to the source code of this file.
Functions | |
| static unsigned | getMinBucketToReserveForEntries (unsigned NumEntries) |
Returns the number of buckets to allocate to ensure that the DenseMap can accommodate NumEntries without need to grow(). More... | |
Returns the number of buckets to allocate to ensure that the DenseMap can accommodate NumEntries without need to grow().
Definition at line 25 of file StringMap.cpp.
References llvm::NextPowerOf2().
Referenced by llvm::DenseMap< unsigned, unsigned >::init(), llvm::DenseMapBase< SmallDenseMap< KeyT, ValueT, InlineBuckets, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::reserve(), and llvm::StringMapImpl::StringMapImpl().
1.8.13