| /freebsd-src/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.printString("Name type", "noprefix"); in dumpCOFFImportFile() [all …]
|
| H A D | llvm-readobj.cpp | 342 createDumper(const ObjectFile &Obj, ScopedPrinter &Writer) { in createDumper() 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() 376 Expected<std::unique_ptr<ObjDumper>> DumperOrErr = createDumper(Obj, Writer); in dumpObject() 544 static void dumpArchive(const Archive *Arc, ScopedPrinter &Writer) { in dumpArchive() 556 dumpObject(*Obj, Writer, Ar in dumpArchive() 338 createDumper(const ObjectFile & Obj,ScopedPrinter & Writer) createDumper() argument 359 dumpObject(ObjectFile & Obj,ScopedPrinter & Writer,const Archive * A=nullptr) dumpObject() argument 540 dumpArchive(const Archive * Arc,ScopedPrinter & Writer) dumpArchive() argument 567 dumpMachOUniversalBinary(const MachOUniversalBinary * UBinary,ScopedPrinter & Writer) dumpMachOUniversalBinary() argument 589 dumpInput(StringRef File,ScopedPrinter & Writer) dumpInput() argument 696 std::unique_ptr<ScopedPrinter> Writer = createWriter(); llvm_readobj_main() local [all...] |
| /freebsd-src/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.bytesRemaining() == 0); in writeHashTable() [all …]
|
| H A D | GSIStreamBuilder.cpp | 56 Error commit(BinaryStreamWriter &Writer); 132 Error GSIHashStreamBuilder::commit(BinaryStreamWriter &Writer) { in commit() argument 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() argument 389 if (Error E = Writer.writeBytes(Storage)) in writePublics() 395 static Error writeRecords(BinaryStreamWriter &Writer, in writeRecords() argument 400 return Writer.writeStreamRef(RecordsRef); in writeRecords() [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()
|
| 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(ArrayRef(OldFpoData)); in finalizeMsfLayout() 392 BinaryStreamWriter Writer(*DbiS); in commit() local 393 if (auto EC = Writer.writeObject(*Header)) in commit() 397 if (auto EC = M->commit(Writer)) in commit() 409 if (auto EC = Writer.writeEnum(DbiSecContribVer60)) in commit() [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMachObjectWriter.cpp | 1 //===-- ARMMachObjectWriter.cpp - ARM Mach Object Writer ------------------===// 29 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 getARMFixupKindMachOInfo() 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 in RecordARMScatteredHalfRelocation() 140 RecordARMScatteredHalfRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) RecordARMScatteredHalfRelocation() argument 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) RecordARMScatteredRelocation() argument 329 requiresExternRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCFragment & Fragment,unsigned RelocType,const MCSymbol & S,uint64_t FixedValue) requiresExternRelocation() argument 375 recordRelocation(MachObjectWriter * Writer,MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) recordRelocation() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 1 //===-- X86MachObjectWriter.cpp - X86 Mach-O Writer -----------------------===// 27 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, 58 if (Writer->is64Bit()) 59 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() argument 61 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() 96 MachObjectWriter *Writer, MCAssemble in getFixupKindLog2Size() 103 RecordX86_64Relocation(MachObjectWriter * Writer,MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) RecordX86_64Relocation() argument 363 recordScatteredRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,unsigned Log2Size,uint64_t & FixedValue) recordScatteredRelocation() argument 463 recordTLVPRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) recordTLVPRelocation() argument 503 RecordX86Relocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) RecordX86Relocation() argument [all...] |
| /freebsd-src/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTRecordWriter.h | 33 ASTWriter *Writer; 64 : DataStreamBasicWriter(W.getASTContext()), Writer(&W), Record(&Record) {} 69 : DataStreamBasicWriter(Parent.getASTContext()), Writer(Parent.Writer), 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 31 ASTWriter *Writer; global() variable [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | SimpleTypeSerializer.cpp | 18 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 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 | 23 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 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()
|
| 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-src/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.write(Padding4B); in exportAsRAWv1() 132 Writer.write(R.RecordType); in exportAsRAWv1() [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
| H A D | MsgPackWriter.h | 41 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-src/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-src/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 257 return lprofWriteDataImpl(Writer, DataBegin, DataEnd, CountersBegin, 264 lprofWriteDataImpl(ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, in lprofWriteDataImpl() 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, IOVecDat in lprofWriteOneBinaryId() 259 lprofWriteDataImpl(ProfDataWriter * Writer,const __llvm_profile_data * DataBegin,const __llvm_profile_data * DataEnd,const char * CountersBegin,const char * CountersEnd,const char * BitmapBegin,const char * BitmapEnd,VPDataReaderType * VPDataReader,const char * NamesBegin,const char * NamesEnd,int SkipNameDataWrite) lprofWriteDataImpl() argument 344 lprofWriteOneBinaryId(ProfDataWriter * Writer,uint64_t BinaryIdLen,const uint8_t * BinaryIdData,uint64_t BinaryIdPadding) lprofWriteOneBinaryId() argument [all...] |
| H A D | InstrProfilingPlatformLinux.c | 130 static int WriteBinaryIdForNote(ProfDataWriter *Writer, 140 if (Writer != NULL && in WriteBinaryIds() 141 lprofWriteOneBinaryId(Writer, BinaryIdLen, BinaryIdData, in WriteBinaryIds() 156 static int WriteBinaryIds(ProfDataWriter *Writer, const ElfW(Nhdr) * Note, 160 int OneBinaryIdSize = WriteBinaryIdForNote(Writer, Note); in __llvm_write_binary_ids() 179 COMPILER_RT_VISIBILITY int __llvm_write_binary_ids(ProfDataWriter *Writer) { in __llvm_write_binary_ids() 217 int BinaryIdsSize = WriteBinaryIds(Writer, Note, NotesEnd); 231 COMPILER_RT_VISIBILITY int __llvm_write_binary_ids(ProfDataWriter *Writer) { 109 WriteBinaryIdForNote(ProfDataWriter * Writer,const ElfW (Nhdr)* Note) WriteBinaryIdForNote() argument 135 WriteBinaryIds(ProfDataWriter * Writer,const ElfW (Nhdr)* Note,const ElfW (Nhdr)* NotesEnd) WriteBinaryIds() argument 158 __llvm_write_binary_ids(ProfDataWriter * Writer) __llvm_write_binary_ids() argument 210 __llvm_write_binary_ids(ProfDataWriter * Writer) __llvm_write_binary_ids() argument
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | PDBStringTableBuilder.h | 53 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-src/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, 149 MachObjectWriter *Writer, MCAssembler &Asm, const MCFragment *Fragment, in recordRelocation() 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 in recordRelocation() 150 recordRelocation(MachObjectWriter * Writer,MCAssembler & Asm,const MCAsmLayout & Layout,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) recordRelocation() argument [all...] |
| /freebsd-src/contrib/llvm-project/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
|
| /freebsd-src/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-src/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | CodeViewYAMLTypeHashing.cpp | 72 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()
|
| /freebsd-src/contrib/file/magic/Magdir/ |
| H A D | music | 5 # BWW format used by Bagpipe Music Writer Gold by Robert MacNeil Musicworks 6 # and Bagpipe Writer by Doug Wickstrom 11 >8 string Music\ Writer Music Writer
|