/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
H A D | RuntimeDyldCOFFAArch64.h | 36 static void or32le(void *P, int32_t V) { write32le(P, read32le(P) | V); } in or32le() 39 uint32_t orig = read32le(T); in write32AArch64Imm() 45 uint32_t orig = read32le(T); in write32AArch64Ldr() 61 write32le(T, (read32le(T) & ~Mask) | ImmLo | ImmHi); in write32AArch64Addr() 197 Addend = read32le(Displacement); in processRelocationRef() 200 uint32_t orig = read32le(Displacement); in processRelocationRef() 209 uint32_t orig = read32le(Displacement); in processRelocationRef() 214 uint32_t orig = read32le(Displacement); in processRelocationRef() 220 uint32_t orig = read32le(Displacement); in processRelocationRef() 226 uint32_t orig = read32le(Displacemen in processRelocationRef() [all...] |
/freebsd/contrib/llvm-project/lld/ELF/Arch/ |
H A D | LoongArch.cpp | 289 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 297 return config->is64 ? read64le(buf) : read32le(buf); in getImplicitAddend() 303 return read32le(buf + 4); in getImplicitAddend() 404 return isJirl(read32le(loc)) ? R_PLT : R_ABS; in getRelExpr() 573 write32le(loc, setJ20(read32le(loc), val >> 2)); in relocate() 579 write32le(loc, setK16(read32le(loc), val >> 2)); in relocate() 585 write32le(loc, setD5k16(read32le(loc), val >> 2)); in relocate() 591 write32le(loc, setD10k16(read32le(loc), val >> 2)); in relocate() 608 write32le(loc, setJ20(read32le(loc), hi20)); in relocate() 609 write32le(loc + 4, setK16(read32le(loc + 4), lo16)); in relocate() [all …]
|
H A D | Hexagon.cpp | 254 static void or32le(uint8_t *p, int32_t v) { write32le(p, read32le(p) | v); } in or32le() 263 or32le(loc, applyMask(findMaskR6(read32le(loc)), val)); in relocate() 266 or32le(loc, applyMask(findMaskR8(read32le(loc)), val)); in relocate() 280 or32le(loc, applyMask(findMaskR11(read32le(loc)), val & 0x3f)); in relocate() 292 or32le(loc, applyMask(findMaskR16(read32le(loc)), val & 0x3f)); in relocate() 295 or32le(loc, applyMask(findMaskR16(read32le(loc)), val & 0xffff)); in relocate()
|
H A D | AArch64.cpp | 417 write32le(l, (read32le(l) & ~mask) | immLo | immHi); in write32AArch64Addr() 421 write32le(p, (read32le(p) & ~mask) | v); in writeMaskedBits32le() 433 uint32_t inst = read32le(loc); in writeSMovWImm() 708 uint32_t regNo = read32le(loc) & 0x1f; in relaxTlsIeToLe() 714 uint32_t regNo = read32le(loc) & 0x1f; in relaxTlsIeToLe() 763 uint32_t adrpInstr = read32le(buf + adrpRel.offset); in tryRelaxAdrpAdd() 764 uint32_t addInstr = read32le(buf + addRel.offset); in tryRelaxAdrpAdd() 819 uint32_t adrpInstr = read32le(buf + adrpRel.offset); in tryRelaxAdrpLdr() 820 uint32_t ldrInstr = read32le(buf + ldrRel.offset); in tryRelaxAdrpLdr()
|
H A D | RISCV.cpp | 183 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 191 return config->is64 ? read64le(buf) : read32le(buf); in getImplicitAddend() 197 return config->is64 ? read64le(buf + 8) : read32le(buf + 4); in getImplicitAddend() 396 uint32_t insn = read32le(loc) & 0xFFF; in relocate() 411 uint32_t insn = read32le(loc) & 0x1FFF07F; in relocate() 443 write32le(loc, (read32le(loc) & 0xFFF) | (hi & 0xFFFFF000)); in relocate() 454 write32le(loc, setLO12_I(read32le(loc), lo & 0xfff)); in relocate() 463 write32le(loc, setLO12_S(read32le(loc), lo)); in relocate() 472 uint32_t insn = (read32le(loc) & ~(31 << 15)) | (X_GP << 15); in relocate() 488 write32le(loc, read32le(loc) + val); in relocate() [all …]
|
H A D | X86.cpp | 269 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 271 return SignExtend64<32>(read32le(buf + 4)); in getImplicitAddend()
|
H A D | X86_64.cpp | 735 return SignExtend64<32>(read32le(buf)); in getImplicitAddend() 1029 write32le(loc + 4, read32le(loc + 4) - 0x4000); in adjustPrologueForCrossSplitStack()
|
/freebsd/contrib/llvm-project/lld/MachO/Arch/ |
H A D | ARM64.cpp | 365 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAdd() 366 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAdd() 394 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAdrp() 395 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAdrp() 421 uint32_t ins1 = read32le(buf + offset1); in applyAdrpLdr() 422 uint32_t ins2 = read32le(buf + offset2); in applyAdrpLdr() 446 uint32_t ins2 = read32le(buf + offset2); in applyAdrpLdrGot() 465 uint32_t ins1 = read32le(buf + offset1); in applyAdrpAddLdr() 469 uint32_t ins2 = read32le(buf + offset2); in applyAdrpAddLdr() 473 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()
|
H A D | X86_64.cpp | 88 return static_cast<int32_t>(read32le(loc)) + pcrelOffset(rel.r_type); in getEmbeddedAddend()
|
/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 | UnwindInfoSection.cpp | 389 support::endian::read32le(buf + cuLayout.functionLengthOffset); in relocateCompactUnwind() 390 cu.encoding = support::endian::read32le(buf + cuLayout.encodingOffset); in relocateCompactUnwind()
|
H A D | InputFiles.cpp | 1148 uint32_t encoding = read32le(isec->data.data() + sizeof(uint32_t)); in registerCompactUnwind() 1700 currentVersion = read32le(&c->dylib.current_version); in DylibFile() 1701 compatibilityVersion = read32le(&c->dylib.compatibility_version); in DylibFile() 1703 reinterpret_cast<const char *>(cmd) + read32le(&c->dylib.name); in DylibFile() 1795 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name); in parseLoadCommands() 1806 reinterpret_cast<const char *>(c) + read32le(&c->dylib.name); in parseLoadCommands()
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | Archive.cpp | 1041 Offset = read32le(Offsets + SymbolIndex * 8 + 4); in getMember() 1052 uint32_t MemberCount = read32le(Buf); in getMember() 1055 uint32_t SymbolCount = read32le(Buf); in getMember() 1080 Offset = read32le(Offsets + OffsetIndex * 4); in getMember() 1109 RanlibCount = read32le(Buf) / 8; in getNext() 1117 CurRanStrx = read32le(Ranlibs + t.SymbolIndex * 8); in getNext() 1118 NextRanStrx = read32le(Ranlibs + (t.SymbolIndex + 1) * 8); in getNext() 1153 ranlib_count = read32le(buf) / 8; in symbol_begin() 1156 ran_strx = read32le(ranlibs); in symbol_begin() 1182 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/llvm-project/llvm/include/llvm/Bitcode/ |
H A D | BitcodeReader.h | 294 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in SkipBitcodeWrapperHeader() 295 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in SkipBitcodeWrapperHeader()
|
/freebsd/contrib/llvm-project/lld/COFF/ |
H A D | Chunks.cpp | 69 static void add32(uint8_t *p, int32_t v) { write32le(p, read32le(p) + v); } in add32() 72 static void or32(uint8_t *p, uint32_t v) { write32le(p, read32le(p) | v); } in or32() 241 uint32_t orig = read32le(off); in applyArm64Addr() 256 uint32_t orig = read32le(off); in applyArm64Imm() 271 uint32_t orig = read32le(off); in applyArm64Ldr() 726 uint32_t magic = support::endian::read32le(data.data()); in consumeDebugMagic()
|
/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/llvm-project/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeAnalyzer.cpp | 497 unsigned Magic = support::endian::read32le(&BufPtr[BWH_MagicField]); in analyzeHeader() 498 unsigned Version = support::endian::read32le(&BufPtr[BWH_VersionField]); in analyzeHeader() 499 unsigned Offset = support::endian::read32le(&BufPtr[BWH_OffsetField]); in analyzeHeader() 500 unsigned Size = support::endian::read32le(&BufPtr[BWH_SizeField]); in analyzeHeader() 501 unsigned CPUType = support::endian::read32le(&BufPtr[BWH_CPUTypeField]); in analyzeHeader()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/Disassembler/ |
H A D | LoongArchDisassembler.cpp | 166 Insn = support::endian::read32le(Bytes.data()); in getInstruction()
|
/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/AArch64/MCTargetDesc/ |
H A D | AArch64MCTargetDesc.cpp | 489 uint32_t Insn = support::endian::read32le(PltContents.data() + Byte); in findPltEntries() 494 Insn = support::endian::read32le(PltContents.data() + Byte + Off); in findPltEntries() 503 support::endian::read32le(PltContents.data() + Byte + Off); in findPltEntries()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF_riscv.cpp | 350 support::endian::read32le(FixupPtr) + E.getAddend()) in applyFixup() 375 int64_t Value = support::endian::read32le(FixupPtr) - in applyFixup() 598 support::endian::read32le(B.getContent().data() + E.getOffset() + 4); in relaxCall()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
H A D | X86MCTargetDesc.cpp | 597 uint32_t Imm = support::endian::read32le(PltContents.data() + Byte + 2); in findX86PltEntries() 603 uint32_t Imm = support::endian::read32le(PltContents.data() + Byte + 2); in findX86PltEntries() 621 uint32_t Imm = support::endian::read32le(PltContents.data() + Byte + 2); in findX86_64PltEntries()
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | AArch64ErrataFix.cpp | 413 write32le(buf, read32le(patchee->content().begin() + patcheeOffset)); in writeTo()
|