Lines Matching refs:Stream

675   TypeExtQualAbbrev = Stream.EmitAbbrev(Abv);  in WriteTypeAbbrevs()
696 TypeFunctionProtoAbbrev = Stream.EmitAbbrev(Abv); in WriteTypeAbbrevs()
704 llvm::BitstreamWriter &Stream, in EmitBlockID() argument
708 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); in EmitBlockID()
716 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, Record); in EmitBlockID()
720 llvm::BitstreamWriter &Stream, in EmitRecordID() argument
726 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETRECORDNAME, Record); in EmitRecordID()
729 static void AddStmtsExprs(llvm::BitstreamWriter &Stream, in AddStmtsExprs() argument
731 #define RECORD(X) EmitRecordID(X, #X, Stream, Record) in AddStmtsExprs()
858 Stream.EnterSubblock(llvm::bitc::BLOCKINFO_BLOCK_ID, 3); in WriteBlockInfoBlock()
860 #define BLOCK(X) EmitBlockID(X ## _ID, #X, Stream, Record) in WriteBlockInfoBlock()
861 #define RECORD(X) EmitRecordID(X, #X, Stream, Record) in WriteBlockInfoBlock()
1049 AddStmtsExprs(Stream, Record); in WriteBlockInfoBlock()
1058 Stream.ExitBlock(); in WriteBlockInfoBlock()
1136 Stream.EnterSubblock(CONTROL_BLOCK_ID, 5); in WriteControlBlock()
1149 unsigned MetadataAbbrevCode = Stream.EmitAbbrev(MetadataAbbrev); in WriteControlBlock()
1159 Stream.EmitRecordWithBlob(MetadataAbbrevCode, Record, in WriteControlBlock()
1165 Stream.EmitRecord(SIGNATURE, Record); in WriteControlBlock()
1172 unsigned AbbrevCode = Stream.EmitAbbrev(Abbrev); in WriteControlBlock()
1175 Stream.EmitRecordWithBlob(AbbrevCode, Record, WritingModule->Name); in WriteControlBlock()
1183 unsigned AbbrevCode = Stream.EmitAbbrev(Abbrev); in WriteControlBlock()
1189 Stream.EmitRecordWithBlob(AbbrevCode, Record, BaseDir); in WriteControlBlock()
1217 Stream.EmitRecord(MODULE_MAP_FILE, Record); in WriteControlBlock()
1238 Stream.EmitRecord(IMPORTS, Record); in WriteControlBlock()
1269 Stream.EmitRecord(LANGUAGE_OPTIONS, Record); in WriteControlBlock()
1286 Stream.EmitRecord(TARGET_OPTIONS, Record); in WriteControlBlock()
1304 Stream.EmitRecord(DIAGNOSTIC_OPTIONS, Record); in WriteControlBlock()
1311 Stream.EmitRecord(FILE_SYSTEM_OPTIONS, Record); in WriteControlBlock()
1344 Stream.EmitRecord(HEADER_SEARCH_OPTIONS, Record); in WriteControlBlock()
1373 Stream.EmitRecord(PREPROCESSOR_OPTIONS, Record); in WriteControlBlock()
1382 unsigned FileAbbrevCode = Stream.EmitAbbrev(FileAbbrev); in WriteControlBlock()
1392 Stream.EmitRecord(ORIGINAL_FILE_ID, Record); in WriteControlBlock()
1399 unsigned AbbrevCode = Stream.EmitAbbrev(Abbrev); in WriteControlBlock()
1408 Stream.EmitRecordWithBlob(AbbrevCode, Record, origDir); in WriteControlBlock()
1414 Stream.ExitBlock(); in WriteControlBlock()
1430 Stream.EnterSubblock(INPUT_FILES_BLOCK_ID, 4); in WriteInputFiles()
1441 unsigned IFAbbrevCode = Stream.EmitAbbrev(IFAbbrev); in WriteInputFiles()
1480 InputFileOffsets.push_back(Stream.GetCurrentBitNo()); in WriteInputFiles()
1501 Stream.ExitBlock(); in WriteInputFiles()
1510 unsigned OffsetsAbbrevCode = Stream.EmitAbbrev(OffsetsAbbrev); in WriteInputFiles()
1517 Stream.EmitRecordWithBlob(OffsetsAbbrevCode, Record, data(InputFileOffsets)); in WriteInputFiles()
1526 static unsigned CreateSLocFileAbbrev(llvm::BitstreamWriter &Stream) { in CreateSLocFileAbbrev() argument
1539 return Stream.EmitAbbrev(Abbrev); in CreateSLocFileAbbrev()
1544 static unsigned CreateSLocBufferAbbrev(llvm::BitstreamWriter &Stream) { in CreateSLocBufferAbbrev() argument
1553 return Stream.EmitAbbrev(Abbrev); in CreateSLocBufferAbbrev()
1558 static unsigned CreateSLocBufferBlobAbbrev(llvm::BitstreamWriter &Stream) { in CreateSLocBufferBlobAbbrev() argument
1563 return Stream.EmitAbbrev(Abbrev); in CreateSLocBufferBlobAbbrev()
1568 static unsigned CreateSLocExpansionAbbrev(llvm::BitstreamWriter &Stream) { in CreateSLocExpansionAbbrev() argument
1577 return Stream.EmitAbbrev(Abbrev); in CreateSLocExpansionAbbrev()
1750 unsigned TableAbbrev = Stream.EmitAbbrev(Abbrev); in WriteHeaderSearch()
1759 Stream.EmitRecordWithBlob(TableAbbrev, Record, TableData.str()); in WriteHeaderSearch()
1779 Stream.EnterSubblock(SOURCE_MANAGER_BLOCK_ID, 3); in WriteSourceManagerBlock()
1782 unsigned SLocFileAbbrv = CreateSLocFileAbbrev(Stream); in WriteSourceManagerBlock()
1783 unsigned SLocBufferAbbrv = CreateSLocBufferAbbrev(Stream); in WriteSourceManagerBlock()
1784 unsigned SLocBufferBlobAbbrv = CreateSLocBufferBlobAbbrev(Stream); in WriteSourceManagerBlock()
1785 unsigned SLocExpansionAbbrv = CreateSLocExpansionAbbrev(Stream); in WriteSourceManagerBlock()
1800 SLocEntryOffsets.push_back(Stream.GetCurrentBitNo()); in WriteSourceManagerBlock()
1843 Stream.EmitRecordWithAbbrev(SLocFileAbbrv, Record); in WriteSourceManagerBlock()
1850 Stream.EmitRecordWithBlob(SLocBufferBlobAbbrv, Record, in WriteSourceManagerBlock()
1864 Stream.EmitRecordWithBlob(SLocBufferAbbrv, Record, in WriteSourceManagerBlock()
1868 Stream.EmitRecordWithBlob(SLocBufferBlobAbbrv, Record, in WriteSourceManagerBlock()
1889 Stream.EmitRecordWithAbbrev(SLocExpansionAbbrv, Record); in WriteSourceManagerBlock()
1893 Stream.ExitBlock(); in WriteSourceManagerBlock()
1906 unsigned SLocOffsetsAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSourceManagerBlock()
1912 Stream.EmitRecordWithBlob(SLocOffsetsAbbrev, Record, data(SLocEntryOffsets)); in WriteSourceManagerBlock()
1916 Stream.EmitRecord(SOURCE_LOCATION_PRELOADS, PreloadSLocs); in WriteSourceManagerBlock()
1951 Stream.EmitRecord(SOURCE_MANAGER_LINE_TABLE, Record); in WriteSourceManagerBlock()
2039 Stream.EmitRecord(PP_COUNTER_VALUE, Record); in WritePreprocessor()
2044 Stream.EnterSubblock(PREPROCESSOR_BLOCK_ID, 3); in WritePreprocessor()
2076 uint64_t MacroDirectiveOffset = Stream.GetCurrentBitNo(); in WritePreprocessor()
2115 Stream.EmitRecord(PP_MACRO_DIRECTIVE_HISTORY, Record); in WritePreprocessor()
2147 MacroOffsets.push_back(Stream.GetCurrentBitNo()); in WritePreprocessor()
2152 MacroOffsets[Index] = Stream.GetCurrentBitNo(); in WritePreprocessor()
2181 Stream.EmitRecord(Code, Record); in WritePreprocessor()
2191 Stream.EmitRecord(PP_TOKEN, Record); in WritePreprocessor()
2197 Stream.ExitBlock(); in WritePreprocessor()
2216 unsigned MacroTableAbbrev = Stream.EmitAbbrev(Abbrev); in WritePreprocessor()
2220 Stream.EmitRecordWithBlob(MacroTableAbbrev, Record, MacroTable.str()); in WritePreprocessor()
2231 unsigned MacroOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WritePreprocessor()
2236 Stream.EmitRecordWithBlob(MacroOffsetAbbrev, Record, in WritePreprocessor()
2247 Stream.EnterSubblock(PREPROCESSOR_DETAIL_BLOCK_ID, 3); in WritePreprocessorDetail()
2263 InclusionAbbrev = Stream.EmitAbbrev(Abbrev); in WritePreprocessorDetail()
2278 Stream.GetCurrentBitNo())); in WritePreprocessorDetail()
2285 Stream.EmitRecord(PPD_MACRO_DEFINITION, Record); in WritePreprocessorDetail()
2295 Stream.EmitRecord(PPD_MACRO_EXPANSION, Record); in WritePreprocessorDetail()
2311 Stream.EmitRecordWithBlob(InclusionAbbrev, Record, Buffer); in WritePreprocessorDetail()
2317 Stream.ExitBlock(); in WritePreprocessorDetail()
2329 unsigned PPEOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WritePreprocessorDetail()
2334 Stream.EmitRecordWithBlob(PPEOffsetAbbrev, Record, in WritePreprocessorDetail()
2386 Stream.EnterSubblock(SUBMODULE_BLOCK_ID, /*bits for abbreviations*/5); in WriteSubmodules()
2403 unsigned DefinitionAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2408 unsigned UmbrellaAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2413 unsigned HeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2418 unsigned TopHeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2423 unsigned UmbrellaDirAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2429 unsigned RequiresAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2434 unsigned ExcludedHeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2439 unsigned TextualHeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2444 unsigned PrivateHeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2449 unsigned PrivateTextualHeaderAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2455 unsigned LinkLibraryAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2460 unsigned ConfigMacroAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2466 unsigned ConflictAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSubmodules()
2472 Stream.EmitRecord(SUBMODULE_METADATA, Record); in WriteSubmodules()
2500 Stream.EmitRecordWithBlob(DefinitionAbbrev, Record, Mod->Name); in WriteSubmodules()
2507 Stream.EmitRecordWithBlob(RequiresAbbrev, Record, in WriteSubmodules()
2515 Stream.EmitRecordWithBlob(UmbrellaAbbrev, Record, in WriteSubmodules()
2520 Stream.EmitRecordWithBlob(UmbrellaDirAbbrev, Record, in WriteSubmodules()
2541 Stream.EmitRecordWithBlob(HL.Abbrev, Record, H.NameAsWritten); in WriteSubmodules()
2550 Stream.EmitRecordWithBlob(TopHeaderAbbrev, Record, H->getName()); in WriteSubmodules()
2561 Stream.EmitRecord(SUBMODULE_IMPORTS, Record); in WriteSubmodules()
2578 Stream.EmitRecord(SUBMODULE_EXPORTS, Record); in WriteSubmodules()
2590 Stream.EmitRecordWithBlob(LinkLibraryAbbrev, Record, in WriteSubmodules()
2601 Stream.EmitRecordWithBlob(ConflictAbbrev, Record, in WriteSubmodules()
2609 Stream.EmitRecordWithBlob(ConfigMacroAbbrev, Record, in WriteSubmodules()
2620 Stream.ExitBlock(); in WriteSubmodules()
2684 Stream.EmitRecord(DIAG_PRAGMA_MAPPINGS, Record); in WritePragmaDiagnosticMappings()
2700 unsigned BaseSpecifierOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WriteCXXBaseSpecifiersOffsets()
2706 Stream.EmitRecordWithBlob(BaseSpecifierOffsetAbbrev, Record, in WriteCXXBaseSpecifiersOffsets()
2725 TypeOffsets.push_back(Stream.GetCurrentBitNo()); in WriteType()
2728 TypeOffsets[Index] = Stream.GetCurrentBitNo(); in WriteType()
2755 Stream.EmitRecord(W.Code, Record, W.AbbrevToUse); in WriteType()
2775 uint64_t Offset = Stream.GetCurrentBitNo(); in WriteDeclContextLexicalBlock()
2783 Stream.EmitRecordWithBlob(DeclContextLexicalAbbrev, Record, data(Decls)); in WriteDeclContextLexicalBlock()
2797 unsigned TypeOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WriteTypeDeclOffsets()
2802 Stream.EmitRecordWithBlob(TypeOffsetAbbrev, Record, data(TypeOffsets)); in WriteTypeDeclOffsets()
2810 unsigned DeclOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WriteTypeDeclOffsets()
2815 Stream.EmitRecordWithBlob(DeclOffsetAbbrev, Record, data(DeclOffsets)); in WriteTypeDeclOffsets()
2837 unsigned AbbrevCode = Stream.EmitAbbrev(Abbrev); in WriteFileDeclIDsMap()
2840 Stream.EmitRecordWithBlob(AbbrevCode, Record, data(FileSortedIDs)); in WriteFileDeclIDsMap()
2844 Stream.EnterSubblock(COMMENTS_BLOCK_ID, 3); in WriteComments()
2855 Stream.EmitRecord(COMMENTS_RAW_COMMENT, Record); in WriteComments()
2857 Stream.ExitBlock(); in WriteComments()
3047 unsigned MethodPoolAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSelectors()
3054 Stream.EmitRecordWithBlob(MethodPoolAbbrev, Record, MethodPool.str()); in WriteSelectors()
3062 unsigned SelectorOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WriteSelectors()
3069 Stream.EmitRecordWithBlob(SelectorOffsetAbbrev, Record, in WriteSelectors()
3093 Stream.EmitRecord(REFERENCED_SELECTOR_POOL, Record); in WriteReferencedSelectorsPool()
3493 unsigned IDTableAbbrev = Stream.EmitAbbrev(Abbrev); in WriteIdentifierTable()
3499 Stream.EmitRecordWithBlob(IDTableAbbrev, Record, IdentifierTable.str()); in WriteIdentifierTable()
3508 unsigned IdentifierOffsetAbbrev = Stream.EmitAbbrev(Abbrev); in WriteIdentifierTable()
3519 Stream.EmitRecordWithBlob(IdentifierOffsetAbbrev, Record, in WriteIdentifierTable()
3816 uint64_t Offset = Stream.GetCurrentBitNo(); in WriteDeclContextVisibleBlock()
3829 Stream.EmitRecordWithBlob(DeclContextVisibleLookupAbbrev, Record, in WriteDeclContextVisibleBlock()
3855 Stream.EmitRecordWithBlob(UpdateVisibleAbbrev, Record, LookupTable.str()); in WriteDeclContextVisibleUpdate()
3862 Stream.EmitRecord(FP_PRAGMA_OPTIONS, Record); in WriteFPPragmaOptions()
3874 Stream.EmitRecord(OPENCL_EXTENSIONS, Record); in WriteOpenCLExtensions()
3945 unsigned AbbrevID = Stream.EmitAbbrev(Abbrev); in WriteRedeclarations()
3950 Stream.EmitRecordWithBlob(AbbrevID, Record, in WriteRedeclarations()
3955 Stream.EmitRecord(LOCAL_REDECLARATIONS, LocalRedeclChains); in WriteRedeclarations()
3998 unsigned AbbrevID = Stream.EmitAbbrev(Abbrev); in WriteObjCCategories()
4003 Stream.EmitRecordWithBlob(AbbrevID, Record, in WriteObjCCategories()
4008 Stream.EmitRecord(OBJC_CATEGORIES, Categories); in WriteObjCCategories()
4027 Stream.EmitRecord(MERGED_DECLARATIONS, Record); in WriteMergedDecls()
4051 Stream.EmitRecord(LATE_PARSED_TEMPLATE, Record); in WriteLateParsedTemplates()
4059 Stream.EmitRecord(OPTIMIZE_PRAGMA_OPTIONS, Record); in WriteOptimizePragmaOptions()
4127 Stream.EmitRecordWithBlob(Abbrev, Record, FilePath); in EmitRecordWithPath()
4165 ASTWriter::ASTWriter(llvm::BitstreamWriter &Stream) in ASTWriter() argument
4166 : Stream(Stream), Context(nullptr), PP(nullptr), Chain(nullptr), in ASTWriter()
4200 Stream.Emit((unsigned)'C', 8); in WriteAST()
4201 Stream.Emit((unsigned)'P', 8); in WriteAST()
4202 Stream.Emit((unsigned)'C', 8); in WriteAST()
4203 Stream.Emit((unsigned)'H', 8); in WriteAST()
4422 Stream.EnterSubblock(AST_BLOCK_ID, 5); in WriteASTCore()
4428 Stream.EmitRecord(METADATA_OLD_FORMAT, Record); in WriteASTCore()
4442 unsigned TuUpdateLexicalAbbrev = Stream.EmitAbbrev(Abv); in WriteASTCore()
4445 Stream.EmitRecordWithBlob(TuUpdateLexicalAbbrev, Record, in WriteASTCore()
4454 UpdateVisibleAbbrev = Stream.EmitAbbrev(Abv); in WriteASTCore()
4531 unsigned ModuleOffsetMapAbbrev = Stream.EmitAbbrev(Abbrev); in WriteASTCore()
4569 Stream.EmitRecordWithBlob(ModuleOffsetMapAbbrev, Record, in WriteASTCore()
4577 Stream.EnterSubblock(DECLTYPES_BLOCK_ID, /*bits for abbreviations*/5); in WriteASTCore()
4595 Stream.ExitBlock(); in WriteASTCore()
4602 Stream.EmitRecord(DECL_UPDATE_OFFSETS, DeclUpdatesOffsetsRecord); in WriteASTCore()
4621 Stream.EmitRecord(SPECIAL_TYPES, SpecialTypes); in WriteASTCore()
4625 Stream.EmitRecord(EAGERLY_DESERIALIZED_DECLS, EagerlyDeserializedDecls); in WriteASTCore()
4629 Stream.EmitRecord(TENTATIVE_DEFINITIONS, TentativeDefinitions); in WriteASTCore()
4633 Stream.EmitRecord(UNUSED_FILESCOPED_DECLS, UnusedFileScopedDecls); in WriteASTCore()
4637 Stream.EmitRecord(WEAK_UNDECLARED_IDENTIFIERS, in WriteASTCore()
4642 Stream.EmitRecord(LOCALLY_SCOPED_EXTERN_C_DECLS, in WriteASTCore()
4647 Stream.EmitRecord(EXT_VECTOR_DECLS, ExtVectorDecls); in WriteASTCore()
4651 Stream.EmitRecord(VTABLE_USES, VTableUses); in WriteASTCore()
4655 Stream.EmitRecord(DYNAMIC_CLASSES, DynamicClasses); in WriteASTCore()
4659 Stream.EmitRecord(UNUSED_LOCAL_TYPEDEF_NAME_CANDIDATES, in WriteASTCore()
4664 Stream.EmitRecord(PENDING_IMPLICIT_INSTANTIATIONS, PendingInstantiations); in WriteASTCore()
4668 Stream.EmitRecord(SEMA_DECL_REFS, SemaDeclRefs); in WriteASTCore()
4672 Stream.EmitRecord(CUDA_SPECIAL_DECL_REFS, CUDASpecialDeclRefs); in WriteASTCore()
4676 Stream.EmitRecord(DELEGATING_CTORS, DelegatingCtorDecls); in WriteASTCore()
4680 Stream.EmitRecord(KNOWN_NAMESPACES, KnownNamespaces); in WriteASTCore()
4684 Stream.EmitRecord(UNDEFINED_BUT_USED, UndefinedButUsed); in WriteASTCore()
4726 Stream.EmitRecord(IMPORTED_MODULES, ImportedModules); in WriteASTCore()
4744 Stream.EmitRecord(STATISTICS, Record); in WriteASTCore()
4745 Stream.ExitBlock(); in WriteASTCore()
4867 OffsetsRecord.push_back(Stream.GetCurrentBitNo()); in WriteDeclUpdatesBlocks()
4869 Stream.EmitRecord(DECL_UPDATES, Record); in WriteDeclUpdatesBlocks()
4890 Stream.EmitRecord(DECL_REPLACEMENTS, Record); in WriteDeclReplacementsBlock()
5564 CXXBaseSpecifiersOffsets.push_back(Stream.GetCurrentBitNo()); in FlushCXXBaseSpecifiers()
5568 CXXBaseSpecifiersOffsets[Index] = Stream.GetCurrentBitNo(); in FlushCXXBaseSpecifiers()
5576 Stream.EmitRecord(serialization::DECL_CXX_BASE_SPECIFIERS, Record); in FlushCXXBaseSpecifiers()