/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | Endian.h | 44 [[nodiscard]] inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() 45 if (endian != llvm::endianness::native) in byte_swap() 51 template <typename value_type, endianness endian> 58 [[nodiscard]] inline value_type read(const void *memory, endianness endian) { in read() 68 template <typename value_type, endianness endian, std::size_t alignment> 78 endianness endian) { in readNext() 84 template <typename value_type, endianness endian, 92 inline void write(void *memory, value_type value, endianness endian) { in write() 100 endianness endian, 110 inline void writeNext(CharT *&memory, value_type value, endianness endian) { in writeNext() [all …]
|
H A D | EndianStream.h | 29 endianness endian) { in write() 37 inline void write(raw_ostream &os, value_type value, endianness endian) { 43 inline void write<float>(raw_ostream &os, float value, endianness endian) { 49 endianness endian) { in write() 55 endianness endian) { in write() 61 inline void write(SmallVectorImpl<char> &Out, value_type V, endianness E) { 69 endianness Endian; 70 Writer(raw_ostream &OS, endianness Endian) : OS(OS), Endian(Endian) {}
|
H A D | BinaryByteStream.h | 33 BinaryByteStream(ArrayRef<uint8_t> Data, llvm::endianness Endian) in BinaryByteStream() 35 BinaryByteStream(StringRef Data, llvm::endianness Endian) in BinaryByteStream() 38 llvm::endianness getEndian() const override { return Endian; } in getEndian() 66 llvm::endianness Endian; 77 llvm::endianness Endian) in MemoryBufferByteStream() 92 llvm::endianness Endian) in MutableBinaryByteStream() 95 llvm::endianness getEndian() const override { in getEndian() 136 llvm::endianness Endian = llvm::endianness::little; 140 AppendingBinaryByteStream(llvm::endianness Endia [all...] |
H A D | HashBuilder.h | 33 /// endianness correction). 51 /// Users of this function should pay attention to respect endianness 58 /// Users of this function should pay attention to respect endianness 134 /// `void update(ArrayRef<uint8_t>)` method, endianness plays a role in the hash in add() 137 /// stable hash across platforms with different endianness. in add() 138 template <typename HasherT, llvm::endianness Endianness> in add() 173 Endianness == llvm::endianness::native) { 216 /// template <typename HasherT, llvm::endianness Endianness> 228 /// template <typename HasherT, llvm::endianness Endianness> 236 /// To avoid endianness issue [all...] |
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | MemProf.cpp | 135 endian::Writer LE(OS, llvm::endianness::little); in serializeV0() 158 endian::Writer LE(OS, llvm::endianness::little); in serializeV2() 178 endian::Writer LE(OS, llvm::endianness::little); in serializeV3() 222 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 226 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 229 endian::readNext<FrameId, llvm::endianness::little>(Ptr); in deserializeV0() 240 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 243 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV0() 248 endian::readNext<FrameId, llvm::endianness::little>(Ptr); in deserializeV0() 266 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserializeV2() [all …]
|
H A D | InstrProfReader.cpp | 96 const llvm::endianness Endian) { in readBinaryIdsInternal() 921 uint64_t Hash = endian::readNext<uint64_t, llvm::endianness::little>(D); in ReadData() 929 CountsSize = endian::readNext<uint64_t, llvm::endianness::little>(D); in ReadData() 939 endian::readNext<uint64_t, llvm::endianness::little>(D)); in ReadData() 946 BitmapBytes = endian::readNext<uint64_t, llvm::endianness::little>(D); in ReadData() 954 endian::readNext<uint64_t, llvm::endianness::little>(D))); in ReadData() 1141 uint64_t Magic = endian::read<uint64_t, llvm::endianness::little, aligned>( in hasFormat() 1156 uint64_t NFields = endian::byte_swap<uint64_t, llvm::endianness::little>( in readSummary() 1158 uint64_t NEntries = endian::byte_swap<uint64_t, llvm::endianness::little>( in readSummary() 1168 Dst[I] = endian::byte_swap<uint64_t, llvm::endianness::little>(Src[I]); in readSummary() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | DXContainerPSVInfo.cpp | 94 support::endian::write(OS, InfoSize, llvm::endianness::little); in write() 101 support::endian::write(OS, ResourceCount, llvm::endianness::little); in write() 103 support::endian::write(OS, BindingSize, llvm::endianness::little); in write() 114 llvm::endianness::little); in write() 121 llvm::endianness::little); in write() 123 support::endian::write(OS, I, llvm::endianness::little); in write() 129 llvm::endianness::little); in write() 138 llvm::endianness::little); in write() 140 llvm::endianness::little); in write() 143 llvm::endianness::little); in write() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/APINotes/ |
H A D | APINotesReader.cpp | 33 unsigned Major = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 37 unsigned Minor = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 42 endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 46 unsigned Build = endian::readNext<uint32_t, llvm::endianness::little>(Data); in ReadVersionTuple() 71 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadKeyDataLength() 73 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadKeyDataLength() 80 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadData() 105 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadCommonEntityInfo() 112 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadCommonEntityInfo() 124 endian::readNext<uint16_t, llvm::endianness::little>(Data); in ReadCommonTypeInfo() [all …]
|
H A D | APINotesWriter.cpp | 307 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitKeyDataLength() 316 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitData() 339 llvm::endianness::little); in writeIdentifierBlock() 367 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitKeyDataLength() 374 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitKey() 381 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitData() 419 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in emitVersionTuple() 458 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in emitVersionedInfo() 492 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in EmitKeyDataLength() 508 llvm::support::endian::Writer writer(OS, llvm::endianness::little); in emitCommonEntityInfo() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | BinaryStreamRef.cpp | 18 ArrayRefImpl(ArrayRef<uint8_t> Data, endianness Endian) : BBS(Data, Endian) {} 20 llvm::endianness getEndian() const override { return BBS.getEndian(); } 37 MutableArrayRefImpl(MutableArrayRef<uint8_t> Data, endianness Endian) 41 llvm::endianness getEndian() const override { return BBS.getEndian(); } in MutableArrayRefImpl() 67 BinaryStreamRef::BinaryStreamRef(ArrayRef<uint8_t> Data, endianness Endian) in BinaryStreamRef() 70 BinaryStreamRef::BinaryStreamRef(StringRef Data, endianness Endian) in BinaryStreamRef() 106 endianness Endian) in WritableBinaryStreamRef()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | MemProf.h | 87 Name = endian::readNext<Type, llvm::endianness::little>(Ptr); \ in deserialize() 105 endian::Writer LE(OS, llvm::endianness::little); in serialize() 267 endian::Writer LE(OS, llvm::endianness::little); in serialize() 285 endian::readNext<uint64_t, llvm::endianness::little>(Ptr); in deserialize() 287 endian::readNext<uint32_t, llvm::endianness::little>(Ptr); in deserialize() 289 endian::readNext<uint32_t, llvm::endianness::little>(Ptr); in deserialize() 290 const bool I = endian::readNext<bool, llvm::endianness::little>(Ptr); in deserialize() 545 endian::readNext<offset_type, llvm::endianness::little>(D); in ReadKeyDataLength() 547 endian::readNext<offset_type, llvm::endianness::little>(D); in ReadKeyDataLength() 553 return endian::readNext<external_key_type, llvm::endianness::little>(D); in ReadKey() [all …]
|
H A D | InstrProfReader.h | 420 llvm::endianness getDataEndianness() const { in getDataEndianness() 422 return llvm::endianness::native; in getDataEndianness() 423 if (llvm::endianness::native == llvm::endianness::little) in getDataEndianness() 424 return llvm::endianness::big; in getDataEndianness() 426 return llvm::endianness::little; in getDataEndianness() 487 llvm::endianness ValueProfDataEndianness = llvm::endianness::little; 511 endian::readNext<offset_type, llvm::endianness::little>(D); in ReadKeyDataLength() 513 endian::readNext<offset_type, llvm::endianness::little>(D); in ReadKeyDataLength() 526 void setValueProfDataEndianness(llvm::endianness Endianness) { in setValueProfDataEndianness() 543 virtual void setValueProfDataEndianness(llvm::endianness Endianness) = 0; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
H A D | CoverageMapping.h | 1140 template <class FuncRecordTy, llvm::endianness Endian> 1146 template <class FuncRecordTy, llvm::endianness Endian> 1152 template <class FuncRecordTy, llvm::endianness Endian> 1159 template <class FuncRecordTy, llvm::endianness Endian> 1170 template <class FuncRecordTy, llvm::endianness Endian> 1178 template <class FuncRecordTy, llvm::endianness Endian> 1197 template <llvm::endianness Endian> uint64_t getFuncHash() const { in getFuncHash() 1201 template <llvm::endianness Endian> uint64_t getDataSize() const { in getDataSize() 1206 template <llvm::endianness Endian> IntPtrT getFuncNameRef() const { in getFuncNameRef() 1211 template <llvm::endianness Endian> [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/ |
H A D | DWARFFile.h |
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Parallel/ |
H A D | DWARFLinker.h | 95 llvm::endianness Endianess) in SectionDescriptorBase() 105 llvm::endianness getEndianess() const { return Endianess; } in getEndianess() 114 llvm::endianness Endianess = llvm::endianness::little;
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGenData/ |
H A D | OutlinedHashTreeRecord.cpp | 61 support::endian::Writer Writer(OS, endianness::little); in serialize() 77 endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() 80 auto Id = endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() 83 endian::readNext<uint64_t, endianness::little, unaligned>(Ptr); in deserialize() 85 endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() 87 endian::readNext<uint32_t, endianness::little, unaligned>(Ptr); in deserialize() 90 endian::readNext<uint32_t, endianness::little, unaligned>(Ptr)); in deserialize()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFTypes.h | 49 template <endianness E, bool Is64> struct ELFType { 55 static const endianness Endianness = E; 97 using ELF32LE = ELFType<llvm::endianness::little, false>; 98 using ELF32BE = ELFType<llvm::endianness::big, false>; 99 using ELF64LE = ELFType<llvm::endianness::little, true>; 100 using ELF64BE = ELFType<llvm::endianness::big, true>; 151 template <endianness Endianness> 166 template <endianness Endianness> 196 template <endianness Endianness> 207 template <endianness Endianness> [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/ |
H A D | ARMAsmBackend.cpp | 205 return (Endian == llvm::endianness::little in getFixupKindInfo() 502 return swapHalfWords(Value, Endian == llvm::endianness::little); in adjustFixupValue() 541 return swapHalfWords(Value, Endian == llvm::endianness::little); in adjustFixupValue() 574 return swapHalfWords(out, Endian == llvm::endianness::little); in adjustFixupValue() 611 return swapHalfWords(out, Endian == llvm::endianness::little); in adjustFixupValue() 629 return swapHalfWords(out, Endian == llvm::endianness::little); in adjustFixupValue() 666 Endian == llvm::endianness::little); in adjustFixupValue() 703 Endian == llvm::endianness::little); in adjustFixupValue() 794 return swapHalfWords(Value, Endian == llvm::endianness::little); in adjustFixupValue() 825 return swapHalfWords(Value, Endian == llvm::endianness::little); in adjustFixupValue() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mips/lantiq/ |
H A D | fpi-bus.txt | 13 - lantiq,offset-endianness : Offset of the endianness configuration 24 lantiq,offset-endianness = <0x4c>;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
H A D | FileWriter.h | 31 llvm::endianness ByteOrder; 34 FileWriter(llvm::raw_pwrite_stream &S, llvm::endianness B) in FileWriter() 117 llvm::endianness getByteOrder() const { return ByteOrder; }
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
H A D | BPFAsmBackend.cpp | 28 BPFAsmBackend(llvm::endianness Endian) : MCAsmBackend(Endian) {} in BPFAsmBackend() 93 if (Endian == llvm::endianness::little) { in applyFixup() 127 return new BPFAsmBackend(llvm::endianness::little); in createBPFAsmBackend() 134 return new BPFAsmBackend(llvm::endianness::big); in createBPFbeAsmBackend()
|
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/ |
H A D | DWARFLinkerImpl.h |
|
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/Coverage/ |
H A D | CoverageMappingReader.cpp | 577 template <class IntPtrT, llvm::endianness Endian> 585 template <CovMapVersion Version, class IntPtrT, llvm::endianness Endian> 809 template <class IntPtrT, llvm::endianness Endian> 851 template <typename T, llvm::endianness Endian> 898 llvm::endianness Endian, StringRef CompilationDir) { in createCoverageReaderFromBuffer() 906 if (BytesInAddress == 4 && Endian == llvm::endianness::little) { in createCoverageReaderFromBuffer() 907 if (Error E = readCoverageMappingData<uint32_t, llvm::endianness::little>( in createCoverageReaderFromBuffer() 911 } else if (BytesInAddress == 4 && Endian == llvm::endianness::big) { in createCoverageReaderFromBuffer() 912 if (Error E = readCoverageMappingData<uint32_t, llvm::endianness::big>( in createCoverageReaderFromBuffer() 916 } else if (BytesInAddress == 8 && Endian == llvm::endianness::little) { in createCoverageReaderFromBuffer() [all …]
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Target.h | 226 // instruction (regardless of endianness). Therefore, the prefix is always in 286 return llvm::support::endian::read16(p, config->endianness); 290 return llvm::support::endian::read32(p, config->endianness); 294 return llvm::support::endian::read64(p, config->endianness); 298 llvm::support::endian::write16(p, v, config->endianness); 302 llvm::support::endian::write32(p, v, config->endianness); 306 llvm::support::endian::write64(p, v, config->endianness);
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF_ppc64.cpp | 35 template <llvm::endianness Endianness> 91 llvm::endianness::little>::TLSInfoEntryContent[16] = { in buildTables_ELF_ppc64() 98 llvm::endianness::big>::TLSInfoEntryContent[16] = { in buildTables_ELF_ppc64() 103 template <llvm::endianness Endianness> in buildTables_ELF_ppc64() 129 template <llvm::endianness Endianness> 147 template <llvm::endianness Endianness> in addRelocations() 196 template <llvm::endianness Endianness> in addSingleRelocation() 402 template <llvm::endianness Endianness> 464 template <llvm::endianness Endianness> 488 template <llvm::endianness Endiannes [all...] |