Home
last modified time | relevance | path

Searched refs:Writer (Results 1 – 25 of 168) sorted by relevance

1234567

/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBStringTableBuilder.cpp155 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 DGSIStreamBuilder.cpp56 Error commit(BinaryStreamWriter &Writer);
132 Error GSIHashStreamBuilder::commit(BinaryStreamWriter &Writer) { in commit()
139 if (auto EC = Writer.writeObject(Header)) in commit()
142 if (auto EC = Writer.writeArray(ArrayRef(HashRecords))) in commit()
144 if (auto EC = Writer.writeArray(ArrayRef(HashBitmap))) in commit()
146 if (auto EC = Writer.writeArray(ArrayRef(HashBuckets))) in commit()
383 static Error writePublics(BinaryStreamWriter &Writer, in writePublics()
389 if (Error E = Writer.writeBytes(Storage)) in writePublics()
395 static Error writeRecords(BinaryStreamWriter &Writer, in writeRecords()
400 return Writer in writeRecords()
131 commit(BinaryStreamWriter & Writer) commit() argument
382 writePublics(BinaryStreamWriter & Writer,ArrayRef<BulkPublic> Publics) writePublics() argument
394 writeRecords(BinaryStreamWriter & Writer,ArrayRef<CVSymbol> Records) writeRecords() argument
404 BinaryStreamWriter Writer(Stream); commitSymbolRecordStream() local
447 BinaryStreamWriter Writer(Stream); commitPublicsHashStream() local
475 BinaryStreamWriter Writer(Stream); commitGlobalsHashStream() local
[all...]
H A DInfoStreamBuilder.cpp62 BinaryStreamWriter Writer(*InfoS); in commit()
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()
60 BinaryStreamWriter Writer(*InfoS); commit() local
H A DDbiStreamBuilder.cpp92 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 DX86MachObjectWriter.cpp27 bool recordScatteredRelocation(MachObjectWriter *Writer,
34 void recordTLVPRelocation(MachObjectWriter *Writer,
41 void RecordX86Relocation(MachObjectWriter *Writer,
47 void RecordX86_64Relocation(MachObjectWriter *Writer, MCAssembler &Asm,
55 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, in recordRelocation() argument
58 if (Writer->is64Bit()) in recordRelocation()
59 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
61 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation()
96 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in RecordX86_64Relocation() argument
98 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in RecordX86_64Relocation()
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DCOFFImportDumper.cpp23 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 Dllvm-readobj.cpp342 createDumper(const ObjectFile &Obj, ScopedPrinter &Writer) { in createDumper() argument
344 return createCOFFDumper(*COFFObj, Writer); in createDumper()
347 return createELFDumper(*ELFObj, Writer); in createDumper()
350 return createMachODumper(*MachOObj, Writer); in createDumper()
353 return createWasmDumper(*WasmObj, Writer); in createDumper()
356 return createXCOFFDumper(*XObj, Writer); in createDumper()
363 static void dumpObject(ObjectFile &Obj, ScopedPrinter &Writer, in dumpObject() argument
376 Expected<std::unique_ptr<ObjDumper>> DumperOrErr = createDumper(Obj, Writer); in dumpObject()
544 static void dumpArchive(const Archive *Arc, ScopedPrinter &Writer) { in dumpArchive() argument
556 dumpObject(*Obj, Writer, Arc); in dumpArchive()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp29 void recordARMScatteredRelocation(MachObjectWriter *Writer,
35 void recordARMScatteredHalfRelocation(MachObjectWriter *Writer,
41 bool requiresExternRelocation(MachObjectWriter *Writer,
50 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
134 MachObjectWriter *Writer, const MCAssembler &Asm, in recordARMScatteredHalfRelocation() argument
147 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordARMScatteredHalfRelocation()
160 uint32_t Value = Writer->getSymbolAddress(*A, Asm); in recordARMScatteredHalfRelocation()
162 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent()); in recordARMScatteredHalfRelocation()
177 Value2 = Writer->getSymbolAddress(B->getSymbol(), Asm); in recordARMScatteredHalfRelocation()
178 FixedValue -= Writer->getSectionAddress(SB->getFragment()->getParent()); in recordARMScatteredHalfRelocation()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h33 ASTWriter *Writer; variable
64 : DataStreamBasicWriter(W.getASTContext()), Writer(&W), Record(&Record) {} in ASTRecordWriter()
69 : DataStreamBasicWriter(Parent.getASTContext()), Writer(Parent.Writer), in ASTRecordWriter()
95 uint64_t Offset = Writer->Stream.GetCurrentBitNo();
97 Writer->Stream.EmitRecord(Code, *Record, Abbrev);
105 PrepareToEmit(Writer->Stream.GetCurrentBitNo());
106 Writer->Stream.EmitRecord(Code, *Record, Abbrev);
107 return Writer->Stream.GetCurrentBitNo();
140 return Writer->AddSourceLocation(Loc, *Record, Seq);
153 return Writer->AddSourceRange(Range, *Record, Seq);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DSimpleTypeSerializer.cpp18 static void addPadding(BinaryStreamWriter &Writer) { in addPadding() argument
19 uint32_t Align = Writer.getOffset() % 4; in addPadding()
26 cantFail(Writer.writeInteger(Pad)); in addPadding()
37 BinaryStreamWriter Writer(ScratchBuffer, llvm::endianness::little); in serialize() local
38 TypeRecordMapping Mapping(Writer); in serialize()
42 cantFail(Writer.writeObject(DummyPrefix)); in serialize()
51 addPadding(Writer); in serialize()
55 Prefix->RecordLen = Writer.getOffset() - sizeof(uint16_t); in serialize()
57 return {ScratchBuffer.data(), static_cast<size_t>(Writer.getOffset())}; in serialize()
H A DCodeViewRecordIO.cpp85 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 DSymbolSerializer.cpp23 Writer(Stream), Mapping(Writer, Container) {} in SymbolSerializer()
28 Writer.setOffset(0); in visitSymbolBegin()
46 uint32_t RecordEnd = Writer.getOffset(); in visitSymbolEnd()
48 Writer.setOffset(0); in visitSymbolEnd()
49 if (auto EC = Writer.writeInteger(Length)) in visitSymbolEnd()
H A DDebugStringTableSubsection.cpp64 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()
H A DDebugSubsectionRecord.cpp67 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/llvm/tools/llvm-xray/
H A Dxray-converter.cpp107 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/lib/ProfileData/
H A DPGOCtxProfWriter.cpp20 Writer.EmitCode(bitc::UNABBREV_RECORD); in writeCounters()
21 Writer.EmitVBR(PGOCtxProfileRecords::Counters, VBREncodingBits); in writeCounters()
22 Writer.EmitVBR(Node.counters_size(), VBREncodingBits); in writeCounters()
24 Writer.EmitVBR64(Node.counters()[I], VBREncodingBits); in writeCounters()
33 Writer.EnterSubblock(PGOCtxProfileBlockIDs::ContextNodeBlockID, CodeLen); in writeImpl()
34 Writer.EmitRecord(PGOCtxProfileRecords::Guid, in writeImpl()
37 Writer.EmitRecord(PGOCtxProfileRecords::CalleeIndex, in writeImpl()
44 Writer.ExitBlock(); in writeImpl()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackWriter.h41 class Writer {
51 Writer(raw_ostream &OS, bool Compatible = false);
53 Writer(const Writer &) = delete;
54 Writer &operator=(const Writer &) = delete;
124 support::endian::Writer EW;
/freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/
H A DMsgPackWriter.cpp22 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 DAArch64MachObjectWriter.cpp43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
149 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in recordRelocation() argument
151 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); in recordRelocation()
217 const MCSymbol *A_Base = Writer->getAtom(*A); in recordRelocation()
220 const MCSymbol *B_Base = Writer->getAtom(*B); in recordRelocation()
235 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); in recordRelocation()
280 Value += (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A, Asm)) - in recordRelocation()
283 : Writer->getSymbolAddress(*A_Base, Asm)); in recordRelocation()
284 Value -= (!B->getFragment() ? 0 : Writer->getSymbolAddress(*B, Asm)) - in recordRelocation()
287 : Writer->getSymbolAddress(*B_Base, Asm)); in recordRelocation()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingWriter.c217 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
257 return lprofWriteDataImpl(Writer, DataBegin, DataEnd, CountersBegin, in lprofWriteData()
264 lprofWriteDataImpl(ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, in lprofWriteDataImpl() argument
327 if (Writer->Write(Writer, IOVec, sizeof(IOVec) / sizeof(*IOVec))) in lprofWriteDataImpl()
331 if (__llvm_write_binary_ids(Writer) == -1) in lprofWriteDataImpl()
348 if (Writer->Write(Writer, IOVecData, sizeof(IOVecData) / sizeof(*IOVecData))) in lprofWriteDataImpl()
357 return writeValueProfData(Writer, VPDataReader, DataBegin, DataEnd); in lprofWriteDataImpl()
365 int lprofWriteOneBinaryId(ProfDataWriter *Writer, uint64_t BinaryIdLen, in lprofWriteOneBinaryId() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h46 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
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DPGOCtxProfWriter.h63 BitstreamWriter Writer; variable
72 : Writer(Out, 0) {
73 Writer.EnterSubblock(PGOCtxProfileBlockIDs::ProfileMetadataBlockID,
76 Writer.EmitRecord(PGOCtxProfileRecords::Version,
80 ~PGOCtxProfileWriter() { Writer.ExitBlock(); } in ~PGOCtxProfileWriter()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBStringTableBuilder.h53 Error commit(BinaryStreamWriter &Writer) const;
59 Error writeHeader(BinaryStreamWriter &Writer) const;
60 Error writeStrings(BinaryStreamWriter &Writer) const;
61 Error writeHashTable(BinaryStreamWriter &Writer) const;
62 Error writeEpilogue(BinaryStreamWriter &Writer) const;
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DSARIFDiagnosticPrinter.h45 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/lib/ObjectYAML/
H A DCodeViewYAMLTypeHashing.cpp72 BinaryStreamWriter Writer(Buffer, llvm::endianness::little); in toDebugH() local
74 cantFail(Writer.writeInteger(DebugH.Magic)); in toDebugH()
75 cantFail(Writer.writeInteger(DebugH.Version)); in toDebugH()
76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm)); in toDebugH()
83 cantFail(Writer.writeFixedString(Hash)); in toDebugH()
85 assert(Writer.bytesRemaining() == 0); in toDebugH()

1234567