27 : RecordStorage(Storage) {}
45 return CVType(SeenRecords[Index.toArrayIndex()]);
53 if (Index.isSimple() || Index.isNoneType())
56 return Index.toArrayIndex() < SeenRecords.size();
80 SeenRecords.push_back(
Record);
88 assert(!Fragments.empty());
89 for (
auto C : Fragments)
96 assert(Index.toArrayIndex() < SeenRecords.size() &&
97 "This function cannot be used to insert records!");
102 SeenRecords[Index.toArrayIndex()] =
Record;
This file defines the BumpPtrAllocator interface.
static ArrayRef< uint8_t > stabilize(BumpPtrAllocator &RecordStorage, ArrayRef< uint8_t > Record)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Allocate memory in an ever growing pool, as if by bump-pointer.
LLVM_ATTRIBUTE_RETURNS_NONNULL void * Allocate(size_t Size, Align Alignment)
Allocate space at the specified alignment.
StringRef - Represent a constant reference to a string, i.e.
~AppendingTypeTableBuilder()
TypeIndex insertRecord(ContinuationRecordBuilder &Builder)
uint32_t capacity() override
std::optional< TypeIndex > getFirst() override
TypeIndex nextTypeIndex() const
CVType getType(TypeIndex Index) override
std::optional< TypeIndex > getNext(TypeIndex Prev) override
TypeIndex insertRecordBytes(ArrayRef< uint8_t > &Record)
bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override
bool contains(TypeIndex Index) override
StringRef getTypeName(TypeIndex Index) override
ArrayRef< ArrayRef< uint8_t > > records() const
AppendingTypeTableBuilder(BumpPtrAllocator &Storage)
std::vector< CVType > end(TypeIndex Index)
static TypeIndex fromArrayIndex(uint32_t Index)
static const uint32_t FirstNonSimpleIndex
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
CVRecord< TypeLeafKind > CVType
This is an optimization pass for GlobalISel generic memory operations.