/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/wasm/ |
H A D | Writer.cpp | 1 //===- Writer.cpp ---------------------------------------------------------===// 9 #include "Writer.h" 22 Writer::SectionHeader Writer::createSectionHeader(const Section &S, 44 size_t Writer::finalize() { 56 Error Writer::write() {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | DebugFrameDataSubsection.cpp | 43 Error DebugFrameDataSubsection::commit(BinaryStreamWriter &Writer) const { 45 if (auto EC = Writer.writeInteger<uint32_t>(0)) 54 if (auto EC = Writer.writeArray(makeArrayRef(SortedFrames)))
|
H A D | CodeViewRecordIO.cpp | 82 return Writer->padToAlignment(Align); 107 if (auto EC = Writer->writeBytes(Bytes)) 137 if (auto EC = Writer->writeInteger(TypeInd.getIndex())) 213 if (auto EC = Writer->writeCString(S)) 238 if (auto EC = Writer->writeBytes(Guid.Guid)) 327 if (auto EC = Writer->writeInteger<uint16_t>(LF_CHAR)) 329 if (auto EC = Writer->writeInteger<int8_t>(Value)) 332 if (auto EC = Writer->writeInteger<uint16_t>(LF_SHORT)) 334 if (auto EC = Writer->writeInteger<int16_t>(Value)) 337 if (auto EC = Writer [all...] |
H A D | DebugInlineeLinesSubsection.cpp | 83 Error DebugInlineeLinesSubsection::commit(BinaryStreamWriter &Writer) const { 88 if (auto EC = Writer.writeEnum(Sig)) 92 if (auto EC = Writer.writeObject(E.Header)) 98 if (auto EC = Writer.writeInteger<uint32_t>(E.ExtraFiles.size())) 100 if (auto EC = Writer.writeArray(makeArrayRef(E.ExtraFiles)))
|
H A D | DebugChecksumsSubsection.cpp | 94 Error DebugChecksumsSubsection::commit(BinaryStreamWriter &Writer) const { 100 if (auto EC = Writer.writeObject(Header)) 102 if (auto EC = Writer.writeArray(makeArrayRef(FC.Checksum))) 104 if (auto EC = Writer.padToAlignment(4))
|
H A D | DebugLinesSubsection.cpp | 103 Error DebugLinesSubsection::commit(BinaryStreamWriter &Writer) const { 110 if (auto EC = Writer.writeObject(Header)) 123 if (auto EC = Writer.writeObject(BlockHeader)) 126 if (auto EC = Writer.writeArray(makeArrayRef(B.Lines))) 130 if (auto EC = Writer.writeArray(makeArrayRef(B.Columns)))
|
H A D | DebugCrossImpSubsection.cpp | 73 BinaryStreamWriter &Writer) const { 90 if (auto EC = Writer.writeObject(Imp)) 92 if (auto EC = Writer.writeArray(makeArrayRef(Item->getValue())))
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
H A D | HashTable.cpp | 46 Error llvm::pdb::writeSparseBitVector(BinaryStreamWriter &Writer, argument 52 if (auto EC = Writer.writeInteger(ReqWords)) 65 if (auto EC = Writer.writeInteger(Word))
|
H A D | DbiStreamBuilder.cpp | 91 DbgStreams[(int)Type]->WriteFn = [Data](BinaryStreamWriter &Writer) { 92 return Writer.writeArray(Data); 293 [this](BinaryStreamWriter &Writer) { 294 return NewFpoData->commit(Writer); 303 [this](BinaryStreamWriter &Writer) { 304 return Writer.writeArray(makeArrayRef(OldFpoData)); 392 BinaryStreamWriter Writer(*DbiS); 393 if (auto EC = Writer.writeObject(*Header)) 397 if (auto EC = M->commit(Writer, Layout, MsfBuffer)) 402 if (auto EC = Writer [all...] |
H A D | NamedStreamMap.cpp | 66 Error NamedStreamMap::commit(BinaryStreamWriter &Writer) const { 68 if (auto EC = Writer.writeInteger<uint32_t>(NamesBuffer.size())) 73 if (auto EC = Writer.writeFixedString(Data)) 77 if (auto EC = OffsetIndexMap.commit(Writer))
|
H A D | GSIStreamBuilder.cpp | 54 Error commit(BinaryStreamWriter &Writer); 130 Error GSIHashStreamBuilder::commit(BinaryStreamWriter &Writer) { argument 137 if (auto EC = Writer.writeObject(Header)) 140 if (auto EC = Writer.writeArray(makeArrayRef(HashRecords))) 142 if (auto EC = Writer.writeArray(makeArrayRef(HashBitmap))) 144 if (auto EC = Writer.writeArray(makeArrayRef(HashBuckets))) 381 static Error writePublics(BinaryStreamWriter &Writer, 387 if (Error E = Writer.writeBytes(Storage)) 393 static Error writeRecords(BinaryStreamWriter &Writer, 398 return Writer [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/BinaryFormat/ |
H A D | MsgPackWriter.cpp | 20 Writer::Writer(raw_ostream &OS, bool Compatible) function in class:Writer 23 void Writer::writeNil() { EW.write(FirstByte::Nil); } 25 void Writer::write(bool b) { EW.write(b ? FirstByte::True : FirstByte::False); } 27 void Writer::write(int64_t i) { 60 void Writer::write(uint64_t u) { 88 void Writer::write(double d) { 101 void Writer::write(StringRef s) { 121 void Writer::write(MemoryBufferRef Buffer) { 141 void Writer [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | CodeViewRecordIO.h | 45 return Writer->getOffset(); 57 explicit CodeViewRecordIO(BinaryStreamWriter &Writer) : Writer(&Writer) {} argument 69 return (Streamer != nullptr) && (Reader == nullptr) && (Writer == nullptr); 72 return (Reader != nullptr) && (Streamer == nullptr) && (Writer == nullptr); 75 return (Writer != nullptr) && (Streamer == nullptr) && (Reader == nullptr); 90 return Writer->writeObject(Value); 108 return Writer->writeInteger(Value); 157 if (auto EC = Writer 262 BinaryStreamWriter *Writer = nullptr; member in class:llvm::codeview::CodeViewRecordIO [all...] |
H A D | DebugSubsection.h | 41 virtual Error commit(BinaryStreamWriter &Writer) const = 0;
|
H A D | TypeRecordMapping.h | 26 explicit TypeRecordMapping(BinaryStreamWriter &Writer) : IO(Writer) {} argument
|
H A D | DebugSymbolsSubsection.h | 44 Error commit(BinaryStreamWriter &Writer) const override;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | SampleProfWriter.cpp | 351 support::endian::Writer Writer(*OutputStream, support::little); 352 Writer.write(FuncOffsetTableStart); 417 support::endian::Writer Writer(*OutputStream, support::little); 419 Writer.write(static_cast<uint64_t>(SectionHdrLayout.size())); 422 Writer.write(static_cast<uint64_t>(-1)); 423 Writer.write(static_cast<uint64_t>(-1)); 424 Writer.write(static_cast<uint64_t>(-1)); 425 Writer 599 std::unique_ptr<SampleProfileWriter> Writer; local [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
H A D | AArch64MachObjectWriter.cpp | 1 //===-- AArch64MachObjectWriter.cpp - ARM Mach Object Writer --------------===// 43 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, 152 MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, 155 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind()); 239 Writer->addRelocation(A_Base, Fragment->getParent(), MRE); 284 Value += (!A->getFragment() ? 0 : Writer->getSymbolAddress(*A, Layout)) - 285 (!A_Base || !A_Base->getFragment() ? 0 : Writer->getSymbolAddress( 287 Value -= (!B->getFragment() ? 0 : Writer->getSymbolAddress(*B, Layout)) - 288 (!B_Base || !B_Base->getFragment() ? 0 : Writer->getSymbolAddress( 296 Writer 151 recordRelocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/profile/ |
H A D | InstrProfilingWriter.c | 214 static int writeValueProfData(ProfDataWriter *Writer, argument 224 BufferIO = lprofCreateBufferIO(Writer); 238 COMPILER_RT_VISIBILITY int lprofWriteData(ProfDataWriter *Writer, argument 248 return lprofWriteDataImpl(Writer, DataBegin, DataEnd, CountersBegin, 254 lprofWriteDataImpl(ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, argument 292 if (Writer->Write(Writer, IOVec, sizeof(IOVec) / sizeof(*IOVec))) 299 return writeValueProfData(Writer, VPDataReader, DataBegin, DataEnd);
|
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-modextract/ |
H A D | llvm-modextract.cpp | 62 BitcodeWriter Writer(Result); 65 Writer.copyStrtab(Ms[ModuleIndex].getStrtab());
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | EndianStream.h | 51 struct Writer { struct in namespace:llvm::support::endian 54 Writer(raw_ostream &OS, endianness Endian) : OS(OS), Endian(Endian) {} function in struct:llvm::support::endian::Writer
|
/freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | llvm-readobj.cpp | 424 ScopedPrinter &Writer, 430 return createCOFFDumper(Obj, Writer, Result); 432 return createELFDumper(Obj, Writer, Result); 434 return createMachODumper(Obj, Writer, Result); 436 return createWasmDumper(Obj, Writer, Result); 438 return createXCOFFDumper(Obj, Writer, Result); 444 static void dumpObject(const ObjectFile *Obj, ScopedPrinter &Writer, argument 451 if (std::error_code EC = createDumper(Obj, Writer, Dumper)) 455 Writer.startLine() << "\n"; 456 Writer 423 createDumper(const ObjectFile *Obj, ScopedPrinter &Writer, std::unique_ptr<ObjDumper> &Result) argument 563 dumpArchive(const Archive *Arc, ScopedPrinter &Writer) argument 585 dumpMachOUniversalBinary(const MachOUniversalBinary *UBinary, ScopedPrinter &Writer) argument 608 dumpInput(StringRef File, ScopedPrinter &Writer) argument [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Serialization/ |
H A D | PCHContainerOperations.h | 97 void registerWriter(std::unique_ptr<PCHContainerWriter> Writer) { argument 98 Writers[Writer->getFormat()] = std::move(Writer);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | SerializedDiagnosticPrinter.cpp | 59 SDiagsWriter &Writer; member in class:__anon1913::SDiagsRenderer 61 SDiagsRenderer(SDiagsWriter &Writer, const LangOptions &LangOpts, argument 63 : DiagnosticNoteRenderer(LangOpts, DiagOpts), Writer(Writer) {} 92 SDiagsWriter &Writer; member in class:__anon1913::SDiagsMerger 98 SDiagsMerger(SDiagsWriter &Writer) argument 99 : SerializedDiagnosticReader(), Writer(Writer) {} 675 Writer.EmitDiagnosticMessage(Loc, PLoc, Level, Message, D); 689 Writer [all...] |
H A D | TestModuleFileExtension.cpp | 18 TestModuleFileExtension::Writer::~Writer() { } 20 void TestModuleFileExtension::Writer::writeExtensionContents( 108 return std::unique_ptr<ModuleFileExtensionWriter>(new Writer(this));
|