LLVM: include/llvm/DWARFLinker/StringPool.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_DWARFLINKER_STRINGPOOL_H
10#define LLVM_DWARFLINKER_STRINGPOOL_H
11
16#include <string_view>
17
18namespace llvm {
19namespace dwarf_linker {
20
21
22
24
26public:
27
30 }
31
32
35 }
36
37
39 return KeyData.getKey();
40 }
41
42
47 }
48};
49
52 llvm::parallel::PerThreadBumpPtrAllocator,
53 StringPoolEntryInfo> {
54public:
57 llvm::parallel::PerThreadBumpPtrAllocator,
59
62 llvm::parallel::PerThreadBumpPtrAllocator,
64
66 return Allocator;
67 }
68
69 void clear() { Allocator.Reset(); }
70
71private:
73};
74
75}
76}
77
78#endif
This file defines the BumpPtrAllocator interface.
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
static StringMapEntry * create(StringRef key, AllocatorTy &allocator, InitTy &&...initVals)
Create a StringMapEntry for the specified key construct the value using InitiVals.
StringRef - Represent a constant reference to a string, i.e.
static uint64_t getHashValue(const StringRef &Key)
static StringEntry * create(const StringRef &Key, llvm::parallel::PerThreadBumpPtrAllocator &Allocator)
static bool isEqual(const StringRef &LHS, const StringRef &RHS)
static StringRef getKey(const StringEntry &KeyData)
llvm::parallel::PerThreadBumpPtrAllocator & getAllocatorRef()
StringPool(size_t InitialSize)
PerThreadAllocator< BumpPtrAllocator > PerThreadBumpPtrAllocator
This is an optimization pass for GlobalISel generic memory operations.
uint64_t xxh3_64bits(ArrayRef< uint8_t > data)