| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldCOFFAArch64.h | 40 write32le(P, read32le(P) | V); in or32le() 46 uint32_t orig = read32le(T); in write32AArch64Imm() 54 uint32_t orig = read32le(T); in write32AArch64Ldr() 72 write32le(T, (read32le(T) & ~Mask) | ImmLo | ImmHi); in write32AArch64Addr() 209 Addend = read32le(Displacement); in processRelocationRef() 212 uint32_t orig = read32le(Displacement); in processRelocationRef() 221 uint32_t orig = read32le(Displacement); in processRelocationRef() 226 uint32_t orig = read32le(Displacement); in processRelocationRef() 232 uint32_t orig = read32le(Displacement); in processRelocationRef() 238 uint32_t orig = read32le(Displacement); in processRelocationRef() [all …]
|
| /freebsd/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | LoongArch.cpp | 311 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 319 return ctx.arg.is64 ? read64le(buf) : read32le(buf); in getImplicitAddend() 325 return read32le(buf + 4); in getImplicitAddend() 427 return isJirl(read32le(loc)) ? R_PLT : R_ABS; in getRelExpr() 596 write32le(loc, setJ20(read32le(loc), val >> 2)); in relocate() 602 write32le(loc, setK16(read32le(loc), val >> 2)); in relocate() 608 write32le(loc, setD5k16(read32le(loc), val >> 2)); in relocate() 614 write32le(loc, setD10k16(read32le(loc), val >> 2)); in relocate() 631 write32le(loc, setJ20(read32le(loc), hi20)); in relocate() 632 write32le(loc + 4, setK16(read32le(loc + 4), lo16)); in relocate() [all …]
|
| H A D | AArch64.cpp | 51 const uint32_t instr = read32le(buf + off); in isAArch64BTILandingPad() 319 return SignExtend64<16>(getBits(read32le(buf), 5, 20)); in getImplicitAddend() 325 return SignExtend64<16>(getBits(read32le(buf), 5, 18) << 2); in getImplicitAddend() 336 return SignExtend64<21>(getBits(read32le(buf), 5, 23) << 2); in getImplicitAddend() 342 return SignExtend64<12>(getBits(read32le(buf), 10, 21)); in getImplicitAddend() 356 return SignExtend64<21>((getBits(read32le(buf), 5, 23) << 2) | in getImplicitAddend() 357 getBits(read32le(buf), 29, 30)); in getImplicitAddend() 363 return SignExtend64<28>(getBits(read32le(buf), 0, 25) << 2); in getImplicitAddend() 464 write32le(l, (read32le(l) & ~mask) | immLo | immHi); in write32AArch64Addr() 468 write32le(p, (read32le(p) & ~mask) | v); in writeMaskedBits32le() [all …]
|
| H A D | Hexagon.cpp | 266 static void or32le(uint8_t *p, int32_t v) { write32le(p, read32le(p) | v); } in or32le() 315 or32le(loc, applyMask(findMaskR6(ctx, read32le(loc)), val)); in relocate() 318 or32le(loc, applyMask(findMaskR8(read32le(loc)), val)); in relocate() 332 or32le(loc, applyMask(findMaskR11(read32le(loc)), val & 0x3f)); in relocate() 344 or32le(loc, applyMask(findMaskR16(ctx, read32le(loc)), val & 0x3f)); in relocate() 347 or32le(loc, applyMask(findMaskR16(ctx, read32le(loc)), val & 0xffff)); in relocate()
|
| H A D | RISCV.cpp | 183 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 191 return ctx.arg.is64 ? read64le(buf) : read32le(buf); in getImplicitAddend() 197 return ctx.arg.is64 ? read64le(buf + 8) : read32le(buf + 4); in getImplicitAddend() 382 uint32_t insn = read32le(loc) & 0xFFF; in relocate() 397 uint32_t insn = read32le(loc) & 0x1FFF07F; in relocate() 429 write32le(loc, (read32le(loc) & 0xFFF) | (hi & 0xFFFFF000)); in relocate() 440 write32le(loc, setLO12_I(read32le(loc), lo & 0xfff)); in relocate() 449 write32le(loc, setLO12_S(read32le(loc), lo)); in relocate() 456 uint32_t insn = (read32le(loc) & ~(31 << 15)) | (X_X0 << 15); in relocate() 470 uint32_t insn = (read32le(loc) & ~(31 << 15)) | (X_GP << 15); in relocate() [all …]
|
| H A D | X86.cpp | 274 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 276 return SignExtend64<32>(read32le(buf + 4)); in getImplicitAddend()
|
| /freebsd/contrib/llvm-project/lld/MachO/Arch/ |
| H A D | ARM64.cpp | 397 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAdd() 398 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAdd() 427 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAdrp() 428 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAdrp() 454 uint32_t ins1 = read32le(buf + offset1); in applyAdrpLdr() 455 uint32_t ins2 = read32le(buf + offset2); in applyAdrpLdr() 479 uint32_t ins2 = read32le(buf + offset2); in applyAdrpLdrGot() 498 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAddLdr() 499 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAddLdr() 500 uint32_t ins3 = read32le(buf + offset3); in applyAdrpAddLdr() [all …]
|
| H A D | ARM64Common.cpp | 33 return static_cast<int32_t>(read32le(loc)); in getEmbeddedAddend() 63 uint32_t base = ((r.length == 2) ? read32le(loc) : 0); in relocateOne() 99 uint32_t instruction = read32le(loc); in relaxGotLoad()
|
| /freebsd/contrib/llvm-project/lld/MachO/ |
| H A D | EhFrame.cpp | 25 uint64_t len = read32le(data.data() + *off); in readLength() 40 uint32_t len = read32le(data.data() + *off); in skipValidLength() 56 uint32_t v = read32le(data.data() + *off); in readU32() 69 v = read32le(data.data() + *off); in readPointer()
|
| H A D | BPSectionOrderer.cpp | 58 hashes.push_back(llvm::support::endian::read32le(data.data() + i)); in getSectionHashes()
|
| H A D | UnwindInfoSection.cpp | 389 support::endian::read32le(buf + cuLayout.functionLengthOffset); in relocateCompactUnwind() 390 cu.encoding = support::endian::read32le(buf + cuLayout.encodingOffset); in relocateCompactUnwind()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | Archive.cpp | 1040 Offset = read32le(Offsets + SymbolIndex * 8 + 4); in getMember() 1051 uint32_t MemberCount = read32le(Buf); in getMember() 1054 uint32_t SymbolCount = read32le(Buf); in getMember() 1079 Offset = read32le(Offsets + OffsetIndex * 4); in getMember() 1108 RanlibCount = read32le(Buf) / 8; in getNext() 1116 CurRanStrx = read32le(Ranlibs + t.SymbolIndex * 8); in getNext() 1117 NextRanStrx = read32le(Ranlibs + (t.SymbolIndex + 1) * 8); in getNext() 1152 ranlib_count = read32le(buf) / 8; in symbol_begin() 1155 ran_strx = read32le(ranlibs); in symbol_begin() 1181 member_count = read32le(buf); in symbol_begin() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | xxhash.cpp | 149 H64 ^= (uint64_t)(endian::read32le(P)) * PRIME64_1; in xxHash64() 233 (uint64_t)(endian::read32le(secret) ^ endian::read32le(secret + 4)) + in XXH3_len_1to3_64b() 241 const uint32_t input1 = endian::read32le(input); in XXH3_len_4to8_64b() 242 const uint32_t input2 = endian::read32le(input + len - 4); in XXH3_len_4to8_64b() 765 (endian::read32le(secret) ^ endian::read32le(secret + 4)) + seed; in XXH3_len_1to3_128b() 767 (endian::read32le(secret + 8) ^ endian::read32le(secret + 12)) - seed; in XXH3_len_1to3_128b() 780 uint32_t const input_lo = endian::read32le(input); in XXH3_len_4to8_128b() 781 uint32_t const input_hi = endian::read32le(input + len - 4); in XXH3_len_4to8_128b()
|
| /freebsd/contrib/xz/src/liblzma/simple/ |
| H A D | riscv.c | 447 uint32_t inst2 = read32le(buffer + i + 4); in riscv_encode() 585 read32le(buffer + i + 4); in riscv_encode() 694 inst2 = read32le(buffer + i + 4); in riscv_decode()
|
| H A D | arm64.c | 44 uint32_t instr = read32le(buffer + i); in arm64_code()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeReader.h | 299 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in SkipBitcodeWrapperHeader() 300 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in SkipBitcodeWrapperHeader()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeIndexDiscovery.cpp | 269 uint32_t Attrs = support::endian::read32le(Content.drop_front(4).data()); in handlePointer() 292 Count = support::endian::read32le(Content.data()); in discoverTypeIndices() 320 Count = support::endian::read32le(Content.data()); in discoverTypeIndices()
|
| /freebsd/contrib/xz/src/common/ |
| H A D | tuklib_integer.h | 428 read32le(const uint8_t *buf) in read32le() function 473 # define read32ne read32le 509 read32le(const uint8_t *buf) in read32le() function
|
| /freebsd/contrib/llvm-project/lld/COFF/ |
| H A D | Chunks.cpp | 80 static void add32(uint8_t *p, int32_t v) { write32le(p, read32le(p) + v); } in add32() 83 static void or32(uint8_t *p, uint32_t v) { write32le(p, read32le(p) | v); } in or32() 252 uint32_t orig = read32le(off); in applyArm64Addr() 267 uint32_t orig = read32le(off); in applyArm64Imm() 282 uint32_t orig = read32le(off); in applyArm64Ldr() 753 uint32_t magic = support::endian::read32le(data.data()); in consumeDebugMagic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeAnalyzer.cpp | 500 unsigned Magic = support::endian::read32le(&BufPtr[BWH_MagicField]); in analyzeHeader() 501 unsigned Version = support::endian::read32le(&BufPtr[BWH_VersionField]); in analyzeHeader() 502 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in analyzeHeader() 503 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in analyzeHeader() 504 unsigned CPUType = support::endian::read32le(&BufPtr[BWH_CPUTypeField]); in analyzeHeader()
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | BPSectionOrderer.cpp | 51 hashes.push_back(support::endian::read32le(data.data() + i)); in getSectionHashes()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | loongarch.h | 479 TargetAddress + support::endian::read32le(FixupPtr) + Addend; in applyFixup() 526 support::endian::read32le(FixupPtr) - TargetAddress - Addend; in applyFixup()
|
| /freebsd/contrib/llvm-project/llvm/lib/BinaryFormat/ |
| H A D | Magic.cpp | 228 uint32_t off = read32le(Magic.data() + 0x3c); in identify_magic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/Disassembler/ |
| H A D | LoongArchDisassembler.cpp | 174 Insn = support::endian::read32le(Bytes.data()); in getInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MCTargetDesc.cpp | 474 uint32_t Insn = support::endian::read32le(PltContents.data() + Byte); in findPltEntries() 479 Insn = support::endian::read32le(PltContents.data() + Byte + Off); in findPltEntries() 488 support::endian::read32le(PltContents.data() + Byte + Off); in findPltEntries()
|