9#ifndef LLVM_MC_STRINGTABLEBUILDER_H
10#define LLVM_MC_STRINGTABLEBUILDER_H
44 bool Finalized =
false;
46 void finalizeStringTable(
bool Optimize);
This file defines CachedHashString and CachedHashStringRef.
This file defines the DenseMap class.
A container which contains a StringRef plus a precomputed hash.
size_type count(const_arg_type_t< KeyT > Val) const
Return 1 if the specified key is in the map, 0 otherwise.
StringRef - Represent a constant reference to a string, i.e.
Utility for building string tables with deduplicated suffixes.
void finalizeInOrder()
Finalize the string table without reording it.
size_t getOffset(CachedHashStringRef S) const
Get the offest of a string in the string table.
bool contains(StringRef S) const
Check if a string is contained in the string table.
bool contains(CachedHashStringRef S) const
size_t getOffset(StringRef S) const
void write(raw_ostream &OS) const
size_t add(CachedHashStringRef S)
Add a string to the builder.
void finalize()
Analyze the strings and build the final table.
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
This struct is a compact representation of a valid (non-zero power of two) alignment.