9#ifndef LLVM_MC_STRINGTABLEBUILDER_H
10#define LLVM_MC_STRINGTABLEBUILDER_H
47 bool Finalized =
false;
49 void finalizeStringTable(
bool Optimize);
88 bool empty()
const {
return StringIndexMap.empty(); }
This file defines CachedHashString and CachedHashStringRef.
This file defines the DenseMap class.
A container which contains a StringRef plus a precomputed hash.
StringRef - Represent a constant reference to a string, i.e.
LLVM_ABI void finalizeInOrder()
Finalize the string table without reording it.
LLVM_ABI size_t getOffset(CachedHashStringRef S) const
Get the offest of a string in the string table.
LLVM_ABI ~StringTableBuilder()
bool contains(StringRef S) const
Check if a string is contained in the string table.
LLVM_ABI size_t add(CachedHashStringRef S, uint8_t Priority=0)
Add a string to the builder.
size_t add(StringRef S, uint8_t Priority=0)
bool contains(CachedHashStringRef S) const
size_t getOffset(StringRef S) const
LLVM_ABI void write(raw_ostream &OS) const
LLVM_ABI void finalize()
Analyze the strings and build the final table.
LLVM_ABI StringTableBuilder(Kind K, Align Alignment=Align(1))
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.