9#ifndef LLVM_TABLEGEN_STRINGTOOFFSETTABLE_H
10#define LLVM_TABLEGEN_STRINGTOOFFSETTABLE_H
25 std::string AggregateString;
30 const bool AppendZero;
34 : ClassPrefix(ClassPrefix), AppendZero(AppendZero) {
41 size_t size()
const {
return AggregateString.size(); }
48 auto II = StringOffset.
find(Str);
49 if (
II == StringOffset.
end())
This file defines the StringMap class.
uint64_t IntrinsicInst * II
This file defines the SmallString class.
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
iterator find(StringRef Key)
StringRef - Represent a constant reference to a string, i.e.
StringToOffsetTable - This class uniques a bunch of nul-terminated strings and keeps track of their o...
unsigned GetOrAddStringOffset(StringRef Str)
void EmitStringTableDef(raw_ostream &OS, const Twine &Name) const
void EmitString(raw_ostream &O) const
StringToOffsetTable(bool AppendZero=true, StringRef ClassPrefix="")
std::optional< unsigned > GetStringOffset(StringRef Str) const
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
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.