|
LLVM
5.0.0
|
#include "llvm/DebugInfo/PDB/Native/HashTable.h"
Public Member Functions | |
| HashTable () | |
| HashTable (uint32_t Capacity) | |
| Error | load (BinaryStreamReader &Stream) |
| uint32_t | calculateSerializedLength () const |
| Error | commit (BinaryStreamWriter &Writer) const |
| void | clear () |
| uint32_t | capacity () const |
| uint32_t | size () const |
| HashTableIterator | begin () const |
| HashTableIterator | end () const |
| HashTableIterator | find (uint32_t K) |
| void | set (uint32_t K, uint32_t V) |
| void | remove (uint32_t K) |
| uint32_t | get (uint32_t K) |
Protected Member Functions | |
| bool | isPresent (uint32_t K) const |
| bool | isDeleted (uint32_t K) const |
Protected Attributes | |
| BucketList | Buckets |
| SparseBitVector | Present |
| SparseBitVector | Deleted |
Friends | |
| class | HashTableIterator |
Definition at line 31 of file HashTable.h.
| HashTable::HashTable | ( | ) |
Definition at line 25 of file HashTable.cpp.
|
explicit |
Definition at line 27 of file HashTable.cpp.
References Buckets.
| HashTableIterator HashTable::begin | ( | ) | const |
Definition at line 116 of file HashTable.cpp.
References HashTableIterator.
| uint32_t HashTable::calculateSerializedLength | ( | ) | const |
Definition at line 64 of file HashTable.cpp.
References llvm::alignTo(), Deleted, llvm::SparseBitVector< ElementSize >::find_last(), Present, size(), and llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Size.
Referenced by llvm::pdb::NamedStreamMap::finalize().
| uint32_t HashTable::capacity | ( | ) | const |
Definition at line 112 of file HashTable.cpp.
References Buckets.
| void HashTable::clear | ( | ) |
Definition at line 106 of file HashTable.cpp.
References Buckets, llvm::SparseBitVector< ElementSize >::clear(), Deleted, and Present.
Referenced by llvm::pdb::NamedStreamMap::finalize(), and llvm::pdb::NamedStreamMap::load().
| Error HashTable::commit | ( | BinaryStreamWriter & | Writer | ) | const |
Definition at line 84 of file HashTable.cpp.
References capacity(), Deleted, H, Present, size(), llvm::Error::success(), llvm::BinaryStreamWriter::writeInteger(), and llvm::BinaryStreamWriter::writeObject().
Referenced by llvm::pdb::NamedStreamMap::commit().
| HashTableIterator HashTable::end | ( | ) | const |
Definition at line 118 of file HashTable.cpp.
References HashTableIterator.
| HashTableIterator HashTable::find | ( | uint32_t | K | ) |
Definition at line 122 of file HashTable.cpp.
References assert(), Buckets, capacity(), first, H, HashTableIterator, I, isDeleted(), and isPresent().
Definition at line 65 of file HashTable.h.
References Deleted, and llvm::SparseBitVector< ElementSize >::test().
Referenced by find().
Definition at line 64 of file HashTable.h.
References Present, and llvm::SparseBitVector< ElementSize >::test().
| Error HashTable::load | ( | BinaryStreamReader & | Stream | ) |
Definition at line 29 of file HashTable.cpp.
References Buckets, llvm::pdb::corrupt_file, llvm::SparseBitVector< ElementSize >::count(), Deleted, H, llvm::SparseBitVector< ElementSize >::intersects(), P, Present, llvm::BinaryStreamReader::readInteger(), llvm::BinaryStreamReader::readObject(), and llvm::Error::success().
Referenced by llvm::pdb::NamedStreamMap::load(), and llvm::pdb::TpiStream::reload().
| void HashTable::remove | ( | uint32_t | K | ) |
Definition at line 174 of file HashTable.cpp.
References assert(), Deleted, end(), find(), Present, llvm::SparseBitVector< ElementSize >::reset(), llvm::SparseBitVector< ElementSize >::set(), and llvm::SparseBitVector< ElementSize >::test().
Definition at line 151 of file HashTable.cpp.
References assert(), B, Buckets, Deleted, end(), find(), isPresent(), Present, llvm::SparseBitVector< ElementSize >::reset(), and llvm::SparseBitVector< ElementSize >::set().
Referenced by llvm::pdb::NamedStreamMap::finalize().
| uint32_t HashTable::size | ( | ) | const |
Definition at line 114 of file HashTable.cpp.
References llvm::SparseBitVector< ElementSize >::count(), and Present.
Referenced by calculateSerializedLength(), and commit().
|
friend |
Definition at line 32 of file HashTable.h.
|
protected |
Definition at line 67 of file HashTable.h.
Referenced by capacity(), clear(), find(), HashTable(), load(), llvm::pdb::HashTableIterator::operator*(), and set().
|
mutableprotected |
Definition at line 69 of file HashTable.h.
Referenced by calculateSerializedLength(), clear(), commit(), isDeleted(), load(), remove(), and set().
|
mutableprotected |
Definition at line 68 of file HashTable.h.
Referenced by calculateSerializedLength(), clear(), commit(), llvm::pdb::HashTableIterator::HashTableIterator(), isPresent(), load(), llvm::pdb::HashTableIterator::operator*(), llvm::pdb::HashTableIterator::operator++(), remove(), set(), and size().
1.8.6