| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | PDBStringTableBuilder.cpp | 155 Error PDBStringTableBuilder::writeHeader(BinaryStreamWriter &Writer) const { in writeHeader() 161 if (auto EC = Writer.writeObject(H)) in writeHeader() 163 assert(Writer.bytesRemaining() == 0); in writeHeader() 167 Error PDBStringTableBuilder::writeStrings(BinaryStreamWriter &Writer) const { in writeStrings() 168 if (auto EC = Strings.commit(Writer)) in writeStrings() 171 assert(Writer.bytesRemaining() == 0); in writeStrings() 175 Error PDBStringTableBuilder::writeHashTable(BinaryStreamWriter &Writer) const { in writeHashTable() 178 if (auto EC = Writer.writeInteger(BucketCount)) in writeHashTable() 196 if (auto EC = Writer.writeArray(ArrayRef<ulittle32_t>(Buckets))) in writeHashTable() 199 assert(Writer in writeHashTable() [all...] |
| H A D | GSIStreamBuilder.cpp | 57 Error commit(BinaryStreamWriter &Writer); 133 Error GSIHashStreamBuilder::commit(BinaryStreamWriter &Writer) { in commit() argument 140 if (auto EC = Writer.writeObject(Header)) in commit() 143 if (auto EC = Writer.writeArray(ArrayRef(HashRecords))) in commit() 145 if (auto EC = Writer.writeArray(ArrayRef(HashBitmap))) in commit() 147 if (auto EC = Writer.writeArray(ArrayRef(HashBuckets))) in commit() 391 static Error writePublics(BinaryStreamWriter &Writer, in writePublics() argument 397 if (Error E = Writer.writeBytes(Storage)) in writePublics() 403 static Error writeRecords(BinaryStreamWriter &Writer, in writeRecords() argument 408 return Writer.writeStreamRef(RecordsRef); in writeRecords() [all …]
|
| H A D | InfoStreamBuilder.cpp | 61 BinaryStreamWriter Writer(*InfoS); in commit() local 68 if (auto EC = Writer.writeObject(H)) in commit() 71 if (auto EC = NamedStreams.commit(Writer)) in commit() 73 if (auto EC = Writer.writeInteger(0)) in commit() 76 if (auto EC = Writer.writeEnum(E)) in commit() 79 assert(Writer.bytesRemaining() == 0); in commit()
|
| H A D | DbiStreamBuilder.cpp | 92 DbgStreams[(int)Type]->WriteFn = [Data](BinaryStreamWriter &Writer) { in addDbgStream() 93 return Writer.writeArray(Data); in addDbgStream() 294 [this](BinaryStreamWriter &Writer) { in finalizeMsfLayout() 295 return NewFpoData->commit(Writer); in finalizeMsfLayout() 304 [this](BinaryStreamWriter &Writer) { in finalizeMsfLayout() 305 return Writer.writeArray(ArrayRef(OldFpoData)); in finalizeMsfLayout() 392 BinaryStreamWriter Writer(*DbiS); in commit() 393 if (auto EC = Writer.writeObject(*Header)) in commit() 397 if (auto EC = M->commit(Writer)) in commit() 409 if (auto EC = Writer in commit() 91 __anon1d60072f0102(BinaryStreamWriter &Writer) addDbgStream() argument 293 __anon1d60072f0202(BinaryStreamWriter &Writer) finalizeMsfLayout() argument 303 __anon1d60072f0302(BinaryStreamWriter &Writer) finalizeMsfLayout() argument 390 BinaryStreamWriter Writer(*DbiS); commit() local [all...] |
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 28 bool recordScatteredRelocation(MachObjectWriter *Writer, 35 void recordTLVPRelocation(MachObjectWriter *Writer, 42 void RecordX86Relocation(MachObjectWriter *Writer, 48 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm, 56 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument 59 if (Writer->is64Bit()) in recordRelocation() 60 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() 62 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() 100 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in RecordX86_64Relocation() argument 109 Writer->getFragmentAddress(Asm, Fragment) + Fixup.getOffset(); in RecordX86_64Relocation() [all …]
|
| /freebsd/contrib/llvm-project/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", File->getFileFormatName()); 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 in dumpCOFFImportFile() [all...] |
| H A D | llvm-readobj.cpp | 343 createDumper(const ObjectFile &Obj, ScopedPrinter &Writer) { in createDumper() argument 345 return createCOFFDumper(*COFFObj, Writer); in createDumper() 348 return createELFDumper(*ELFObj, Writer); in createDumper() 351 return createMachODumper(*MachOObj, Writer); in createDumper() 354 return createWasmDumper(*WasmObj, Writer); in createDumper() 357 return createXCOFFDumper(*XObj, Writer); in createDumper() 364 static void dumpObject(ObjectFile &Obj, ScopedPrinter &Writer, in dumpObject() argument 377 Expected<std::unique_ptr<ObjDumper>> DumperOrErr = createDumper(Obj, Writer); in dumpObject() 545 static void dumpArchive(const Archive *Arc, ScopedPrinter &Writer) { in dumpArchive() argument 557 dumpObject(*Obj, Writer, Arc); in dumpArchive() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | PGOCtxProfWriter.cpp | 32 : Writer(Out, 0), in PGOCtxProfileWriter() 37 Writer.EnterBlockInfoBlock(); in PGOCtxProfileWriter() 40 Writer.EmitRecord(bitc::BLOCKINFO_CODE_SETBID, in PGOCtxProfileWriter() 42 Writer.EmitRecord(bitc::BLOCKINFO_CODE_BLOCKNAME, in PGOCtxProfileWriter() 50 Writer.EmitRecord(bitc::BLOCKINFO_CODE_SETRECORDNAME, Data); in PGOCtxProfileWriter() 71 Writer.ExitBlock(); in PGOCtxProfileWriter() 72 Writer.EnterSubblock(PGOCtxProfileBlockIDs::ProfileMetadataBlockID, CodeLen); in PGOCtxProfileWriter() 74 Writer.EmitRecord(PGOCtxProfileRecords::Version, in PGOCtxProfileWriter() 79 Writer.EmitCode(bitc::UNABBREV_RECORD); in writeCounters() 80 Writer.EmitVBR(PGOCtxProfileRecords::Counters, VBREncodingBits); in writeCounters() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMachObjectWriter.cpp | 30 void recordARMScatteredRelocation(MachObjectWriter *Writer, 36 void recordARMScatteredHalfRelocation(MachObjectWriter *Writer, 42 bool requiresExternRelocation(MachObjectWriter *Writer, 51 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 135 MachObjectWriter *Writer, const MCAssembler &Asm, in recordARMScatteredHalfRelocation() argument 160 uint32_t Value = Writer->getSymbolAddress(*A); in recordARMScatteredHalfRelocation() 162 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in recordARMScatteredHalfRelocation() 175 Value2 = Writer->getSymbolAddress(*SB); in recordARMScatteredHalfRelocation() 176 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in recordARMScatteredHalfRelocation() 227 Writer->addRelocation(nullptr, Fragment->getParent(), MRE); in recordARMScatteredHalfRelocation() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CGData/ |
| H A D | StableFunctionMapRecord.cpp | 88 support::endian::Writer Writer(OS, endianness::little); in serialize() local 92 Writer.write<uint32_t>(Names.size()); in serialize() 95 const uint64_t NamesByteSizeOffset = Writer.OS.tell(); in serialize() 96 Writer.write<uint64_t>(0); in serialize() 98 Writer.OS << Name << '\0'; in serialize() 100 uint32_t Padding = offsetToAlignment(Writer.OS.tell(), Align(4)); in serialize() 102 Writer.OS << '\0'; in serialize() 104 Writer.OS.tell() - NamesByteSizeOffset - sizeof(NamesByteSizeOffset); in serialize() 109 Writer.write<uint32_t>(FuncEntries.size()); in serialize() 112 Writer.write<stable_hash>(FuncRef->Hash); in serialize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | SimpleTypeSerializer.cpp | 19 static void addPadding(BinaryStreamWriter &Writer) { in addPadding() argument 20 uint32_t Align = Writer.getOffset() % 4; in addPadding() 27 cantFail(Writer.writeInteger(Pad)); in addPadding() 38 BinaryStreamWriter Writer(ScratchBuffer, llvm::endianness::little); in serialize() local 39 TypeRecordMapping Mapping(Writer); in serialize() 43 cantFail(Writer.writeObject(DummyPrefix)); in serialize() 52 addPadding(Writer); in serialize() 56 Prefix->RecordLen = Writer.getOffset() - sizeof(uint16_t); in serialize() 58 return {ScratchBuffer.data(), static_cast<size_t>(Writer.getOffset())}; in serialize()
|
| H A D | CodeViewRecordIO.cpp | 85 return Writer->padToAlignment(Align); in padToAlignment() 110 if (auto EC = Writer->writeBytes(Bytes)) in mapByteVectorTail() 140 if (auto EC = Writer->writeInteger(TypeInd.getIndex())) in mapInteger() 219 if (auto EC = Writer->writeCString(S)) in mapStringZ() 244 if (auto EC = Writer->writeBytes(Guid.Guid)) in mapGuid() 342 if (auto EC = Writer->writeInteger<int16_t>(Value)) in writeEncodedSignedInteger() 346 if (auto EC = Writer->writeInteger<uint16_t>(LF_CHAR)) in writeEncodedSignedInteger() 348 if (auto EC = Writer->writeInteger<int8_t>(Value)) in writeEncodedSignedInteger() 352 if (auto EC = Writer->writeInteger<uint16_t>(LF_SHORT)) in writeEncodedSignedInteger() 354 if (auto EC = Writer->writeInteger<int16_t>(Value)) in writeEncodedSignedInteger() [all …]
|
| H A D | SymbolSerializer.cpp | 22 Writer(Stream), Mapping(Writer, Container) {} in SymbolSerializer() 27 Writer.setOffset(0); in visitSymbolBegin() 45 uint32_t RecordEnd = Writer.getOffset(); in visitSymbolEnd() 47 Writer.setOffset(0); in visitSymbolEnd() 48 if (auto EC = Writer.writeInteger(Length)) in visitSymbolEnd()
|
| H A D | DebugStringTableSubsection.cpp | 63 Error DebugStringTableSubsection::commit(BinaryStreamWriter &Writer) const { in commit() 64 uint32_t Begin = Writer.getOffset(); in commit() 68 if (auto EC = Writer.writeCString(StringRef())) in commit() 74 Writer.setOffset(Offset); in commit() 75 if (auto EC = Writer.writeCString(S)) in commit() 77 assert(Writer.getOffset() <= End); in commit() 80 Writer.setOffset(End); in commit()
|
| H A D | DebugSubsectionRecord.cpp | 67 Error DebugSubsectionRecordBuilder::commit(BinaryStreamWriter &Writer, in commit() argument 69 assert(Writer.getOffset() % alignOf(Container) == 0 && in commit() 80 if (auto EC = Writer.writeObject(Header)) in commit() 83 if (auto EC = Subsection->commit(Writer)) in commit() 86 if (auto EC = Writer.writeStreamRef(Contents.getRecordData())) in commit() 89 if (auto EC = Writer.padToAlignment(4)) in commit()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTRecordWriter.h | 33 ASTWriter *Writer; variable 65 : DataStreamBasicWriter(Context), Writer(&W), Record(&Record) {} in ASTRecordWriter() 70 : DataStreamBasicWriter(Parent.getASTContext()), Writer(Parent.Writer), in ASTRecordWriter() 96 uint64_t Offset = Writer->Stream.GetCurrentBitNo(); 98 Writer->Stream.EmitRecord(Code, *Record, Abbrev); 106 PrepareToEmit(Writer->Stream.GetCurrentBitNo()); 107 Writer->Stream.EmitRecord(Code, *Record, Abbrev); 108 return Writer->Stream.GetCurrentBitNo(); 150 return Writer->AddSourceLocation(Loc, *Record); in AddSourceLocation() 177 return Writer->AddSourceRange(Range, *Record); in AddSourceRange() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-xray/ |
| H A D | xray-converter.cpp | 107 support::endian::Writer Writer(OS, llvm::endianness::little); in exportAsRAWv1() local 109 Writer.write(FH.Version); in exportAsRAWv1() 110 Writer.write(FH.Type); in exportAsRAWv1() 116 Writer.write(Bitfield); in exportAsRAWv1() 117 Writer.write(FH.CycleFrequency); in exportAsRAWv1() 121 Writer.write(Padding4B); in exportAsRAWv1() 122 Writer.write(Padding4B); in exportAsRAWv1() 123 Writer.write(Padding4B); in exportAsRAWv1() 124 Writer in exportAsRAWv1() [all...] |
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackWriter.h | 42 class Writer { 52 LLVM_ABI Writer(raw_ostream &OS, bool Compatible = false); 54 Writer(const Writer &) = delete; 55 Writer &operator=(const Writer &) = delete; 125 support::endian::Writer EW;
|
| /freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
| H A D | MsgPackWriter.cpp | 22 Writer::Writer(raw_ostream &OS, bool Compatible) in Writer() function in Writer 25 void Writer::writeNil() { EW.write(FirstByte::Nil); } in writeNil() 27 void Writer::write(bool b) { EW.write(b ? FirstByte::True : FirstByte::False); } in write() 29 void Writer::write(int64_t i) { in write() 62 void Writer::write(uint64_t u) { in write() 90 void Writer::write(double d) { in write() 103 void Writer::write(StringRef s) { in write() 123 void Writer::write(MemoryBufferRef Buffer) { in write() 143 void Writer::writeArraySize(uint32_t Size) { in writeArraySize() 159 void Writer::writeMapSize(uint32_t Size) { in writeMapSize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MachObjectWriter.cpp | 43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 148 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in recordRelocation() argument 213 const MCSymbol *A_Base = Writer->getAtom(*A); in recordRelocation() 214 const MCSymbol *B_Base = Writer->getAtom(*B); in recordRelocation() 228 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in recordRelocation() 268 (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A)) - in recordRelocation() 270 : Writer->getSymbolAddress(*A_Base)); in recordRelocation() 272 (!B->getFragment() ? 0 : Writer->getSymbolAddress(*B)) - in recordRelocation() 274 : Writer->getSymbolAddress(*B_Base)); in recordRelocation() 281 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in recordRelocation() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/profile/ |
| H A D | InstrProfilingWriter.c | 217 static int writeValueProfData(ProfDataWriter *Writer, in writeValueProfData() argument 227 BufferIO = lprofCreateBufferIO(Writer); in writeValueProfData() 241 COMPILER_RT_VISIBILITY int lprofWriteData(ProfDataWriter *Writer, in lprofWriteData() argument 258 return lprofWriteDataImpl(Writer, DataBegin, DataEnd, CountersBegin, in lprofWriteData() 265 ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, in lprofWriteDataImpl() argument 328 if (Writer->Write(Writer, IOVec, sizeof(IOVec) / sizeof(*IOVec))) in lprofWriteDataImpl() 332 if (__llvm_write_binary_ids(Writer) == -1) in lprofWriteDataImpl() 349 if (Writer->Write(Writer, IOVecData, sizeof(IOVecData) / sizeof(*IOVecData))) in lprofWriteDataImpl() 358 return writeValueProfData(Writer, VPDataReader, DataBegin, DataEnd); in lprofWriteDataImpl() 366 int lprofWriteOneBinaryId(ProfDataWriter *Writer, uint64_t BinaryIdLen, in lprofWriteOneBinaryId() argument [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | SARIFDiagnosticPrinter.h | 45 bool hasSarifWriter() const { return Writer != nullptr; } in hasSarifWriter() 48 assert(Writer && "SarifWriter not set!"); in getSarifWriter() 49 return *Writer; in getSarifWriter() 53 Writer = std::move(SarifWriter); in setSarifWriter() 71 std::unique_ptr<SarifDocumentWriter> Writer; variable
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | PDBStringTableBuilder.h | 54 LLVM_ABI Error commit(BinaryStreamWriter &Writer) const; 60 Error writeHeader(BinaryStreamWriter &Writer) const; 61 Error writeStrings(BinaryStreamWriter &Writer) const; 62 Error writeHashTable(BinaryStreamWriter &Writer) const; 63 Error writeEpilogue(BinaryStreamWriter &Writer) const;
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeViewRecordIO.h | 47 return Writer->getOffset(); in getCurrentOffset() 59 explicit CodeViewRecordIO(BinaryStreamWriter &Writer) : Writer(&Writer) {} in CodeViewRecordIO() argument 71 return (Streamer != nullptr) && (Reader == nullptr) && (Writer == nullptr); in isStreaming() 74 return (Reader != nullptr) && (Streamer == nullptr) && (Writer == nullptr); in isReading() 77 return (Writer != nullptr) && (Streamer == nullptr) && (Reader == nullptr); in isWriting() 92 return Writer->writeObject(Value); in mapObject() 110 return Writer->writeInteger(Value); 159 if (auto EC = Writer->writeInteger(Size)) 265 BinaryStreamWriter *Writer = nullptr; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | CodeViewYAMLTypeHashing.cpp | 70 BinaryStreamWriter Writer(Buffer, llvm::endianness::little); in toDebugH() local 72 cantFail(Writer.writeInteger(DebugH.Magic)); in toDebugH() 73 cantFail(Writer.writeInteger(DebugH.Version)); in toDebugH() 74 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH() 81 cantFail(Writer.writeFixedString(Hash)); in toDebugH() 83 assert(Writer.bytesRemaining() == 0); in toDebugH()
|