Lines Matching refs:Stream
616 llvm::BitstreamWriter &Stream,
620 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record);
627 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, Record);
631 llvm::BitstreamWriter &Stream,
637 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETRECORDNAME, Record);
640 static void AddStmtsExprs(llvm::BitstreamWriter &Stream,
642 #define RECORD(X) EmitRecordID(X, #X, Stream, Record)
748 Stream.EnterSubblock(llvm::bitc::BLOCKINFO_BLOCK_ID, 3);
750 #define BLOCK(X) EmitBlockID(X ## _ID, #X, Stream, Record)
751 #define RECORD(X) EmitRecordID(X, #X, Stream, Record)
910 AddStmtsExprs(Stream, Record);
919 Stream.ExitBlock();
973 unsigned MetaAbbrevCode = Stream.EmitAbbrev(MetaAbbrev);
983 Stream.EmitRecordWithBlob(MetaAbbrevCode, Record, Triple);
1003 Stream.EmitRecord(IMPORTS, Record);
1012 unsigned FileAbbrevCode = Stream.EmitAbbrev(FileAbbrev);
1023 Stream.EmitRecordWithBlob(FileAbbrevCode, Record, MainFileNameStr);
1027 Stream.EmitRecord(ORIGINAL_FILE_ID, Record);
1035 unsigned AbbrevCode = Stream.EmitAbbrev(Abbrev);
1044 Stream.EmitRecordWithBlob(AbbrevCode, Record, origDir);
1051 unsigned RepoAbbrevCode = Stream.EmitAbbrev(RepoAbbrev);
1054 Stream.EmitRecordWithBlob(RepoAbbrevCode, Record,
1066 Stream.EmitRecord(LANGUAGE_OPTIONS, Record);
1147 unsigned StatCacheAbbrev = Stream.EmitAbbrev(Abbrev);
1154 Stream.EmitRecordWithBlob(StatCacheAbbrev, Record, StatCacheData.str());
1163 static unsigned CreateSLocFileAbbrev(llvm::BitstreamWriter &Stream) {
1176 return Stream.EmitAbbrev(Abbrev);
1181 static unsigned CreateSLocBufferAbbrev(llvm::BitstreamWriter &Stream) {
1190 return Stream.EmitAbbrev(Abbrev);
1195 static unsigned CreateSLocBufferBlobAbbrev(llvm::BitstreamWriter &Stream) {
1200 return Stream.EmitAbbrev(Abbrev);
1205 static unsigned CreateSLocExpansionAbbrev(llvm::BitstreamWriter &Stream) {
1214 return Stream.EmitAbbrev(Abbrev);
1360 unsigned TableAbbrev = Stream.EmitAbbrev(Abbrev);
1369 Stream.EmitRecordWithBlob(TableAbbrev, Record, TableData.str());
1390 Stream.EnterSubblock(SOURCE_MANAGER_BLOCK_ID, 3);
1393 unsigned SLocFileAbbrv = CreateSLocFileAbbrev(Stream);
1394 unsigned SLocBufferAbbrv = CreateSLocBufferAbbrev(Stream);
1395 unsigned SLocBufferBlobAbbrv = CreateSLocBufferBlobAbbrev(Stream);
1396 unsigned SLocExpansionAbbrv = CreateSLocExpansionAbbrev(Stream);
1412 SLocEntryOffsets.push_back(Stream.GetCurrentBitNo());
1419 SLocFileEntryOffsets.push_back(Stream.GetCurrentBitNo());
1463 Stream.EmitRecordWithBlob(SLocFileAbbrv, Record, Filename);
1474 Stream.EmitRecordWithBlob(SLocBufferAbbrv, Record,
1478 Stream.EmitRecordWithBlob(SLocBufferBlobAbbrv, Record,
1499 Stream.EmitRecordWithAbbrev(SLocExpansionAbbrv, Record);
1503 Stream.ExitBlock();
1516 unsigned SLocOffsetsAbbrev = Stream.EmitAbbrev(Abbrev);
1522 Stream.EmitRecordWithBlob(SLocOffsetsAbbrev, Record, data(SLocEntryOffsets));
1528 unsigned SLocFileOffsetsAbbrev = Stream.EmitAbbrev(Abbrev);
1533 Stream.EmitRecordWithBlob(SLocFileOffsetsAbbrev, Record,
1538 Stream.EmitRecord(SOURCE_LOCATION_PRELOADS, PreloadSLocs);
1580 Stream.EmitRecord(SOURCE_MANAGER_LINE_TABLE, Record);
1609 Stream.EmitRecord(PP_COUNTER_VALUE, Record);
1614 Stream.EnterSubblock(PREPROCESSOR_BLOCK_ID, 3);
1672 MacroOffsets[Name] = Stream.GetCurrentBitNo();
1696 Stream.EmitRecord(Code, Record);
1717 Stream.EmitRecord(PP_TOKEN, Record);
1722 Stream.ExitBlock();
1732 Stream.EnterSubblock(PREPROCESSOR_DETAIL_BLOCK_ID, 3);
1747 InclusionAbbrev = Stream.EmitAbbrev(Abbrev);
1762 Stream.GetCurrentBitNo()));
1769 Stream.EmitRecord(PPD_MACRO_DEFINITION, Record);
1779 Stream.EmitRecord(PPD_MACRO_EXPANSION, Record);
1791 Stream.EmitRecordWithBlob(InclusionAbbrev, Record, Buffer);
1797 Stream.ExitBlock();
1809 unsigned PPEOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
1814 Stream.EmitRecordWithBlob(PPEOffsetAbbrev, Record,
1841 Stream.EmitRecord(DIAG_PRAGMA_MAPPINGS, Record);
1857 unsigned BaseSpecifierOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
1863 Stream.EmitRecordWithBlob(BaseSpecifierOffsetAbbrev, Record,
1871 /// \brief Write the representation of a type to the AST stream.
1882 TypeOffsets.push_back(Stream.GetCurrentBitNo());
1885 TypeOffsets[Index] = Stream.GetCurrentBitNo();
1910 Stream.EmitRecord(W.Code, Record);
1930 uint64_t Offset = Stream.GetCurrentBitNo();
1939 Stream.EmitRecordWithBlob(DeclContextLexicalAbbrev, Record, data(Decls));
1953 unsigned TypeOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
1958 Stream.EmitRecordWithBlob(TypeOffsetAbbrev, Record, data(TypeOffsets));
1966 unsigned DeclOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
1971 Stream.EmitRecordWithBlob(DeclOffsetAbbrev, Record, data(DeclOffsets));
2137 unsigned MethodPoolAbbrev = Stream.EmitAbbrev(Abbrev);
2144 Stream.EmitRecordWithBlob(MethodPoolAbbrev, Record, MethodPool.str());
2152 unsigned SelectorOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
2159 Stream.EmitRecordWithBlob(SelectorOffsetAbbrev, Record,
2183 Stream.EmitRecord(REFERENCED_SELECTOR_POOL, Record);
2354 unsigned IDTableAbbrev = Stream.EmitAbbrev(Abbrev);
2360 Stream.EmitRecordWithBlob(IDTableAbbrev, Record, IdentifierTable.str());
2369 unsigned IdentifierOffsetAbbrev = Stream.EmitAbbrev(Abbrev);
2375 Stream.EmitRecordWithBlob(IdentifierOffsetAbbrev, Record,
2528 uint64_t Offset = Stream.GetCurrentBitNo();
2582 Stream.EmitRecordWithBlob(DeclContextVisibleLookupAbbrev, Record,
2585 Stream.EmitRecord(DECL_CONTEXT_VISIBLE, Record);
2629 Stream.EmitRecordWithBlob(UpdateVisibleAbbrev, Record, LookupTable.str());
2636 Stream.EmitRecord(FP_PRAGMA_OPTIONS, Record);
2648 Stream.EmitRecord(OPENCL_EXTENSIONS, Record);
2708 ASTWriter::ASTWriter(llvm::BitstreamWriter &Stream)
2709 : Stream(Stream), Context(0), Chain(0), WritingAST(false),
2734 Stream.Emit((unsigned)'C', 8);
2735 Stream.Emit((unsigned)'P', 8);
2736 Stream.Emit((unsigned)'C', 8);
2737 Stream.Emit((unsigned)'H', 8);
2892 Stream.EnterSubblock(AST_BLOCK_ID, 5);
2917 unsigned ModuleOffsetMapAbbrev = Stream.EmitAbbrev(Abbrev);
2937 Stream.EmitRecordWithBlob(ModuleOffsetMapAbbrev, Record,
2957 unsigned TuUpdateLexicalAbbrev = Stream.EmitAbbrev(Abv);
2960 Stream.EmitRecordWithBlob(TuUpdateLexicalAbbrev, Record,
2969 UpdateVisibleAbbrev = Stream.EmitAbbrev(Abv);
3001 Stream.EnterSubblock(DECLTYPES_BLOCK_ID, NUM_ALLOWED_ABBREVS_SIZE);
3015 Stream.ExitBlock();
3030 Stream.EmitRecord(SPECIAL_TYPES, SpecialTypes);
3043 Stream.EmitRecord(REDECLS_UPDATE_LATEST, FirstLatestDeclIDs);
3047 Stream.EmitRecord(EXTERNAL_DEFINITIONS, ExternalDefinitions);
3051 Stream.EmitRecord(TENTATIVE_DEFINITIONS, TentativeDefinitions);
3055 Stream.EmitRecord(UNUSED_FILESCOPED_DECLS, UnusedFileScopedDecls);
3059 Stream.EmitRecord(WEAK_UNDECLARED_IDENTIFIERS,
3064 Stream.EmitRecord(LOCALLY_SCOPED_EXTERNAL_DECLS,
3069 Stream.EmitRecord(EXT_VECTOR_DECLS, ExtVectorDecls);
3073 Stream.EmitRecord(VTABLE_USES, VTableUses);
3077 Stream.EmitRecord(DYNAMIC_CLASSES, DynamicClasses);
3081 Stream.EmitRecord(PENDING_IMPLICIT_INSTANTIATIONS, PendingInstantiations);
3085 Stream.EmitRecord(SEMA_DECL_REFS, SemaDeclRefs);
3089 Stream.EmitRecord(CUDA_SPECIAL_DECL_REFS, CUDASpecialDeclRefs);
3093 Stream.EmitRecord(DELEGATING_CTORS, DelegatingCtorDecls);
3097 Stream.EmitRecord(KNOWN_NAMESPACES, KnownNamespaces);
3116 Stream.EmitRecord(STATISTICS, Record);
3117 Stream.ExitBlock();
3155 Stream.EnterSubblock(DECL_UPDATES_BLOCK_ID, NUM_ALLOWED_ABBREVS_SIZE);
3164 uint64_t Offset = Stream.GetCurrentBitNo();
3165 Stream.EmitRecord(DECL_UPDATES, URec);
3170 Stream.ExitBlock();
3171 Stream.EmitRecord(DECL_UPDATE_OFFSETS, OffsetsRecord);
3184 Stream.EmitRecord(DECL_REPLACEMENTS, Record);
3215 Stream.EmitRecord(OBJC_CHAINED_CATEGORIES, Record);
3748 CXXBaseSpecifiersOffsets.push_back(Stream.GetCurrentBitNo());
3752 CXXBaseSpecifiersOffsets[Index] = Stream.GetCurrentBitNo();
3760 Stream.EmitRecord(serialization::DECL_CXX_BASE_SPECIFIERS, Record);