| /netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | PDBStringTableBuilder.cpp | 153 Error PDBStringTableBuilder::writeHeader(BinaryStreamWriter &Writer) const { in writeHeader() 159 if (auto EC = Writer.writeObject(H)) in writeHeader() 161 assert(Writer.bytesRemaining() == 0); in writeHeader() 165 Error PDBStringTableBuilder::writeStrings(BinaryStreamWriter &Writer) const { in writeStrings() 166 if (auto EC = Strings.commit(Writer)) in writeStrings() 169 assert(Writer.bytesRemaining() == 0); in writeStrings() 173 Error PDBStringTableBuilder::writeHashTable(BinaryStreamWriter &Writer) const { in writeHashTable() 176 if (auto EC = Writer.writeInteger(BucketCount)) in writeHashTable() 194 if (auto EC = Writer.writeArray(ArrayRef<ulittle32_t>(Buckets))) in writeHashTable() 197 assert(Writer.bytesRemaining() == 0); in writeHashTable() [all …]
|
| H A D | GSIStreamBuilder.cpp | 54 Error commit(BinaryStreamWriter &Writer); 130 Error GSIHashStreamBuilder::commit(BinaryStreamWriter &Writer) { in commit() argument 137 if (auto EC = Writer.writeObject(Header)) in commit() 140 if (auto EC = Writer.writeArray(makeArrayRef(HashRecords))) in commit() 142 if (auto EC = Writer.writeArray(makeArrayRef(HashBitmap))) in commit() 144 if (auto EC = Writer.writeArray(makeArrayRef(HashBuckets))) in commit() 381 static Error writePublics(BinaryStreamWriter &Writer, in writePublics() argument 387 if (Error E = Writer.writeBytes(Storage)) in writePublics() 393 static Error writeRecords(BinaryStreamWriter &Writer, in writeRecords() argument 398 return Writer.writeStreamRef(RecordsRef); in writeRecords() [all …]
|
| H A D | DbiStreamBuilder.cpp | 92 DbgStreams[(int)Type]->WriteFn = [Data](BinaryStreamWriter &Writer) { in addDbgStream() argument 93 return Writer.writeArray(Data); in addDbgStream() 294 [this](BinaryStreamWriter &Writer) { in finalizeMsfLayout() argument 295 return NewFpoData->commit(Writer); in finalizeMsfLayout() 304 [this](BinaryStreamWriter &Writer) { in finalizeMsfLayout() argument 305 return Writer.writeArray(makeArrayRef(OldFpoData)); in finalizeMsfLayout() 393 BinaryStreamWriter Writer(*DbiS); in commit() local 394 if (auto EC = Writer.writeObject(*Header)) in commit() 398 if (auto EC = M->commit(Writer)) in commit() 410 if (auto EC = Writer.writeEnum(DbiSecContribVer60)) in commit() [all …]
|
| H A D | InfoStreamBuilder.cpp | 62 BinaryStreamWriter Writer(*InfoS); in commit() local 69 if (auto EC = Writer.writeObject(H)) in commit() 72 if (auto EC = NamedStreams.commit(Writer)) in commit() 74 if (auto EC = Writer.writeInteger(0)) in commit() 77 if (auto EC = Writer.writeEnum(E)) in commit() 80 assert(Writer.bytesRemaining() == 0); in commit()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMachObjectWriter.cpp | 30 void RecordARMScatteredRelocation(MachObjectWriter *Writer, 39 void RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, 46 bool requiresExternRelocation(MachObjectWriter *Writer, 55 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 140 RecordARMScatteredHalfRelocation(MachObjectWriter *Writer, in RecordARMScatteredHalfRelocation() argument 157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordARMScatteredHalfRelocation() 170 uint32_t Value = Writer->getSymbolAddress(*A, Layout); in RecordARMScatteredHalfRelocation() 172 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in RecordARMScatteredHalfRelocation() 187 Value2 = Writer->getSymbolAddress(B->getSymbol(), Layout); in RecordARMScatteredHalfRelocation() 188 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in RecordARMScatteredHalfRelocation() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 27 bool recordScatteredRelocation(MachObjectWriter *Writer, 35 void recordTLVPRelocation(MachObjectWriter *Writer, 43 void RecordX86Relocation(MachObjectWriter *Writer, 50 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm, 59 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument 63 if (Writer->is64Bit()) in recordRelocation() 64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target, in recordRelocation() 103 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in RecordX86_64Relocation() argument 106 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-readobj/ |
| H A D | COFFImportDumper.cpp | 23 void dumpCOFFImportFile(const COFFImportFile *File, ScopedPrinter &Writer) { in dumpCOFFImportFile() argument 24 Writer.startLine() << '\n'; in dumpCOFFImportFile() 25 Writer.printString("File", File->getFileName()); in dumpCOFFImportFile() 26 Writer.printString("Format", "COFF-import-file"); in dumpCOFFImportFile() 30 case COFF::IMPORT_CODE: Writer.printString("Type", "code"); break; in dumpCOFFImportFile() 31 case COFF::IMPORT_DATA: Writer.printString("Type", "data"); break; in dumpCOFFImportFile() 32 case COFF::IMPORT_CONST: Writer.printString("Type", "const"); break; in dumpCOFFImportFile() 37 Writer.printString("Name type", "ordinal"); in dumpCOFFImportFile() 40 Writer.printString("Name type", "name"); in dumpCOFFImportFile() 43 Writer.printString("Name type", "noprefix"); in dumpCOFFImportFile() [all …]
|
| H A D | llvm-readobj.cpp | 445 createDumper(const ObjectFile &Obj, ScopedPrinter &Writer) { in createDumper() argument 447 return createCOFFDumper(*COFFObj, Writer); in createDumper() 450 return createELFDumper(*ELFObj, Writer); in createDumper() 453 return createMachODumper(*MachOObj, Writer); in createDumper() 456 return createWasmDumper(*WasmObj, Writer); in createDumper() 459 return createXCOFFDumper(*XObj, Writer); in createDumper() 466 static void dumpObject(ObjectFile &Obj, ScopedPrinter &Writer, in dumpObject() argument 478 Expected<std::unique_ptr<ObjDumper>> DumperOrErr = createDumper(Obj, Writer); in dumpObject() 484 Writer.startLine() << "\n"; in dumpObject() 485 Writer.printString("File", FileStr); in dumpObject() [all …]
|
| H A D | ObjDumper.h | 37 ObjDumper(ScopedPrinter &Writer, StringRef ObjName); 132 ScopedPrinter &Writer); 135 ScopedPrinter &Writer); 138 ScopedPrinter &Writer); 141 ScopedPrinter &Writer); 144 ScopedPrinter &Writer); 147 ScopedPrinter &Writer); 149 void dumpCodeViewMergedTypes(ScopedPrinter &Writer,
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/ |
| H A D | fdr_log_writer_test.cc | 46 FDRLogWriter Writer(B); in TEST() local 53 ASSERT_THAT(Writer.writeMetadataRecords(Preamble), in TEST() 55 ASSERT_TRUE(Writer.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>(1)); in TEST() 57 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, 1)); in TEST() 59 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Exit, 1, 1)); in TEST() 84 FDRLogWriter Writer(B); in TEST() local 94 ASSERT_THAT(Writer.writeMetadataRecords(Preamble), in TEST() 96 ASSERT_TRUE(Writer.writeMetadata<MetadataRecord::RecordKinds::NewCPUId>( in TEST() 100 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Enter, 1, TSC++)); in TEST() 102 Writer.writeFunction(FDRLogWriter::FunctionRecordKind::Exit, 1, TSC++)); in TEST() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Serialization/ |
| H A D | ASTRecordWriter.h | 28 ASTWriter *Writer; variable 59 : DataStreamBasicWriter(W.getASTContext()), Writer(&W), Record(&Record) {} in ASTRecordWriter() 64 : DataStreamBasicWriter(Parent.getASTContext()), Writer(Parent.Writer), in ASTRecordWriter() 90 uint64_t Offset = Writer->Stream.GetCurrentBitNo(); 92 Writer->Stream.EmitRecord(Code, *Record, Abbrev); 100 PrepareToEmit(Writer->Stream.GetCurrentBitNo()); 101 Writer->Stream.EmitRecord(Code, *Record, Abbrev); 102 return Writer->Stream.GetCurrentBitNo(); 132 return Writer->AddSourceLocation(Loc, *Record); in AddSourceLocation() 140 return Writer->AddSourceRange(Range, *Record); in AddSourceRange() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-xray/ |
| H A D | xray-converter.cpp | 98 support::endian::Writer Writer(OS, support::endianness::little); in exportAsRAWv1() local 100 Writer.write(FH.Version); in exportAsRAWv1() 101 Writer.write(FH.Type); in exportAsRAWv1() 107 Writer.write(Bitfield); in exportAsRAWv1() 108 Writer.write(FH.CycleFrequency); in exportAsRAWv1() 112 Writer.write(Padding4B); in exportAsRAWv1() 113 Writer.write(Padding4B); in exportAsRAWv1() 114 Writer.write(Padding4B); in exportAsRAWv1() 115 Writer.write(Padding4B); in exportAsRAWv1() 123 Writer.write(R.RecordType); in exportAsRAWv1() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/ |
| H A D | SimpleTypeSerializer.cpp | 17 static void addPadding(BinaryStreamWriter &Writer) { in addPadding() argument 18 uint32_t Align = Writer.getOffset() % 4; in addPadding() 25 cantFail(Writer.writeInteger(Pad)); in addPadding() 36 BinaryStreamWriter Writer(ScratchBuffer, support::little); in serialize() local 37 TypeRecordMapping Mapping(Writer); in serialize() 41 cantFail(Writer.writeObject(DummyPrefix)); in serialize() 50 addPadding(Writer); in serialize() 54 Prefix->RecordLen = Writer.getOffset() - sizeof(uint16_t); in serialize() 56 return {ScratchBuffer.data(), Writer.getOffset()}; in serialize()
|
| H A D | CodeViewRecordIO.cpp | 82 return Writer->padToAlignment(Align); in padToAlignment() 107 if (auto EC = Writer->writeBytes(Bytes)) in mapByteVectorTail() 137 if (auto EC = Writer->writeInteger(TypeInd.getIndex())) in mapInteger() 213 if (auto EC = Writer->writeCString(S)) in mapStringZ() 238 if (auto EC = Writer->writeBytes(Guid.Guid)) in mapGuid() 325 if (auto EC = Writer->writeInteger<uint16_t>(LF_CHAR)) in writeEncodedSignedInteger() 327 if (auto EC = Writer->writeInteger<int8_t>(Value)) in writeEncodedSignedInteger() 330 if (auto EC = Writer->writeInteger<uint16_t>(LF_SHORT)) in writeEncodedSignedInteger() 332 if (auto EC = Writer->writeInteger<int16_t>(Value)) in writeEncodedSignedInteger() 335 if (auto EC = Writer->writeInteger<uint16_t>(LF_LONG)) in writeEncodedSignedInteger() [all …]
|
| H A D | SymbolSerializer.cpp | 23 : Storage(Allocator), Stream(RecordBuffer, support::little), Writer(Stream), in SymbolSerializer() 24 Mapping(Writer, Container) {} in SymbolSerializer() 29 Writer.setOffset(0); in visitSymbolBegin() 47 uint32_t RecordEnd = Writer.getOffset(); in visitSymbolEnd() 49 Writer.setOffset(0); in visitSymbolEnd() 50 if (auto EC = Writer.writeInteger(Length)) in visitSymbolEnd()
|
| H A D | DebugStringTableSubsection.cpp | 64 Error DebugStringTableSubsection::commit(BinaryStreamWriter &Writer) const { in commit() 65 uint32_t Begin = Writer.getOffset(); in commit() 69 if (auto EC = Writer.writeCString(StringRef())) in commit() 75 Writer.setOffset(Offset); in commit() 76 if (auto EC = Writer.writeCString(S)) in commit() 78 assert(Writer.getOffset() <= End); in commit() 81 Writer.setOffset(End); in commit()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackWriter.h | 40 class Writer { 50 Writer(raw_ostream &OS, bool Compatible = false); 52 Writer(const Writer &) = delete; 53 Writer &operator=(const Writer &) = delete; 123 support::endian::Writer EW;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/ |
| H A D | MsgPackWriter.cpp | 20 Writer::Writer(raw_ostream &OS, bool Compatible) in Writer() function in Writer 23 void Writer::writeNil() { EW.write(FirstByte::Nil); } in writeNil() 25 void Writer::write(bool b) { EW.write(b ? FirstByte::True : FirstByte::False); } in write() 27 void Writer::write(int64_t i) { in write() 60 void Writer::write(uint64_t u) { in write() 88 void Writer::write(double d) { in write() 101 void Writer::write(StringRef s) { in write() 121 void Writer::write(MemoryBufferRef Buffer) { in write() 141 void Writer::writeArraySize(uint32_t Size) { in writeArraySize() 157 void Writer::writeMapSize(uint32_t Size) { in writeMapSize() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/ProfileData/ |
| H A D | SampleProfWriter.cpp | 204 support::endian::Writer Writer(OS, support::little); in writeNameTable() local 206 Writer.write(MD5Hash(N)); in writeNameTable() 517 support::endian::Writer Writer(*OutputStream, support::little); in writeFuncOffsetTable() local 518 Writer.write(FuncOffsetTableStart); in writeFuncOffsetTable() 587 support::endian::Writer Writer(*OutputStream, support::little); in allocSecHdrTable() local 589 Writer.write(static_cast<uint64_t>(SectionHdrLayout.size())); in allocSecHdrTable() 592 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() 593 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() 594 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() 595 Writer.write(static_cast<uint64_t>(-1)); in allocSecHdrTable() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/internal/ |
| H A D | write.d | 31 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 126 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 160 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 194 formatValueImplUlong!(Writer, Char)(w, arg, negative, f); 198 private void formatValueImplUlong(Writer, Char)(auto ref Writer w, ulong arg, in bool negative, 610 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, 1020 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 1040 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 1055 void formatValueImpl(Writer, T, Char)(auto ref Writer w, const(T) obj, scope const ref FormatSpec!C… 1145 void formatValueImpl(Writer, T, Char)(auto ref Writer w, scope const(T) obj, [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MachObjectWriter.cpp | 43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 152 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, in recordRelocation() argument 155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation() 239 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in recordRelocation() 284 Value += (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A, Layout)) - in recordRelocation() 285 (!A_Base || !A_Base->getFragment() ? 0 : Writer->getSymbolAddress( in recordRelocation() 287 Value -= (!B->getFragment() ? 0 : Writer->getSymbolAddress(*B, Layout)) - in recordRelocation() 288 (!B_Base || !B_Base->getFragment() ? 0 : Writer->getSymbolAddress( in recordRelocation() 296 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in recordRelocation() 358 Value += Writer->getSymbolAddress(*Symbol, Layout); in recordRelocation() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/ |
| H A D | MachOUtils.cpp | 255 const object::MachOObjectFile &Obj, MachObjectWriter &Writer, in transferSegmentAndSections() argument 289 Writer.W.OS.write(reinterpret_cast<char *>(&Segment), sizeof(Segment)); in transferSegmentAndSections() 300 Writer.W.OS.write(reinterpret_cast<char *>(&Sect), sizeof(Sect)); in transferSegmentAndSections() 307 MCAsmLayout &Layout, MachObjectWriter &Writer) { in createDwarfSegment() argument 308 Writer.writeSegmentLoadCommand("__DWARF", NumSections, VMAddr, in createDwarfSegment() 323 Writer.writeSection(Layout, *Sec, VMAddr, FileOffset, 0, 0, 0); in createDwarfSegment() 362 auto &Writer = static_cast<MachObjectWriter &>(MCAsm.getWriter()); in generateDsymCompanion() local 390 bool Is64Bit = Writer.is64Bit(); in generateDsymCompanion() 509 Writer.writeHeader(MachO::MH_DSYM, NumLoadCommands, LoadCommandSize, false); in generateDsymCompanion() 514 Writer.W.write<uint32_t>(UUIDCmd.cmd); in generateDsymCompanion() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeViewRecordIO.h | 46 return Writer->getOffset(); in getCurrentOffset() 58 explicit CodeViewRecordIO(BinaryStreamWriter &Writer) : Writer(&Writer) {} in CodeViewRecordIO() argument 70 return (Streamer != nullptr) && (Reader == nullptr) && (Writer == nullptr); in isStreaming() 73 return (Reader != nullptr) && (Streamer == nullptr) && (Writer == nullptr); in isReading() 76 return (Writer != nullptr) && (Streamer == nullptr) && (Reader == nullptr); in isWriting() 91 return Writer->writeObject(Value); in mapObject() 109 return Writer->writeInteger(Value); 158 if (auto EC = Writer->writeInteger(Size)) 263 BinaryStreamWriter *Writer = nullptr; variable
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/contrib/ada/ |
| H A D | zlib-streams.adb | 28 Close (Stream.Writer); 82 Init_Filter (Stream.Writer, Back_Compressed); 109 Flush (Stream.Writer, Buffer, Last, Mode); 123 return Is_Open (Stream.Reader) or else Is_Open (Stream.Writer); 204 Write (Stream.Writer, Item, No_Flush); 213 return Total_In (Stream.Writer); 222 return Total_Out (Stream.Writer);
|
| /netbsd-src/common/dist/zlib/contrib/ada/ |
| H A D | zlib-streams.adb | 28 Close (Stream.Writer); 82 Init_Filter (Stream.Writer, Back_Compressed); 109 Flush (Stream.Writer, Buffer, Last, Mode); 123 return Is_Open (Stream.Reader) or else Is_Open (Stream.Writer); 204 Write (Stream.Writer, Item, No_Flush); 213 return Total_In (Stream.Writer); 222 return Total_Out (Stream.Writer);
|