Home
last modified time | relevance | path

Searched refs:byte_swap (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DFileWriter.cpp38 const uint16_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU16()
43 const uint32_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU32()
48 const uint64_t Swapped = support::endian::byte_swap(U, ByteOrder); in writeU64()
53 const uint32_t Swapped = support::endian::byte_swap(U, ByteOrder); in fixup32()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DEndian.h49 inline value_type byte_swap(value_type value, endianness endian) { in byte_swap() function
57 inline value_type byte_swap(value_type value) { in byte_swap() function
58 return byte_swap(value, endian); in byte_swap()
70 return byte_swap<value_type>(ret, endian); in read()
98 value = byte_swap<value_type>(value, endian); in write()
128 val[0] = byte_swap<value_type, endian>(val[0]); in readAtBitAlignment()
129 val[1] = byte_swap<value_type, endian>(val[1]); in readAtBitAlignment()
163 val[0] = byte_swap<value_type, endian>(val[0]); in writeAtBitAlignment()
164 val[1] = byte_swap<value_type, endian>(val[1]); in writeAtBitAlignment()
192 val[0] = byte_swap<value_type, endian>(val[0]); in writeAtBitAlignment()
[all …]
H A DEndianStream.h29 value = byte_swap<value_type>(value, endian); in write()
H A DHashBuilder.h315 using HasByteSwapT = decltype(support::endian::byte_swap(
321 T SwappedValue = support::endian::byte_swap(Value, Endianness); in adjustForEndiannessAndAdd()
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/Coverage/
H A DCoverageMapping.h774 return support::endian::byte_swap<uint64_t, Endian>(Record->FuncHash); in getFuncHash()
780 return support::endian::byte_swap<uint32_t, Endian>(Record->DataSize); in getDataSize()
786 return support::endian::byte_swap<uint64_t, Endian>(Record->NameRef); in getFuncNameRef()
839 return support::endian::byte_swap<IntPtrT, Endian>(NamePtr); in getFuncNameRef()
846 uint32_t NameS = support::endian::byte_swap<uint32_t, Endian>(NameSize); in getFuncName()
943 return support::endian::byte_swap<uint64_t, Endian>(FilenamesRef); in getFilenamesRef()
974 return support::endian::byte_swap<uint32_t, Endian>(NRecords); in getNRecords()
978 return support::endian::byte_swap<uint32_t, Endian>(FilenamesSize); in getFilenamesSize()
982 return support::endian::byte_swap<uint32_t, Endian>(CoverageSize); in getCoverageSize()
986 return support::endian::byte_swap<uint32_t, Endian>(Version); in getVersion()
/llvm-project-15.0.7/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kMCCodeEmitter.cpp95 Val = support::endian::byte_swap(Val, support::big); in swapWord()
99 Part = support::endian::byte_swap(Part, support::big); in swapWord()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DWindowsResourceDumper.cpp29 uint16_t ChValue = support::endian::byte_swap(Ch, support::little); in stripUTF16()
/llvm-project-15.0.7/llvm/lib/ProfileData/
H A DInstrProfReader.cpp886 endian::byte_swap<uint64_t, little>(SummaryInLE->NumSummaryFields); in readSummary()
888 endian::byte_swap<uint64_t, little>(SummaryInLE->NumCutoffEntries); in readSummary()
897 Dst[I] = endian::byte_swap<uint64_t, little>(Src[I]); in readSummary()
954 endian::byte_swap<uint64_t, little>(Header->HashType)); in readHeader()
958 uint64_t HashOffset = endian::byte_swap<uint64_t, little>(Header->HashOffset); in readHeader()
969 endian::byte_swap<uint64_t, little>(Header->MemProfOffset); in readHeader()
H A DInstrProf.cpp1321 return endian::byte_swap<uint64_t, little>(Version); in formatVersion()
1333 uint64_t Magic = endian::byte_swap<uint64_t, little>(H.Magic); in readFromBuffer()
H A DInstrProfWriter.cpp81 uint64_t Bytes = endian::byte_swap<uint64_t, little>(P[K].D[I]); in patch()
/llvm-project-15.0.7/llvm/unittests/MC/
H A DStringTableBuilderTest.cpp62 support::endian::byte_swap<uint32_t, support::little>(ExpectedSize); in TEST()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DHashBuilderTest.cpp104 auto SwappedData = llvm::support::endian::byte_swap(Data, E); in TYPED_TEST()
/llvm-project-15.0.7/llvm/lib/MC/
H A DELFObjectWriter.cpp1179 uint16_t NumSections = support::endian::byte_swap<uint16_t>( in writeObject()
1188 support::endian::byte_swap<uint64_t>(SectionHeaderOffset, W.Endian); in writeObject()
1194 support::endian::byte_swap<uint32_t>(SectionHeaderOffset, W.Endian); in writeObject()
H A DMCStreamer.cpp139 uint64_t Swapped = support::endian::byte_swap( in emitIntValue()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp757 uint64_t Swapped = endian::byte_swap<uint64_t, little>(Working); in combine()
783 uint64_t Swapped = endian::byte_swap<uint64_t, little>(Working); in finalize()
/llvm-project-15.0.7/llvm/include/llvm/Bitstream/
H A DBitstreamWriter.h78 Value = support::endian::byte_swap<uint32_t, support::little>(Value); in WriteWord()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DELFNixPlatform.cpp868 support::endian::byte_swap(*Key, G.getEndianness()); in fixTLVSectionsAndEdges()
H A DMachOPlatform.cpp840 support::endian::byte_swap(*Key, G.getEndianness()); in fixTLVSectionsAndEdges()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp3341 uint64_t Swapped = support::endian::byte_swap( in encodePseudoProbes()