Searched refs:Writer (Results 1 - 25 of 136) sorted by relevance

123456

/freebsd-11-stable/contrib/llvm-project/lld/lib/Core/
H A DWriter.cpp1 //===- lib/Core/Writer.cpp ------------------------------------------------===//
9 #include "lld/Core/Writer.h"
13 Writer::Writer() = default;
15 Writer::~Writer() = default;
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DCOFFImportDumper.cpp23 void dumpCOFFImportFile(const COFFImportFile *File, ScopedPrinter &Writer) { argument
24 Writer.startLine() << '\n';
25 Writer.printString("File", File->getFileName());
26 Writer.printString("Format", "COFF-import-file");
30 case COFF::IMPORT_CODE: Writer.printString("Type", "code"); break;
31 case COFF::IMPORT_DATA: Writer.printString("Type", "data"); break;
32 case COFF::IMPORT_CONST: Writer.printString("Type", "const"); break;
37 Writer.printString("Name type", "ordinal");
40 Writer.printString("Name type", "name");
43 Writer
[all...]
H A DObjDumper.h33 ObjDumper(ScopedPrinter &Writer);
117 ScopedPrinter &Writer,
121 ScopedPrinter &Writer,
125 ScopedPrinter &Writer,
129 ScopedPrinter &Writer,
133 ScopedPrinter &Writer,
137 ScopedPrinter &Writer);
139 void dumpCodeViewMergedTypes(ScopedPrinter &Writer,
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMsgPackWriter.h18 /// msgpack::Writer MPWriter(output);
40 class Writer { class in namespace:llvm::msgpack
50 Writer(raw_ostream &OS, bool Compatible = false);
52 Writer(const Writer &) = delete;
53 Writer &operator=(const Writer &) = delete;
123 support::endian::Writer EW;
/freebsd-11-stable/contrib/llvm-project/lld/include/lld/Core/
H A DWriter.h1 //===- lld/Core/Writer.h - Abstract File Format Interface -----------------===//
22 /// The Writer is an abstract class for writing object files, shared
24 /// has a concrete subclass of Writer.
25 class Writer { class in namespace:lld
27 virtual ~Writer();
32 /// This method is called by Core Linking to give the Writer a chance
39 Writer();
42 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &);
43 std::unique_ptr<Writer> createWriterYAML(const LinkingContext &);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DSimpleTypeSerializer.cpp6 static void addPadding(BinaryStreamWriter &Writer) { argument
7 uint32_t Align = Writer.getOffset() % 4;
14 cantFail(Writer.writeInteger(Pad));
25 BinaryStreamWriter Writer(ScratchBuffer, support::little);
26 TypeRecordMapping Mapping(Writer);
30 cantFail(Writer.writeObject(DummyPrefix));
39 addPadding(Writer);
43 Prefix->RecordLen = Writer.getOffset() - sizeof(uint16_t);
45 return {ScratchBuffer.data(), Writer.getOffset()};
H A DDebugSymbolRVASubsection.cpp29 Error DebugSymbolRVASubsection::commit(BinaryStreamWriter &Writer) const {
30 return Writer.writeArray(makeArrayRef(RVAs));
H A DSymbolSerializer.cpp23 : Storage(Allocator), Stream(RecordBuffer, support::little), Writer(Stream),
24 Mapping(Writer, Container) {}
29 Writer.setOffset(0);
47 uint32_t RecordEnd = Writer.getOffset();
49 Writer.setOffset(0);
50 if (auto EC = Writer.writeInteger(Length))
H A DDebugCrossExSubsection.cpp44 BinaryStreamWriter &Writer) const {
46 if (auto EC = Writer.writeInteger(M.first))
48 if (auto EC = Writer.writeInteger(M.second))
H A DDebugSymbolsSubsection.cpp22 Error DebugSymbolsSubsection::commit(BinaryStreamWriter &Writer) const {
24 if (auto EC = Writer.writeBytes(Record.RecordData))
H A DDebugStringTableSubsection.cpp64 Error DebugStringTableSubsection::commit(BinaryStreamWriter &Writer) const {
65 uint32_t Begin = Writer.getOffset();
69 if (auto EC = Writer.writeCString(StringRef()))
75 Writer.setOffset(Offset);
76 if (auto EC = Writer.writeCString(S))
78 assert(Writer.getOffset() <= End);
81 Writer.setOffset(End);
H A DDebugSubsectionRecord.cpp71 Error DebugSubsectionRecordBuilder::commit(BinaryStreamWriter &Writer) const {
72 assert(Writer.getOffset() % alignOf(Container) == 0 &&
83 if (auto EC = Writer.writeObject(Header))
86 if (auto EC = Subsection->commit(Writer))
89 if (auto EC = Writer.writeStreamRef(Contents.getRecordData()))
92 if (auto EC = Writer.padToAlignment(4))
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBStringTableBuilder.cpp153 Error PDBStringTableBuilder::writeHeader(BinaryStreamWriter &Writer) const {
159 if (auto EC = Writer.writeObject(H))
161 assert(Writer.bytesRemaining() == 0);
165 Error PDBStringTableBuilder::writeStrings(BinaryStreamWriter &Writer) const {
166 if (auto EC = Strings.commit(Writer))
169 assert(Writer.bytesRemaining() == 0);
173 Error PDBStringTableBuilder::writeHashTable(BinaryStreamWriter &Writer) const {
176 if (auto EC = Writer.writeInteger(BucketCount))
194 if (auto EC = Writer.writeArray(ArrayRef<ulittle32_t>(Buckets)))
197 assert(Writer
[all...]
H A DInfoStreamBuilder.cpp62 BinaryStreamWriter Writer(*InfoS);
69 if (auto EC = Writer.writeObject(H))
72 if (auto EC = NamedStreams.commit(Writer))
74 if (auto EC = Writer.writeInteger(0))
77 if (auto EC = Writer.writeEnum(E))
80 assert(Writer.bytesRemaining() == 0);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMachObjectWriter.cpp1 //===-- ARMMachObjectWriter.cpp - ARM Mach Object Writer ------------------===//
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, argument
157 unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, Fixup.getKind());
170 uint32_t Value = Writer->getSymbolAddress(*A, Layout);
172 uint64_t SecAddr = Writer->getSectionAddress(A->getFragment()->getParent());
187 Value2 = Writer
253 RecordARMScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Type, unsigned Log2Size, uint64_t &FixedValue) argument
329 requiresExternRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCFragment &Fragment, unsigned RelocType, const MCSymbol &S, uint64_t FixedValue) argument
375 recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DPDBStringTableBuilder.h54 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-11-stable/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTRecordWriter.h28 ASTWriter *Writer; member in class:clang::ASTRecordWriter
58 ASTRecordWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record)
59 : Writer(&Writer), Record(&Record) {}
64 : Writer(Parent.Writer), Record(&Record) {}
89 uint64_t Offset = Writer->Stream.GetCurrentBitNo();
91 Writer->Stream.EmitRecord(Code, *Record, Abbrev);
99 PrepareToEmit(Writer->Stream.GetCurrentBitNo());
100 Writer
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MachObjectWriter.cpp1 //===-- X86MachObjectWriter.cpp - X86 Mach-O Writer -----------------------===//
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,
63 if (Writer->is64Bit())
64 RecordX86_64Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
67 RecordX86Relocation(Writer, Asm, Layout, Fragment, Fixup, Target,
103 MachObjectWriter *Writer, MCAssemble
102 RecordX86_64Relocation( MachObjectWriter *Writer, MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
363 recordScatteredRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Log2Size, uint64_t &FixedValue) argument
463 recordTLVPRelocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
503 RecordX86Relocation(MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMachObjectWriter.cpp1 //===-- PPCMachObjectWriter.cpp - PPC Mach-O Writer -----------------------===//
26 bool recordScatteredRelocation(MachObjectWriter *Writer,
33 void RecordPPCRelocation(MachObjectWriter *Writer, const MCAssembler &Asm,
42 void recordRelocation(MachObjectWriter *Writer, MCAssembler &Asm,
46 if (Writer->is64Bit()) {
49 RecordPPCRelocation(Writer, Asm, Layout, Fragment, Fixup, Target,
191 MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout,
197 const unsigned IsPCRel = Writer->isFixupKindPCRel(Asm, FK);
212 uint32_t Value = Writer->getSymbolAddress(*A, Layout);
213 uint64_t SecAddr = Writer
190 recordScatteredRelocation( MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, unsigned Log2Size, uint64_t &FixedValue) argument
300 RecordPPCRelocation( MachObjectWriter *Writer, const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DWriterMachO.cpp12 #include "lld/Core/Writer.h"
26 class MachOWriter : public Writer {
39 std::unique_ptr<Writer> yamlWriter = createWriterYAML(_ctx);
66 std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &context) {
67 return std::unique_ptr<Writer>(new lld::mach_o::MachOWriter(context));
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
H A DGeneratePCH.cpp31 Writer(Stream, this->Buffer->Data, ModuleCache, Extensions,
63 Writer.WriteAST(*SemaPtr, OutputFile, Module, isysroot,
73 return &Writer;
77 return &Writer;
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
H A DTestModuleFileExtension.h27 class Writer : public ModuleFileExtensionWriter { class in class:clang::TestModuleFileExtension
29 Writer(ModuleFileExtension *Ext) : ModuleFileExtensionWriter(Ext) { } function in class:clang::TestModuleFileExtension::Writer
30 ~Writer() override;
61 createExtensionWriter(ASTWriter &Writer) override;
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-converter.cpp98 support::endian::Writer Writer(OS, support::endianness::little);
100 Writer.write(FH.Version);
101 Writer.write(FH.Type);
107 Writer.write(Bitfield);
108 Writer.write(FH.CycleFrequency);
112 Writer.write(Padding4B);
113 Writer.write(Padding4B);
114 Writer.write(Padding4B);
115 Writer
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCodeViewYAMLTypeHashing.cpp72 BinaryStreamWriter Writer(Buffer, llvm::support::little);
74 cantFail(Writer.writeInteger(DebugH.Magic));
75 cantFail(Writer.writeInteger(DebugH.Version));
76 cantFail(Writer.writeInteger(DebugH.HashAlgorithm));
83 cantFail(Writer.writeFixedString(Hash));
85 assert(Writer.bytesRemaining() == 0);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DSymbolRecordMapping.h25 explicit SymbolRecordMapping(BinaryStreamWriter &Writer, argument
27 : IO(Writer), Container(Container) {}

Completed in 273 milliseconds

123456