LLVM 23.0.0git
GSIStreamBuilder.cpp
Go to the documentation of this file.
1//===- DbiStreamBuilder.cpp - PDB Dbi Stream Creation -----------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// The data structures defined in this file are based on the reference
10// implementation which is available at
11// https://github.com/Microsoft/microsoft-pdb/blob/master/PDB/dbi/gsi.cpp
12//
13//===----------------------------------------------------------------------===//
14
31#include "llvm/Support/xxhash.h"
32#include <algorithm>
33#include <vector>
34
35using namespace llvm;
36using namespace llvm::msf;
37using namespace llvm::pdb;
38using namespace llvm::codeview;
39
40// Helper class for building the public and global PDB hash table buckets.
42 // Sum of the size of all public or global records.
44
45 std::vector<PSHashRecord> HashRecords;
46
47 // The hash bitmap has `ceil((IPHR_HASH + 1) / 32)` words in it. The
48 // reference implementation builds a hash table with IPHR_HASH buckets in it.
49 // The last bucket is used to link together free hash table cells in a linked
50 // list, but it is always empty in the compressed, on-disk format. However,
51 // the bitmap must have a bit for it.
52 std::array<support::ulittle32_t, (IPHR_HASH + 32) / 32> HashBitmap;
53
54 std::vector<support::ulittle32_t> HashBuckets;
55
58
60 void finalizeGlobalBuckets(uint32_t RecordZeroOffset);
61
62 // Assign public and global symbol records into hash table buckets.
63 // Modifies the list of records to store the bucket index, but does not
64 // change the order.
65 void finalizeBuckets(uint32_t RecordZeroOffset,
67};
68
69// DenseMapInfo implementation for deduplicating symbol records.
71 static inline CVSymbol getEmptyKey() {
72 static CVSymbol Empty;
73 return Empty;
74 }
75 static unsigned getHashValue(const CVSymbol &Val) {
76 return xxh3_64bits(Val.RecordData);
77 }
78 static bool isEqual(const CVSymbol &LHS, const CVSymbol &RHS) {
79 return LHS.RecordData == RHS.RecordData;
80 }
81};
82
83namespace {
85struct PublicSym32Layout {
86 RecordPrefix Prefix;
88 // char Name[];
89};
91} // namespace
92
93// Calculate how much memory this public needs when serialized.
94static uint32_t sizeOfPublic(const BulkPublic &Pub) {
95 uint32_t NameLen = Pub.NameLen;
96 NameLen = std::min(NameLen,
97 uint32_t(MaxRecordLength - sizeof(PublicSym32Layout) - 1));
98 return alignTo(sizeof(PublicSym32Layout) + NameLen + 1, 4);
99}
100
101static CVSymbol serializePublic(uint8_t *Mem, const BulkPublic &Pub) {
102 // Assume the caller has allocated sizeOfPublic bytes.
103 uint32_t NameLen = std::min(
104 Pub.NameLen, uint32_t(MaxRecordLength - sizeof(PublicSym32Layout) - 1));
105 size_t Size = alignTo(sizeof(PublicSym32Layout) + NameLen + 1, 4);
106 assert(Size == sizeOfPublic(Pub));
107 auto *FixedMem = reinterpret_cast<PublicSym32Layout *>(Mem);
108 FixedMem->Prefix.RecordKind = static_cast<uint16_t>(codeview::S_PUB32);
109 FixedMem->Prefix.RecordLen = static_cast<uint16_t>(Size - 2);
110 FixedMem->Pub.Flags = Pub.Flags;
111 FixedMem->Pub.Offset = Pub.Offset;
112 FixedMem->Pub.Segment = Pub.Segment;
113 char *NameMem = reinterpret_cast<char *>(FixedMem + 1);
114 memcpy(NameMem, Pub.Name, NameLen);
115 // Zero the null terminator and remaining bytes.
116 memset(&NameMem[NameLen], 0, Size - sizeof(PublicSym32Layout) - NameLen);
117 return CVSymbol(ArrayRef(Mem, Size));
118}
119
121 uint32_t Size = sizeof(GSIHashHeader);
122 Size += HashRecords.size() * sizeof(PSHashRecord);
123 Size += HashBitmap.size() * sizeof(uint32_t);
124 Size += HashBuckets.size() * sizeof(uint32_t);
125 return Size;
126}
127
129 GSIHashHeader Header;
131 Header.VerHdr = GSIHashHeader::HdrVersion;
132 Header.HrSize = HashRecords.size() * sizeof(PSHashRecord);
133 Header.NumBuckets = HashBitmap.size() * 4 + HashBuckets.size() * 4;
134
135 if (auto EC = Writer.writeObject(Header))
136 return EC;
137
138 if (auto EC = Writer.writeArray(ArrayRef(HashRecords)))
139 return EC;
140 if (auto EC = Writer.writeArray(ArrayRef(HashBitmap)))
141 return EC;
142 if (auto EC = Writer.writeArray(ArrayRef(HashBuckets)))
143 return EC;
144 return Error::success();
145}
146
147static bool isAsciiString(StringRef S) {
148 return llvm::all_of(S, [](char C) { return unsigned(C) < 0x80; });
149}
150
151// See `caseInsensitiveComparePchPchCchCch` in gsi.cpp
153 size_t LS = S1.size();
154 size_t RS = S2.size();
155 // Shorter strings always compare less than longer strings.
156 if (LS != RS)
157 return (LS > RS) - (LS < RS);
158
159 // If either string contains non ascii characters, memcmp them.
161 return memcmp(S1.data(), S2.data(), LS);
162
163 // Both strings are ascii, perform a case-insensitive comparison.
164 return S1.compare_insensitive(S2);
165}
166
167void GSIStreamBuilder::finalizePublicBuckets() {
168 PSH->finalizeBuckets(0, Publics);
169}
170
171void GSIStreamBuilder::finalizeGlobalBuckets(uint32_t RecordZeroOffset) {
172 // Build up a list of globals to be bucketed. Use the BulkPublic data
173 // structure for this purpose, even though these are global records, not
174 // public records. Most of the same fields are required:
175 // - Name
176 // - NameLen
177 // - SymOffset
178 // - BucketIdx
179 // The dead fields are Offset, Segment, and Flags.
180 std::vector<BulkPublic> Records;
181 Records.resize(Globals.size());
182 uint32_t SymOffset = RecordZeroOffset;
183 for (size_t I = 0, E = Globals.size(); I < E; ++I) {
184 StringRef Name = getSymbolName(Globals[I]);
185 Records[I].Name = Name.data();
186 Records[I].NameLen = Name.size();
187 Records[I].SymOffset = SymOffset;
188 SymOffset += Globals[I].length();
189 }
190
191 GSH->finalizeBuckets(RecordZeroOffset, Records);
192}
193
195 uint32_t RecordZeroOffset, MutableArrayRef<BulkPublic> Records) {
196 // Hash every name in parallel.
197 parallelFor(0, Records.size(), [&](size_t I) {
198 Records[I].setBucketIdx(hashStringV1(Records[I].getName()) % IPHR_HASH);
199 });
200
201 // Count up the size of each bucket. Then, use an exclusive prefix sum to
202 // calculate the bucket start offsets. This is C++17 std::exclusive_scan, but
203 // we can't use it yet.
204 uint32_t BucketStarts[IPHR_HASH] = {0};
205 for (const BulkPublic &P : Records)
206 ++BucketStarts[P.BucketIdx];
207 uint32_t Sum = 0;
208 for (uint32_t &B : BucketStarts) {
209 uint32_t Size = B;
210 B = Sum;
211 Sum += Size;
212 }
213
214 // Place globals into the hash table in bucket order. When placing a global,
215 // update the bucket start. Every hash table slot should be filled. Always use
216 // a refcount of one for now.
217 HashRecords.resize(Records.size());
218 uint32_t BucketCursors[IPHR_HASH];
219 memcpy(BucketCursors, BucketStarts, sizeof(BucketCursors));
220 for (int I = 0, E = Records.size(); I < E; ++I) {
221 uint32_t HashIdx = BucketCursors[Records[I].BucketIdx]++;
222 HashRecords[HashIdx].Off = I;
223 HashRecords[HashIdx].CRef = 1;
224 }
225
226 // Within the buckets, sort each bucket by memcmp of the symbol's name. It's
227 // important that we use the same sorting algorithm as is used by the
228 // reference implementation to ensure that the search for a record within a
229 // bucket can properly early-out when it detects the record won't be found.
230 // The algorithm used here corresponds to the function
231 // caseInsensitiveComparePchPchCchCch in the reference implementation.
232 parallelFor(0, IPHR_HASH, [&](size_t I) {
233 auto B = HashRecords.begin() + BucketStarts[I];
234 auto E = HashRecords.begin() + BucketCursors[I];
235 if (B == E)
236 return;
237 auto BucketCmp = [Records](const PSHashRecord &LHash,
238 const PSHashRecord &RHash) {
239 const BulkPublic &L = Records[uint32_t(LHash.Off)];
240 const BulkPublic &R = Records[uint32_t(RHash.Off)];
241 assert(L.BucketIdx == R.BucketIdx);
242 int Cmp = gsiRecordCmp(L.getName(), R.getName());
243 if (Cmp != 0)
244 return Cmp < 0;
245 // This comparison is necessary to make the sorting stable in the presence
246 // of two static globals with the same name. The easiest way to observe
247 // this is with S_LDATA32 records.
248 return L.SymOffset < R.SymOffset;
249 };
250 llvm::sort(B, E, BucketCmp);
251
252 // After we are done sorting, replace the global indices with the stream
253 // offsets of each global. Add one when writing symbol offsets to disk.
254 // See GSI1::fixSymRecs.
255 for (PSHashRecord &HRec : make_range(B, E))
256 HRec.Off = Records[uint32_t(HRec.Off)].SymOffset + 1;
257 });
258
259 // For each non-empty bucket, push the bucket start offset into HashBuckets
260 // and set a bit in the hash bitmap.
261 for (uint32_t I = 0; I < HashBitmap.size(); ++I) {
262 uint32_t Word = 0;
263 for (uint32_t J = 0; J < 32; ++J) {
264 // Skip empty buckets.
265 uint32_t BucketIdx = I * 32 + J;
266 if (BucketIdx >= IPHR_HASH ||
267 BucketStarts[BucketIdx] == BucketCursors[BucketIdx])
268 continue;
269 Word |= (1U << J);
270
271 // Calculate what the offset of the first hash record in the chain would
272 // be if it were inflated to contain 32-bit pointers. On a 32-bit system,
273 // each record would be 12 bytes. See HROffsetCalc in gsi.h.
274 const int SizeOfHROffsetCalc = 12;
275 ulittle32_t ChainStartOff =
276 ulittle32_t(BucketStarts[BucketIdx] * SizeOfHROffsetCalc);
277 HashBuckets.push_back(ChainStartOff);
278 }
279 HashBitmap[I] = Word;
280 }
281}
282
284 : Msf(Msf), PSH(std::make_unique<GSIHashStreamBuilder>()),
285 GSH(std::make_unique<GSIHashStreamBuilder>()) {}
286
288
289uint32_t GSIStreamBuilder::calculatePublicsHashStreamSize() const {
290 uint32_t Size = 0;
291 Size += sizeof(PublicsStreamHeader);
292 Size += PSH->calculateSerializedLength();
293 Size += Publics.size() * sizeof(uint32_t); // AddrMap
294 // FIXME: Add thunk map and section offsets for incremental linking.
295
296 return Size;
297}
298
299uint32_t GSIStreamBuilder::calculateGlobalsHashStreamSize() const {
300 return GSH->calculateSerializedLength();
301}
302
304 // First we write public symbol records, then we write global symbol records.
305 finalizePublicBuckets();
306 finalizeGlobalBuckets(PSH->RecordByteSize);
307
308 Expected<uint32_t> Idx = Msf.addStream(calculateGlobalsHashStreamSize());
309 if (!Idx)
310 return Idx.takeError();
311 GlobalsStreamIndex = *Idx;
312
313 Idx = Msf.addStream(calculatePublicsHashStreamSize());
314 if (!Idx)
315 return Idx.takeError();
316 PublicsStreamIndex = *Idx;
317
318 uint64_t RecordBytes = PSH->RecordByteSize + GSH->RecordByteSize;
319 if (RecordBytes > UINT32_MAX)
321 formatv("the public symbols ({0} bytes) and global symbols ({1} bytes) "
322 "are too large to fit in a PDB file; "
323 "the maximum total is {2} bytes.",
324 PSH->RecordByteSize, GSH->RecordByteSize, UINT32_MAX),
326
327 Idx = Msf.addStream(RecordBytes);
328 if (!Idx)
329 return Idx.takeError();
330 RecordStreamIndex = *Idx;
331 return Error::success();
332}
333
334void GSIStreamBuilder::addPublicSymbols(std::vector<BulkPublic> &&PublicsIn) {
335 assert(Publics.empty() && PSH->RecordByteSize == 0 &&
336 "publics can only be added once");
337 Publics = std::move(PublicsIn);
338
339 // Sort the symbols by name. PDBs contain lots of symbols, so use parallelism.
340 parallelSort(Publics, [](const BulkPublic &L, const BulkPublic &R) {
341 return L.getName() < R.getName();
342 });
343
344 // Assign offsets and calculate the length of the public symbol records.
345 uint32_t SymOffset = 0;
346 for (BulkPublic &Pub : Publics) {
347 Pub.SymOffset = SymOffset;
348 SymOffset += sizeOfPublic(Pub);
349 }
350
351 // Remember the length of the public stream records.
352 PSH->RecordByteSize = SymOffset;
353}
354
356 serializeAndAddGlobal(Sym);
357}
358
360 serializeAndAddGlobal(Sym);
361}
362
364 serializeAndAddGlobal(Sym);
365}
366
367template <typename T>
368void GSIStreamBuilder::serializeAndAddGlobal(const T &Symbol) {
369 T Copy(Symbol);
372}
373
375 // Ignore duplicate typedefs and constants.
376 if (Symbol.kind() == S_UDT || Symbol.kind() == S_CONSTANT) {
377 auto Iter = GlobalsSeen.insert(Symbol);
378 if (!Iter.second)
379 return;
380 }
381 GSH->RecordByteSize += Symbol.length();
382 Globals.push_back(Symbol);
383}
384
385// Serialize each public and write it.
387 ArrayRef<BulkPublic> Publics) {
388 std::vector<uint8_t> Storage;
389 for (const BulkPublic &Pub : Publics) {
390 Storage.resize(sizeOfPublic(Pub));
391 serializePublic(Storage.data(), Pub);
392 if (Error E = Writer.writeBytes(Storage))
393 return E;
394 }
395 return Error::success();
396}
397
399 ArrayRef<CVSymbol> Records) {
401 ItemStream.setItems(Records);
402 BinaryStreamRef RecordsRef(ItemStream);
403 return Writer.writeStreamRef(RecordsRef);
404}
405
406Error GSIStreamBuilder::commitSymbolRecordStream(
407 WritableBinaryStreamRef Stream) {
408 BinaryStreamWriter Writer(Stream);
409
410 // Write public symbol records first, followed by global symbol records. This
411 // must match the order that we assume in finalizeMsfLayout when computing
412 // PSHZero and GSHZero.
413 if (auto EC = writePublics(Writer, Publics))
414 return EC;
415 if (auto EC = writeRecords(Writer, Globals))
416 return EC;
417
418 return Error::success();
419}
420
421static std::vector<support::ulittle32_t>
423 // Build a parallel vector of indices into the Publics vector, and sort it by
424 // address.
425 std::vector<ulittle32_t> PubAddrMap;
426 PubAddrMap.reserve(Publics.size());
427 for (int I = 0, E = Publics.size(); I < E; ++I)
428 PubAddrMap.push_back(ulittle32_t(I));
429
430 auto AddrCmp = [Publics](const ulittle32_t &LIdx, const ulittle32_t &RIdx) {
431 const BulkPublic &L = Publics[LIdx];
432 const BulkPublic &R = Publics[RIdx];
433 if (L.Segment != R.Segment)
434 return L.Segment < R.Segment;
435 if (L.Offset != R.Offset)
436 return L.Offset < R.Offset;
437 // parallelSort is unstable, so we have to do name comparison to ensure
438 // that two names for the same location come out in a deterministic order.
439 return L.getName() < R.getName();
440 };
441 parallelSort(PubAddrMap, AddrCmp);
442
443 // Rewrite the public symbol indices into symbol offsets.
444 for (ulittle32_t &Entry : PubAddrMap)
445 Entry = Publics[Entry].SymOffset;
446 return PubAddrMap;
447}
448
449Error GSIStreamBuilder::commitPublicsHashStream(
450 WritableBinaryStreamRef Stream) {
451 BinaryStreamWriter Writer(Stream);
452 PublicsStreamHeader Header;
453
454 // FIXME: Fill these in. They are for incremental linking.
455 Header.SymHash = PSH->calculateSerializedLength();
456 Header.AddrMap = Publics.size() * 4;
457 Header.NumThunks = 0;
458 Header.SizeOfThunk = 0;
459 Header.ISectThunkTable = 0;
460 memset(Header.Padding, 0, sizeof(Header.Padding));
461 Header.OffThunkTable = 0;
462 Header.NumSections = 0;
463 if (auto EC = Writer.writeObject(Header))
464 return EC;
465
466 if (auto EC = PSH->commit(Writer))
467 return EC;
468
469 std::vector<support::ulittle32_t> PubAddrMap = computeAddrMap(Publics);
470 assert(PubAddrMap.size() == Publics.size());
471 if (auto EC = Writer.writeArray(ArrayRef(PubAddrMap)))
472 return EC;
473
474 return Error::success();
475}
476
477Error GSIStreamBuilder::commitGlobalsHashStream(
478 WritableBinaryStreamRef Stream) {
479 BinaryStreamWriter Writer(Stream);
480 return GSH->commit(Writer);
481}
482
485 llvm::TimeTraceScope timeScope("Commit GSI stream");
487 Layout, Buffer, getGlobalsStreamIndex(), Msf.getAllocator());
489 Layout, Buffer, getPublicsStreamIndex(), Msf.getAllocator());
491 Layout, Buffer, getRecordStreamIndex(), Msf.getAllocator());
492
493 if (auto EC = commitSymbolRecordStream(*PRS))
494 return EC;
495 if (auto EC = commitGlobalsHashStream(*GS))
496 return EC;
497 if (auto EC = commitPublicsHashStream(*PS))
498 return EC;
499 return Error::success();
500}
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
constexpr LLT S1
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
#define LLVM_UNLIKELY(EXPR)
Definition Compiler.h:336
#define LLVM_PACKED_END
Definition Compiler.h:555
#define LLVM_PACKED_START
Definition Compiler.h:554
static CVSymbol serializePublic(uint8_t *Mem, const BulkPublic &Pub)
static Error writePublics(BinaryStreamWriter &Writer, ArrayRef< BulkPublic > Publics)
static bool isAsciiString(StringRef S)
static Error writeRecords(BinaryStreamWriter &Writer, ArrayRef< CVSymbol > Records)
static int gsiRecordCmp(StringRef S1, StringRef S2)
static std::vector< support::ulittle32_t > computeAddrMap(ArrayRef< BulkPublic > Publics)
static uint32_t sizeOfPublic(const BulkPublic &Pub)
#define I(x, y, z)
Definition MD5.cpp:57
#define T
#define P(N)
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:40
BinaryItemStream represents a sequence of objects stored in some kind of external container but for w...
void setItems(ArrayRef< T > ItemArray)
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Provides write only access to a subclass of WritableBinaryStream.
Error writeArray(ArrayRef< T > Array)
Writes an array of objects of type T to the underlying stream, as if by using memcpy.
LLVM_ABI Error writeStreamRef(BinaryStreamRef Ref)
Efficiently reads all data from Ref, and writes it to this stream.
LLVM_ABI Error writeBytes(ArrayRef< uint8_t > Buffer)
Write the bytes specified in Buffer to the underlying stream.
Error writeObject(const T &Obj)
Writes the object Obj to the underlying stream, as if by using memcpy.
Lightweight error class with error context and mandatory checking.
Definition Error.h:159
static ErrorSuccess success()
Create a success value.
Definition Error.h:336
Tagged union holding either a T or a Error.
Definition Error.h:485
Error takeError()
Take ownership of the stored error.
Definition Error.h:612
Represent a mutable reference to an array (0 or more elements consecutively in memory),...
Definition ArrayRef.h:294
void resize(size_type N)
Represent a constant reference to a string, i.e.
Definition StringRef.h:56
constexpr size_t size() const
Get the string size.
Definition StringRef.h:144
constexpr const char * data() const
Get a pointer to the start of the string (which may not be null terminated).
Definition StringRef.h:138
The TimeTraceScope is a helper class to call the begin and end functions of the time trace profiler.
ArrayRef< uint8_t > RecordData
Definition CVRecord.h:60
static CVSymbol writeOneSymbol(SymType &Sym, BumpPtrAllocator &Storage, CodeViewContainer Container)
BumpPtrAllocator & getAllocator()
Definition MSFBuilder.h:122
static std::unique_ptr< WritableMappedBlockStream > createIndexedStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData, uint32_t StreamIndex, BumpPtrAllocator &Allocator)
LLVM_ABI void addPublicSymbols(std::vector< BulkPublic > &&PublicsIn)
uint32_t getRecordStreamIndex() const
LLVM_ABI Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer)
LLVM_ABI GSIStreamBuilder(msf::MSFBuilder &Msf)
LLVM_ABI void addGlobalSymbol(const codeview::ProcRefSym &Sym)
uint32_t getPublicsStreamIndex() const
uint32_t getGlobalsStreamIndex() const
@ C
The default llvm calling convention, compatible with C.
Definition CallingConv.h:34
llvm::SmallVector< std::shared_ptr< RecordsSlice >, 4 > Records
CVRecord< SymbolKind > CVSymbol
Definition CVRecord.h:65
LLVM_ABI StringRef getSymbolName(CVSymbol Sym)
detail::packed_endian_specific_integral< uint32_t, llvm::endianness::little, unaligned > ulittle32_t
Definition Endian.h:290
This is an optimization pass for GlobalISel generic memory operations.
bool all_of(R &&range, UnaryPredicate P)
Provide wrappers to std::all_of which take ranges instead of having to pass begin/end explicitly.
Definition STLExtras.h:1738
uint64_t xxh3_64bits(ArrayRef< uint8_t > data)
Inline ArrayRef overloads of the xxhash entry points declared out-of-line in llvm/Support/xxhash....
Definition ArrayRef.h:558
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
Definition Error.cpp:94
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)
void parallelSort(RandomAccessIterator Start, RandomAccessIterator End, const Comparator &Comp=Comparator())
Definition Parallel.h:214
void sort(IteratorTy Start, IteratorTy End)
Definition STLExtras.h:1635
constexpr uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition Alignment.h:144
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
Definition Error.h:340
ArrayRef(const T &OneElt) -> ArrayRef< T >
LLVM_ABI void parallelFor(size_t Begin, size_t End, function_ref< void(size_t)> Fn)
Definition Parallel.cpp:268
Implement std::hash so that hash_code can be used in STL containers.
Definition BitVector.h:861
This struct is equivalent to codeview::PublicSym32, but it has been optimized for size to speed up bu...
Header of the hash tables found in the globals and publics sections.
Definition RawTypes.h:28
support::ulittle32_t VerSignature
Definition RawTypes.h:33
std::vector< support::ulittle32_t > HashBuckets
Error commit(BinaryStreamWriter &Writer)
std::array< support::ulittle32_t,(IPHR_HASH+32)/32 > HashBitmap
void finalizeGlobalBuckets(uint32_t RecordZeroOffset)
std::vector< PSHashRecord > HashRecords
void finalizeBuckets(uint32_t RecordZeroOffset, MutableArrayRef< BulkPublic > Globals)
support::ulittle32_t Off
Definition RawTypes.h:41
static unsigned getHashValue(const CVSymbol &Val)
static bool isEqual(const CVSymbol &LHS, const CVSymbol &RHS)