Lines Matching refs:Record
149 case llvm::BitstreamEntry::Record: in GlobalModuleIndex()
168 SmallVector<uint64_t, 64> Record; in GlobalModuleIndex() local
170 switch ((IndexRecordTypes)Cursor.readRecord(Entry.ID, Record, &Blob)) { in GlobalModuleIndex()
173 if (Record.size() < 1 || Record[0] != CurrentVersion) in GlobalModuleIndex()
179 unsigned ID = Record[Idx++]; in GlobalModuleIndex()
189 Modules[ID].Size = Record[Idx++]; in GlobalModuleIndex()
190 Modules[ID].ModTime = Record[Idx++]; in GlobalModuleIndex()
193 unsigned NameLen = Record[Idx++]; in GlobalModuleIndex()
194 Modules[ID].FileName.assign(Record.begin() + Idx, in GlobalModuleIndex()
195 Record.begin() + Idx + NameLen); in GlobalModuleIndex()
199 unsigned NumDeps = Record[Idx++]; in GlobalModuleIndex()
201 Record.begin() + Idx, in GlobalModuleIndex()
202 Record.begin() + Idx + NumDeps); in GlobalModuleIndex()
206 assert(Idx == Record.size() && "More module info?"); in GlobalModuleIndex()
220 if (Record[0]) { in GlobalModuleIndex()
222 (const unsigned char *)Blob.data() + Record[0], in GlobalModuleIndex()
451 SmallVectorImpl<uint64_t> &Record) { in emitBlockID() argument
452 Record.clear(); in emitBlockID()
453 Record.push_back(ID); in emitBlockID()
454 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); in emitBlockID()
458 Record.clear(); in emitBlockID()
460 Record.push_back(*Name++); in emitBlockID()
461 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, Record); in emitBlockID()
466 SmallVectorImpl<uint64_t> &Record) { in emitRecordID() argument
467 Record.clear(); in emitRecordID()
468 Record.push_back(ID); in emitRecordID()
470 Record.push_back(*Name++); in emitRecordID()
471 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETRECORDNAME, Record); in emitRecordID()
476 SmallVector<uint64_t, 64> Record; in emitBlockInfoBlock() local
479 #define BLOCK(X) emitBlockID(X ## _ID, #X, Stream, Record) in emitBlockInfoBlock()
480 #define RECORD(X) emitRecordID(X, #X, Stream, Record) in emitBlockInfoBlock()
545 case llvm::BitstreamEntry::Record: in loadModuleFile()
594 SmallVector<uint64_t, 64> Record; in loadModuleFile() local
596 unsigned Code = InStream.readRecord(Entry.ID, Record, &Blob); in loadModuleFile()
601 unsigned Idx = 0, N = Record.size(); in loadModuleFile()
612 off_t StoredSize = (off_t)Record[Idx++]; in loadModuleFile()
613 time_t StoredModTime = (time_t)Record[Idx++]; in loadModuleFile()
618 {{(uint32_t)Record[Idx++], (uint32_t)Record[Idx++], in loadModuleFile()
619 (uint32_t)Record[Idx++], (uint32_t)Record[Idx++], in loadModuleFile()
620 (uint32_t)Record[Idx++]}}}; in loadModuleFile()
624 Idx += Record[Idx] + 1; in loadModuleFile()
627 unsigned Length = Record[Idx++]; in loadModuleFile()
628 SmallString<128> ImportedFile(Record.begin() + Idx, in loadModuleFile()
629 Record.begin() + Idx + Length); in loadModuleFile()
655 if (State == ASTBlock && Code == IDENTIFIER_TABLE && Record[0] > 0) { in loadModuleFile()
660 (const unsigned char *)Blob.data() + Record[0], in loadModuleFile()
677 {{(uint32_t)Record[0], (uint32_t)Record[1], (uint32_t)Record[2], in loadModuleFile()
678 (uint32_t)Record[3], (uint32_t)Record[4]}}}; in loadModuleFile()
757 SmallVector<uint64_t, 2> Record; in writeIndex() local
758 Record.push_back(CurrentVersion); in writeIndex()
759 Stream.EmitRecord(INDEX_METADATA, Record); in writeIndex()
765 Record.clear(); in writeIndex()
766 Record.push_back(M->second.ID); in writeIndex()
767 Record.push_back(M->first->getSize()); in writeIndex()
768 Record.push_back(M->first->getModificationTime()); in writeIndex()
772 Record.push_back(Name.size()); in writeIndex()
773 Record.append(Name.begin(), Name.end()); in writeIndex()
776 Record.push_back(M->second.Dependencies.size()); in writeIndex()
777 Record.append(M->second.Dependencies.begin(), M->second.Dependencies.end()); in writeIndex()
778 Stream.EmitRecord(MODULE, Record); in writeIndex()
812 uint64_t Record[] = {IDENTIFIER_INDEX, BucketOffset}; in writeIndex() local
813 Stream.EmitRecordWithBlob(IDTableAbbrev, Record, IdentifierTable); in writeIndex()