9#ifndef LLVM_DEBUGINFO_PDB_NATIVE_GSISTREAMBUILDER_H
10#define LLVM_DEBUGINFO_PDB_NATIVE_GSISTREAMBUILDER_H
26template <
typename T>
struct BinaryItemTraits;
42struct GSIHashStreamBuilder;
44struct SymbolDenseMapInfo;
75 void finalizePublicBuckets();
76 void finalizeGlobalBuckets(
uint32_t RecordZeroOffset);
78 template <
typename T>
void serializeAndAddGlobal(
const T &Symbol);
80 uint32_t calculatePublicsHashStreamSize()
const;
81 uint32_t calculateGlobalsHashStreamSize()
const;
90 std::unique_ptr<GSIHashStreamBuilder> PSH;
91 std::unique_ptr<GSIHashStreamBuilder> GSH;
95 std::vector<BulkPublic> Publics;
98 std::vector<codeview::CVSymbol> Globals;
128 static_assert(
IPHR_HASH <= 1 << 12,
"bitfield too small");
143static_assert(
sizeof(BulkPublic) <= 24,
"unexpected size increase");
144static_assert(std::is_trivially_copyable<BulkPublic>::value,
145 "should be trivial");
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
This file defines the DenseSet and SmallDenseSet classes.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
size_t size() const
size - Get the array size.
Implements a dense probed hash-table based set.
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
ArrayRef< uint8_t > RecordData
void addPublicSymbols(std::vector< BulkPublic > &&PublicsIn)
Error finalizeMsfLayout()
uint32_t getRecordStreamIndex() const
GSIStreamBuilder(const GSIStreamBuilder &)=delete
Error commit(const msf::MSFLayout &Layout, WritableBinaryStreamRef Buffer)
void addGlobalSymbol(const codeview::ProcRefSym &Sym)
GSIStreamBuilder & operator=(const GSIStreamBuilder &)=delete
uint32_t getPublicsStreamIndex() const
uint32_t getGlobalsStreamIndex() const
PublicSymFlags
Corresponds to the CV_PUBSYMFLAGS bitfield.
const uint16_t kInvalidStreamIndex
This is an optimization pass for GlobalISel generic memory operations.
static size_t length(const codeview::CVSymbol &Item)
static ArrayRef< uint8_t > bytes(const codeview::CVSymbol &Item)
This struct is equivalent to codeview::PublicSym32, but it has been optimized for size to speed up bu...
StringRef getName() const
void setFlags(codeview::PublicSymFlags F)
void setBucketIdx(uint16_t B)