Lines Matching defs:Stream

144                               unsigned AbbrevToUse, BitstreamWriter &Stream) {
155 Stream.EmitRecord(Code, Vals, AbbrevToUse);
160 BitstreamWriter &Stream) {
164 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3);
175 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY_OLD, Record);
179 Stream.ExitBlock();
184 BitstreamWriter &Stream) {
187 Stream.EnterSubblock(bitc::TYPE_BLOCK_ID_NEW, 4 /*count from # abbrevs */);
197 unsigned PtrAbbrev = Stream.EmitAbbrev(Abbv);
206 unsigned FunctionAbbrev = Stream.EmitAbbrev(Abbv);
215 unsigned StructAnonAbbrev = Stream.EmitAbbrev(Abbv);
222 unsigned StructNameAbbrev = Stream.EmitAbbrev(Abbv);
231 unsigned StructNamedAbbrev = Stream.EmitAbbrev(Abbv);
239 unsigned ArrayAbbrev = Stream.EmitAbbrev(Abbv);
243 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals);
313 StructNameAbbrev, Stream);
337 Stream.EmitRecord(Code, TypeVals, AbbrevToUse);
341 Stream.ExitBlock();
396 BitstreamWriter &Stream) {
400 0/*TODO*/, Stream);
403 WriteStringRecord(bitc::MODULE_CODE_DATALAYOUT, DL, 0 /*TODO*/, Stream);
406 0/*TODO*/, Stream);
422 0/*TODO*/, Stream);
434 0/*TODO*/, Stream);
443 0/*TODO*/, Stream);
473 SimpleGVarAbbrev = Stream.EmitAbbrev(Abbv);
502 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
522 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
534 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse);
571 BitstreamWriter &Stream,
577 Stream.EmitRecord(bitc::METADATA_OLD_NODE, Record, 0);
582 BitstreamWriter &Stream,
601 Stream.EmitRecord(bitc::METADATA_OLD_NODE, Record, Abbrev);
606 BitstreamWriter &Stream,
615 Stream.EmitRecord(bitc::METADATA_LOCATION, Record, Abbrev);
627 BitstreamWriter &Stream) {
633 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
642 MDSAbbrev = Stream.EmitAbbrev(Abbv);
659 MDLocationAbbrev = Stream.EmitAbbrev(Abbv);
669 NameAbbrev = Stream.EmitAbbrev(Abbv);
683 Write##CLASS(cast<CLASS>(N), VE, Stream, Record, CLASS##Abbrev); \
689 WriteValueAsMetadata(MDC, VE, Stream, Record);
697 Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev);
706 Stream.EmitRecord(bitc::METADATA_NAME, Record, NameAbbrev);
712 Stream.EmitRecord(bitc::METADATA_NAMED_NODE, Record, 0);
716 Stream.ExitBlock();
721 BitstreamWriter &Stream) {
729 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
732 WriteValueAsMetadata(MDs[i], VE, Stream, Record);
736 Stream.ExitBlock();
741 BitstreamWriter &Stream) {
742 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3);
765 Stream.EmitRecord(bitc::METADATA_ATTACHMENT, Record, 0);
769 Stream.ExitBlock();
772 static void WriteModuleMetadataStore(const Module *M, BitstreamWriter &Stream) {
782 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
789 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0);
793 Stream.ExitBlock();
805 BitstreamWriter &Stream, bool isGlobal) {
808 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4);
821 AggregateAbbrev = Stream.EmitAbbrev(Abbv);
828 String8Abbrev = Stream.EmitAbbrev(Abbv);
834 CString7Abbrev = Stream.EmitAbbrev(Abbv);
840 CString6Abbrev = Stream.EmitAbbrev(Abbv);
853 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record,
874 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record);
1050 Stream.EmitRecord(Code, Record, AbbrevToUse);
1054 Stream.ExitBlock();
1058 BitstreamWriter &Stream) {
1065 WriteConstants(i, Vals.size(), VE, Stream, true);
1094 BitstreamWriter &Stream,
1386 Stream.EmitRecord(Code, Vals, AbbrevToUse);
1393 BitstreamWriter &Stream) {
1395 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4);
1442 Stream.EmitRecord(Code, NameVals, AbbrevToUse);
1445 Stream.ExitBlock();
1449 BitstreamWriter &Stream) {
1461 Stream.EmitRecord(Code, Record);
1465 BitstreamWriter &Stream) {
1473 Stream.EnterSubblock(bitc::USELIST_BLOCK_ID, 3);
1475 WriteUseList(VE, std::move(VE.UseListOrders.back()), Stream);
1478 Stream.ExitBlock();
1483 BitstreamWriter &Stream) {
1484 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4);
1492 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1498 WriteConstants(CstStart, CstEnd, VE, Stream, false);
1501 WriteFunctionLocalMetadata(F, VE, Stream);
1514 WriteInstruction(*I, InstID, VE, Stream, Vals);
1529 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1537 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1546 WriteValueSymbolTable(F.getValueSymbolTable(), VE, Stream);
1549 WriteMetadataAttachment(F, VE, Stream);
1551 WriteUseListBlock(&F, VE, Stream);
1553 Stream.ExitBlock();
1558 BitstreamWriter &Stream) {
1562 Stream.EnterBlockInfoBlock(2);
1570 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1581 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1591 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1601 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID,
1613 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1622 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1635 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1642 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID,
1655 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1665 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1676 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1687 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1695 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1703 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1710 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID,
1715 Stream.ExitBlock();
1719 static void WriteModule(const Module *M, BitstreamWriter &Stream) {
1720 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3);
1727 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);
1734 WriteBlockInfo(VE, Stream);
1737 WriteAttributeTable(VE, Stream);
1740 WriteTypeTable(VE, Stream);
1744 WriteModuleInfo(M, VE, Stream);
1747 WriteModuleConstants(VE, Stream);
1750 WriteModuleMetadata(M, VE, Stream);
1753 WriteModuleMetadataStore(M, Stream);
1756 WriteValueSymbolTable(M->getValueSymbolTable(), VE, Stream);
1760 WriteUseListBlock(nullptr, VE, Stream);
1765 WriteFunction(*F, VE, Stream);
1767 Stream.ExitBlock();
1857 BitstreamWriter Stream(Buffer);
1860 Stream.Emit((unsigned)'B', 8);
1861 Stream.Emit((unsigned)'C', 8);
1862 Stream.Emit(0x0, 4);
1863 Stream.Emit(0xC, 4);
1864 Stream.Emit(0xE, 4);
1865 Stream.Emit(0xD, 4);
1868 WriteModule(M, Stream);