LLVM: llvm::remarks::StringTable Struct Reference (original) (raw)

The string table used for serializing remarks. More...

#include "[llvm/Remarks/RemarkStringTable.h](RemarkStringTable%5F8h%5Fsource.html)"

Public Member Functions
StringTable ()=default
StringTable (const StringTable &)=delete
Disable copy.
StringTable & operator= (const StringTable &)=delete
StringTable (StringTable &&)=default
Should be movable.
StringTable & operator= (StringTable &&)=default
LLVM_ABI StringTable (const ParsedStringTable &Other)
Construct a string table from a ParsedStringTable.
LLVM_ABI std::pair< unsigned, StringRef > add (StringRef Str)
Add a string to the table. It returns an unique ID of the string.
LLVM_ABI void internalize (Remark &R)
Modify R to use strings from this string table.
LLVM_ABI void serialize (raw_ostream &OS) const
Serialize the string table to a stream.
LLVM_ABI std::vector< StringRef > serialize () const
Serialize the string table to a vector.
Public Attributes
StringMap< unsigned, BumpPtrAllocator > StrTab
The string table containing all the unique strings used in the output.
size_t SerializedSize = 0
Total size of the string table when serialized.

The string table used for serializing remarks.

This table can be for example serialized in a section to be consumed after the compilation.

Definition at line 37 of file RemarkStringTable.h.

llvm::remarks::StringTable::StringTable ( ) default

Referenced by operator=(), operator=(), StringTable(), and StringTable().

StringTable() [2/4]

Disable copy.

References StringTable().

StringTable() [3/4]

llvm::remarks::StringTable::StringTable ( StringTable && ) default

Should be movable.

References StringTable().

StringTable() [4/4]

add()

internalize()

void StringTable::internalize ( Remark & R )

operator=() [1/2]

References StringTable().

operator=() [2/2]

serialize() [1/2]

std::vector< StringRef > StringTable::serialize ( ) const

Serialize the string table to a vector.

This allows users to do the actual writing to file/memory/other. The string with the ID == N should be the N-th element in the vector.

Definition at line 65 of file RemarkStringTable.cpp.

References StrTab.

serialize() [2/2]

SerializedSize

size_t llvm::remarks::StringTable::SerializedSize = 0

StrTab


The documentation for this struct was generated from the following files: