LLVM 19.0.0git
Public Member Functions | List of all members
llvm::dwarf_linker::StringPool Class Reference

#include "llvm/DWARFLinker/StringPool.h"

Inheritance diagram for llvm::dwarf_linker::StringPool:
Inheritance graph
[legend]

Public Member Functions

 StringPool ()
 
 StringPool (size_t InitialSize)
 
llvm::parallel::PerThreadBumpPtrAllocatorgetAllocatorRef ()
 
void clear ()
 
- Public Member Functions inherited from llvm::ConcurrentHashTableByPtr< StringRef, StringEntry, llvm::parallel::PerThreadBumpPtrAllocator, StringPoolEntryInfo >
 ConcurrentHashTableByPtr (llvm::parallel::PerThreadBumpPtrAllocator &Allocator, uint64_t EstimatedSize=100000, size_t ThreadsNum=parallel::strategy.compute_thread_count(), size_t InitialNumberOfBuckets=128)
 
virtual ~ConcurrentHashTableByPtr ()
 
std::pair< StringEntry *, boolinsert (const StringRef &NewValue)
 Insert new value NewValue or return already existing entry.
 
void printStatistic (raw_ostream &OS)
 Print information about current state of hash table structures.
 

Additional Inherited Members

- Protected Types inherited from llvm::ConcurrentHashTableByPtr< StringRef, StringEntry, llvm::parallel::PerThreadBumpPtrAllocator, StringPoolEntryInfo >
using ExtHashBitsTy = uint32_t
 
using EntryDataTy = StringEntry *
 
using HashesPtr = ExtHashBitsTy *
 
using DataPtr = EntryDataTy *
 
- Protected Member Functions inherited from llvm::ConcurrentHashTableByPtr< StringRef, StringEntry, llvm::parallel::PerThreadBumpPtrAllocator, StringPoolEntryInfo >
void RehashBucket (Bucket &CurBucket)
 
uint32_t getBucketIdx (hash_code Hash)
 
uint32_t getExtHashBits (uint64_t Hash)
 
uint32_t getStartIdx (uint32_t ExtHashBits, uint32_t BucketSize)
 
- Protected Attributes inherited from llvm::ConcurrentHashTableByPtr< StringRef, StringEntry, llvm::parallel::PerThreadBumpPtrAllocator, StringPoolEntryInfo >
uint64_t HashBitsNum
 
uint64_t HashMask
 
uint64_t ExtHashMask
 
uint32_t MaxBucketSize
 
uint32_t InitialBucketSize
 
uint32_t NumberOfBuckets
 
std::unique_ptr< Bucket[]> BucketsArray
 
llvm::parallel::PerThreadBumpPtrAllocatorMultiThreadAllocator
 

Detailed Description

Definition at line 50 of file StringPool.h.

Constructor & Destructor Documentation

◆ StringPool() [1/2]

llvm::dwarf_linker::StringPool::StringPool ( )
inline

Definition at line 55 of file StringPool.h.

◆ StringPool() [2/2]

llvm::dwarf_linker::StringPool::StringPool ( size_t  InitialSize)
inline

Definition at line 60 of file StringPool.h.

Member Function Documentation

◆ clear()

void llvm::dwarf_linker::StringPool::clear ( )
inline

◆ getAllocatorRef()

llvm::parallel::PerThreadBumpPtrAllocator & llvm::dwarf_linker::StringPool::getAllocatorRef ( )
inline

Definition at line 65 of file StringPool.h.


The documentation for this class was generated from the following file: