Go to the documentation of this file.
28 : RecordStorage(Storage) {}
46 return CVType(SeenRecords[Index.toArrayIndex()]);
54 if (Index.isSimple() || Index.isNoneType())
57 return Index.toArrayIndex() < SeenRecords.size();
81 SeenRecords.push_back(
Record);
89 assert(!Fragments.empty());
90 for (
auto C : Fragments)
97 assert(Index.toArrayIndex() < SeenRecords.size() &&
98 "This function cannot be used to insert records!");
103 SeenRecords[Index.toArrayIndex()] =
Record;
~AppendingTypeTableBuilder()
This is an optimization pass for GlobalISel generic memory operations.
static const uint32_t FirstNonSimpleIndex
static TypeIndex fromArrayIndex(uint32_t Index)
Optional< TypeIndex > getFirst() override
bool replaceType(TypeIndex &Index, CVType Data, bool Stabilize) override
ArrayRef< ArrayRef< uint8_t > > records() const
TypeIndex nextTypeIndex() const
bool contains(TypeIndex Index) override
(vector float) vec_cmpeq(*A, *B) C
StringRef getTypeName(TypeIndex Index) override
Allocate memory in an ever growing pool, as if by bump-pointer.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
<%struct.s * > cast struct s *S to sbyte *< sbyte * > sbyte uint cast struct s *agg result to sbyte *< sbyte * > sbyte uint cast struct s *memtmp to sbyte *< sbyte * > sbyte uint ret void llc ends up issuing two memcpy or custom lower memcpy(of small size) to be ldmia/stmia. I think option 2 is better but the current register allocator cannot allocate a chunk of registers at a time. A feasible temporary solution is to use specific physical registers at the lowering time for small(<
CVType getType(TypeIndex Index) override
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
StringRef - Represent a constant reference to a string, i.e.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static ArrayRef< uint8_t > stabilize(BumpPtrAllocator &RecordStorage, ArrayRef< uint8_t > Record)
uint32_t capacity() override
LLVM_ATTRIBUTE_RETURNS_NONNULL void * Allocate(size_t Size, Align Alignment)
Allocate space at the specified alignment.
TypeIndex insertRecordBytes(ArrayRef< uint8_t > &Record)
TypeIndex insertRecord(ContinuationRecordBuilder &Builder)
AppendingTypeTableBuilder(BumpPtrAllocator &Storage)
Optional< TypeIndex > getNext(TypeIndex Prev) override
CVRecord< TypeLeafKind > CVType