| 483 | LazyTypeTable(MLIRContext &context) : context(context) {} |
| 484 | |
| 485 | void initialize(ArrayRef<uint8_t> payloadData, ArrayRef<uint32_t> indices, |
| 486 | const BytecodeVersion &version) { |
| 487 | payload = payloadData; |
| 488 | typeStartIndices = indices; |
| 489 | typeCache.resize(indices.size()); |
| 490 | fileVersion = version; |
| 491 | } |
| 492 | |
| 493 | Type getType(uint64_t typeIndex) { |
| 494 | if (typeIndex >= typeCache.size()) |
no test coverage detected