• Home
  • Raw
  • Download

Lines Matching refs:Stream

120                               unsigned AbbrevToUse, BitstreamWriter &Stream) {  in WriteStringRecord()  argument
131 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
136 BitstreamWriter &Stream) { in WriteAttributeTable() argument
140 Stream.EnterSubblock(bitc::PARAMATTR_BLOCK_ID, 3); in WriteAttributeTable()
162 Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record); in WriteAttributeTable()
166 Stream.ExitBlock(); in WriteAttributeTable()
170 BitstreamWriter &Stream) { in WriteTypeSymbolTable() argument
172 Stream.EnterSubblock(TYPE_SYMTAB_BLOCK_ID_OLD_3_0, 3); in WriteTypeSymbolTable()
181 unsigned V7Abbrev = Stream.EmitAbbrev(Abbv); in WriteTypeSymbolTable()
209 Stream.EmitRecord(bitc::VST_CODE_ENTRY, NameVals, is7Bit ? V7Abbrev : 0); in WriteTypeSymbolTable()
233 Stream.EmitRecord(bitc::VST_CODE_ENTRY, NameVals, is7Bit ? V7Abbrev : 0); in WriteTypeSymbolTable()
238 Stream.ExitBlock(); in WriteTypeSymbolTable()
242 static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) { in WriteTypeTable() argument
245 Stream.EnterSubblock(TYPE_BLOCK_ID_OLD_3_0, 4 /*count from # abbrevs */); in WriteTypeTable()
254 unsigned PtrAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
264 unsigned FunctionAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
274 unsigned StructAnonAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
281 unsigned StructNameAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
290 unsigned StructNamedAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
300 unsigned StructAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
308 unsigned ArrayAbbrev = Stream.EmitAbbrev(Abbv); in WriteTypeTable()
312 Stream.EmitRecord(bitc::TYPE_CODE_NUMENTRY, TypeVals); in WriteTypeTable()
390 Stream.EmitRecord(Code, TypeVals, AbbrevToUse); in WriteTypeTable()
394 Stream.ExitBlock(); in WriteTypeTable()
396 WriteTypeSymbolTable(VE, Stream); in WriteTypeTable()
433 BitstreamWriter &Stream) { in WriteModuleInfo() argument
436 WriteStringRecord(bitc::MODULE_CODE_DEPLIB, *I, 0/*TODO*/, Stream); in WriteModuleInfo()
441 0/*TODO*/, Stream); in WriteModuleInfo()
444 0/*TODO*/, Stream); in WriteModuleInfo()
447 0/*TODO*/, Stream); in WriteModuleInfo()
465 0/*TODO*/, Stream); in WriteModuleInfo()
475 0/*TODO*/, Stream); in WriteModuleInfo()
484 0/*TODO*/, Stream); in WriteModuleInfo()
514 SimpleGVarAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleInfo()
543 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in WriteModuleInfo()
563 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in WriteModuleInfo()
575 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse); in WriteModuleInfo()
600 BitstreamWriter &Stream, in WriteMDNode() argument
613 Stream.EmitRecord(MDCode, Record, 0); in WriteMDNode()
619 BitstreamWriter &Stream) { in WriteModuleMetadata() argument
629 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadata()
632 WriteMDNode(N, VE, Stream, Record); in WriteModuleMetadata()
636 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadata()
643 MDSAbbrev = Stream.EmitAbbrev(Abbv); in WriteModuleMetadata()
651 Stream.EmitRecord(bitc::METADATA_STRING, Record, MDSAbbrev); in WriteModuleMetadata()
661 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadata()
669 Stream.EmitRecord(bitc::METADATA_NAME, Record, 0/*TODO*/); in WriteModuleMetadata()
675 Stream.EmitRecord(METADATA_NAMED_NODE_2_7, Record, 0); in WriteModuleMetadata()
680 Stream.ExitBlock(); in WriteModuleMetadata()
685 BitstreamWriter &Stream) { in WriteFunctionLocalMetadata() argument
693 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteFunctionLocalMetadata()
696 WriteMDNode(N, VE, Stream, Record); in WriteFunctionLocalMetadata()
700 Stream.ExitBlock(); in WriteFunctionLocalMetadata()
705 BitstreamWriter &Stream) { in WriteMetadataAttachment() argument
706 Stream.EnterSubblock(bitc::METADATA_ATTACHMENT_ID, 3); in WriteMetadataAttachment()
729 Stream.EmitRecord(METADATA_ATTACHMENT_2_7, Record, 0); in WriteMetadataAttachment()
733 Stream.ExitBlock(); in WriteMetadataAttachment()
736 static void WriteModuleMetadataStore(const Module *M, BitstreamWriter &Stream) { in WriteModuleMetadataStore() argument
746 Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3); in WriteModuleMetadataStore()
753 Stream.EmitRecord(bitc::METADATA_KIND, Record, 0); in WriteModuleMetadataStore()
757 Stream.ExitBlock(); in WriteModuleMetadataStore()
762 BitstreamWriter &Stream, bool isGlobal) { in WriteConstants() argument
765 Stream.EnterSubblock(bitc::CONSTANTS_BLOCK_ID, 4); in WriteConstants()
778 AggregateAbbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
785 String8Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
791 CString7Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
797 CString6Abbrev = Stream.EmitAbbrev(Abbv); in WriteConstants()
810 Stream.EmitRecord(bitc::CST_CODE_SETTYPE, Record, in WriteConstants()
830 Stream.EmitRecord(bitc::CST_CODE_INLINEASM, Record); in WriteConstants()
1022 Stream.EmitRecord(Code, Record, AbbrevToUse); in WriteConstants()
1026 Stream.ExitBlock(); in WriteConstants()
1030 BitstreamWriter &Stream) { in WriteModuleConstants() argument
1037 WriteConstants(i, Vals.size(), VE, Stream, true); in WriteModuleConstants()
1065 ValueEnumerator &VE, BitstreamWriter &Stream, in WriteInstruction() argument
1284 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteInstruction()
1291 BitstreamWriter &Stream) { in WriteValueSymbolTable() argument
1293 Stream.EnterSubblock(bitc::VALUE_SYMTAB_BLOCK_ID, 4); in WriteValueSymbolTable()
1340 Stream.EmitRecord(Code, NameVals, AbbrevToUse); in WriteValueSymbolTable()
1343 Stream.ExitBlock(); in WriteValueSymbolTable()
1348 BitstreamWriter &Stream) { in WriteFunction() argument
1349 Stream.EnterSubblock(bitc::FUNCTION_BLOCK_ID, 4); in WriteFunction()
1357 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in WriteFunction()
1363 WriteConstants(CstStart, CstEnd, VE, Stream, false); in WriteFunction()
1366 WriteFunctionLocalMetadata(F, VE, Stream); in WriteFunction()
1379 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1393 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in WriteFunction()
1402 Stream.EmitRecord(FUNC_CODE_DEBUG_LOC_2_7, Vals); in WriteFunction()
1410 WriteValueSymbolTable(F.getValueSymbolTable(), VE, Stream); in WriteFunction()
1413 WriteMetadataAttachment(F, VE, Stream); in WriteFunction()
1415 Stream.ExitBlock(); in WriteFunction()
1419 static void WriteBlockInfo(const ValueEnumerator &VE, BitstreamWriter &Stream) { in WriteBlockInfo() argument
1423 Stream.EnterBlockInfoBlock(2); in WriteBlockInfo()
1431 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1442 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1452 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1462 if (Stream.EmitBlockInfoAbbrev(bitc::VALUE_SYMTAB_BLOCK_ID, in WriteBlockInfo()
1474 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1483 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1496 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1503 if (Stream.EmitBlockInfoAbbrev(bitc::CONSTANTS_BLOCK_ID, in WriteBlockInfo()
1516 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1526 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1537 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1548 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1556 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1564 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1571 if (Stream.EmitBlockInfoAbbrev(bitc::FUNCTION_BLOCK_ID, in WriteBlockInfo()
1576 Stream.ExitBlock(); in WriteBlockInfo()
1581 static void WriteModule(const Module *M, BitstreamWriter &Stream) { in WriteModule() argument
1582 Stream.EnterSubblock(bitc::MODULE_BLOCK_ID, 3); in WriteModule()
1588 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in WriteModule()
1595 WriteBlockInfo(VE, Stream); in WriteModule()
1598 WriteAttributeTable(VE, Stream); in WriteModule()
1601 WriteTypeTable(VE, Stream); in WriteModule()
1605 WriteModuleInfo(M, VE, Stream); in WriteModule()
1608 WriteModuleConstants(VE, Stream); in WriteModule()
1611 WriteModuleMetadata(M, VE, Stream); in WriteModule()
1616 WriteFunction(*F, VE, Stream); in WriteModule()
1619 WriteModuleMetadataStore(M, Stream); in WriteModule()
1622 WriteValueSymbolTable(M->getValueSymbolTable(), VE, Stream); in WriteModule()
1624 Stream.ExitBlock(); in WriteModule()
1714 BitstreamWriter Stream(Buffer); in WriteBitcodeToFile() local
1717 Stream.Emit((unsigned)'B', 8); in WriteBitcodeToFile()
1718 Stream.Emit((unsigned)'C', 8); in WriteBitcodeToFile()
1719 Stream.Emit(0x0, 4); in WriteBitcodeToFile()
1720 Stream.Emit(0xC, 4); in WriteBitcodeToFile()
1721 Stream.Emit(0xE, 4); in WriteBitcodeToFile()
1722 Stream.Emit(0xD, 4); in WriteBitcodeToFile()
1725 WriteModule(M, Stream); in WriteBitcodeToFile()