28 : RecordStorage(Storage) {}
57 return Index.toArrayIndex() < SeenRecords.size();
81 SeenRecords.push_back(
Record);
89 assert(!Fragments.empty());
90 for (
auto C : Fragments)
98 "This function cannot be used to insert records!");
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.