• Home
  • Raw
  • Download

Lines Matching refs:Stream

144                               unsigned AbbrevToUse, BitstreamWriter &Stream) {  in WriteStringRecord()  argument
155 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
160 BitstreamWriter &Stream) { in WriteAttributeTable() argument
164 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3); in WriteAttributeTable()
175 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY_OLD, Record); in WriteAttributeTable()
179 Stream.ExitBlock(); in WriteAttributeTable()
184 BitstreamWriter &Stream) { in WriteTypeTable() argument
187 Stream.EnterSubblock(bitc::TYPE_BLOCK_ID_NEW, 4 /*count from # abbrevs */); in WriteTypeTable()
197 unsigned PtrAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
206 unsigned FunctionAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
215 unsigned StructAnonAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
222 unsigned StructNameAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
231 unsigned StructNamedAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
239 unsigned ArrayAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
243 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals); in WriteTypeTable()
313 StructNameAbbrev, Stream); in WriteTypeTable()
337 Stream.EmitRecord(Code, TypeVals, AbbrevToUse); in WriteTypeTable()
341 Stream.ExitBlock(); in WriteTypeTable()
396 BitstreamWriter &Stream) { in WriteModuleInfo() argument
400 0/*TODO*/, Stream); in WriteModuleInfo()
403 WriteStringRecord(bitc::MODULE_CODE_DATALAYOUT, DL, 0 /*TODO*/, Stream); in WriteModuleInfo()
406 0/*TODO*/, Stream); in WriteModuleInfo()
422 0/*TODO*/, Stream); in WriteModuleInfo()
434 0/*TODO*/, Stream); in WriteModuleInfo()
443 0/*TODO*/, Stream); in WriteModuleInfo()
473 SimpleGVarAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleInfo()
503 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in WriteModuleInfo()
523 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in WriteModuleInfo()
535 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse); in WriteModuleInfo()
572 BitstreamWriter &Stream, in WriteValueAsMetadata() argument
578 Stream.EmitRecord(bitc::METADATA_OLD_NODE, Record, 0); in WriteValueAsMetadata()
583 BitstreamWriter &Stream, in WriteMDTuple() argument
602 Stream.EmitRecord(bitc::METADATA_OLD_NODE, Record, Abbrev); in WriteMDTuple()
628 BitstreamWriter &Stream) { in WriteModuleMetadata() argument
634 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadata()
643 MDSAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleMetadata()
660 MDLocationAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleMetadata()
670 NameAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleMetadata()
684 Write##CLASS(cast<CLASS>(N), VE, Stream, Record, CLASS##Abbrev); \ in WriteModuleMetadata()
690 WriteValueAsMetadata(MDC, VE, Stream, Record); in WriteModuleMetadata()
698 Stream.EmitRecord(bitc::METADATA_STRING_OLD, Record, MDSAbbrev); in WriteModuleMetadata()
707 Stream.EmitRecord(bitc::METADATA_NAME, Record, NameAbbrev); in WriteModuleMetadata()
713 Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0); in WriteModuleMetadata()
717 Stream.ExitBlock(); in WriteModuleMetadata()
722 BitstreamWriter &Stream) { in WriteFunctionLocalMetadata() argument
730 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteFunctionLocalMetadata()
733 WriteValueAsMetadata(MDs[i], VE, Stream, Record); in WriteFunctionLocalMetadata()
737 Stream.ExitBlock(); in WriteFunctionLocalMetadata()
742 BitstreamWriter &Stream) { in WriteMetadataAttachment() argument
743 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3); in WriteMetadataAttachment()
766 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0); in WriteMetadataAttachment()
770 Stream.ExitBlock(); in WriteMetadataAttachment()
773 static void WriteModuleMetadataStore(const Module *M, BitstreamWriter &Stream) { in WriteModuleMetadataStore() argument
783 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadataStore()
790 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0); in WriteModuleMetadataStore()
794 Stream.ExitBlock(); in WriteModuleMetadataStore()
806 BitstreamWriter &Stream, bool isGlobal) { in WriteConstants() argument
809 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4); in WriteConstants()
822 AggregateAbbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
829 String8Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
835 CString7Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
841 CString6Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
854 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record, in WriteConstants()
875 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record); in WriteConstants()
1051 Stream.EmitRecord(Code, Record, AbbrevToUse); in WriteConstants()
1055 Stream.ExitBlock(); in WriteConstants()
1059 BitstreamWriter &Stream) { in WriteModuleConstants() argument
1066 WriteConstants(i, Vals.size(), VE, Stream, true); in WriteModuleConstants()
1095 BitstreamWriter &Stream, in WriteInstruction() argument
1387 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteInstruction()
1394 BitstreamWriter &Stream) { in WriteValueSymbolTable() argument
1396 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4); in WriteValueSymbolTable()
1443 Stream.EmitRecord(Code, NameVals, AbbrevToUse); in WriteValueSymbolTable()
1446 Stream.ExitBlock(); in WriteValueSymbolTable()
1450 BitstreamWriter &Stream) { in WriteUseList() argument
1462 Stream.EmitRecord(Code, Record); in WriteUseList()
1466 BitstreamWriter &Stream) { in WriteUseListBlock() argument
1474 Stream.EnterSubblock(bitc::USELIST_BLOCK_ID, 3); in WriteUseListBlock()
1476 WriteUseList(VE, std::move(VE.UseListOrders.back()), Stream); in WriteUseListBlock()
1479 Stream.ExitBlock(); in WriteUseListBlock()
1484 BitstreamWriter &Stream) { in WriteFunction() argument
1485 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4); in WriteFunction()
1493 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in WriteFunction()
1499 WriteConstants(CstStart, CstEnd, VE, Stream, false); in WriteFunction()
1502 WriteFunctionLocalMetadata(F, VE, Stream); in WriteFunction()
1515 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1530 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in WriteFunction()
1538 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in WriteFunction()
1547 WriteValueSymbolTable(F.getValueSymbolTable(), VE, Stream); in WriteFunction()
1550 WriteMetadataAttachment(F, VE, Stream); in WriteFunction()
1552 WriteUseListBlock(&F, VE, Stream); in WriteFunction()
1554 Stream.ExitBlock(); in WriteFunction()
1559 BitstreamWriter &Stream) { in WriteBlockInfo() argument
1563 Stream.EnterBlockInfoBlock(2); in WriteBlockInfo()
1571 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1582 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1592 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1602 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1614 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1623 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1636 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1643 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1656 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1666 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1677 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1688 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1696 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1704 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1711 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1716 Stream.ExitBlock(); in WriteBlockInfo()
1720 static void WriteModule(const Module *M, BitstreamWriter &Stream) { in WriteModule() argument
1721 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3); in WriteModule()
1728 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in WriteModule()
1735 WriteBlockInfo(VE, Stream); in WriteModule()
1738 WriteAttributeTable(VE, Stream); in WriteModule()
1741 WriteTypeTable(VE, Stream); in WriteModule()
1745 WriteModuleInfo(M, VE, Stream); in WriteModule()
1748 WriteModuleConstants(VE, Stream); in WriteModule()
1751 WriteModuleMetadata(M, VE, Stream); in WriteModule()
1754 WriteModuleMetadataStore(M, Stream); in WriteModule()
1757 WriteValueSymbolTable(M->getValueSymbolTable(), VE, Stream); in WriteModule()
1761 WriteUseListBlock(nullptr, VE, Stream); in WriteModule()
1766 WriteFunction(*F, VE, Stream); in WriteModule()
1768 Stream.ExitBlock(); in WriteModule()
1858 BitstreamWriter Stream(Buffer); in WriteBitcodeToFile() local
1861 Stream.Emit((unsigned)'B', 8); in WriteBitcodeToFile()
1862 Stream.Emit((unsigned)'C', 8); in WriteBitcodeToFile()
1863 Stream.Emit(0x0, 4); in WriteBitcodeToFile()
1864 Stream.Emit(0xC, 4); in WriteBitcodeToFile()
1865 Stream.Emit(0xE, 4); in WriteBitcodeToFile()
1866 Stream.Emit(0xD, 4); in WriteBitcodeToFile()
1869 WriteModule(M, Stream); in WriteBitcodeToFile()