| /llvm-project-15.0.7/lld/ELF/Arch/ |
| H A D | ARM.cpp | 745 write16le(loc, read16le(loc) | u); in relocate() 794 uint16_t hi = read16le(buf); in getImplicitAddend() 795 uint16_t lo = read16le(buf + 2); in getImplicitAddend() 806 uint16_t hi = read16le(buf); in getImplicitAddend() 816 uint16_t hi = read16le(buf); in getImplicitAddend() 817 uint16_t lo = read16le(buf + 2); in getImplicitAddend() 842 uint16_t hi = read16le(buf); in getImplicitAddend() 843 uint16_t lo = read16le(buf + 2); in getImplicitAddend() 885 uint16_t hi = read16le(buf); in getImplicitAddend() 886 uint16_t lo = read16le(buf + 2); in getImplicitAddend() [all …]
|
| H A D | AVR.cpp | 92 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI() 175 write16le(loc, (read16le(loc) & 0xff07) | (val << 3)); in relocate() 179 write16le(loc, (read16le(loc) & 0xf9f0) | (val & 0x30) << 5 | (val & 0x0f)); in relocate() 187 write16le(loc, (read16le(loc) & 0xfc07) | ((target & 0x7f) << 3)); in relocate() 193 write16le(loc, (read16le(loc) & 0xf000) | (target & 0xfff)); in relocate() 199 write16le(loc, (read16le(loc) & 0xd3f8) | (val & 0x20) << 8 | in relocate() 204 write16le(loc, (read16le(loc) & 0xff30) | (val & 0x30) << 2 | (val & 0x0F)); in relocate() 210 write16le(loc, read16le(loc) | ((hi >> 1) << 4) | (hi & 1)); in relocate()
|
| H A D | RISCV.cpp | 313 uint16_t insn = read16le(loc) & 0xE383; in relocate() 328 uint16_t insn = read16le(loc) & 0xE003; in relocate() 347 write16le(loc, (read16le(loc) & 0x0F83) | 0x4000); in relocate() 351 write16le(loc, (read16le(loc) & 0xEF83) | imm17 | imm16_12); in relocate() 432 write16le(loc, read16le(loc) + val); in relocate() 447 write16le(loc, read16le(loc) - val); in relocate()
|
| H A D | MSP430.cpp | 82 write16le(loc, (read16le(loc) & 0xFC00) | (offset & 0x3FF)); in relocate()
|
| H A D | X86.cpp | 252 return SignExtend64<16>(read16le(buf)); in getImplicitAddend()
|
| H A D | X86_64.cpp | 699 return SignExtend64<16>(read16le(buf)); in getImplicitAddend()
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/Disassembler/ |
| H A D | MSP430Disassembler.cpp | 233 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionI() 251 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; in getInstructionI() 265 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + Words * 2) in getInstructionI() 288 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionII() 305 Insn |= (uint64_t)support::endian::read16le(Bytes.data() + 2) << 16; in getInstructionII() 343 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstructionCJ() 369 uint64_t Insn = support::endian::read16le(Bytes.data()); in getInstruction()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | TypeIndexDiscovery.cpp | 41 uint16_t N = support::endian::read16le(Data.data()); in getEncodedIntegerLength() 85 uint16_t Attrs = support::endian::read16le(Content.data()); in handleMethodOverloadList() 148 uint16_t Attrs = support::endian::read16le(Data.drop_front(2).data()); in handleOneMethod() 215 static_cast<TypeLeafKind>(support::endian::read16le(Content.data())); in handleFieldList() 297 Count = support::endian::read16le(Content.data()); in discoverTypeIndices()
|
| /llvm-project-15.0.7/lld/COFF/ |
| H A D | Chunks.cpp | 67 static void add16(uint8_t *p, int16_t v) { write16le(p, read16le(p) + v); } in add16() 70 static void or16(uint8_t *p, uint16_t v) { write16le(p, read16le(p) | v); } in or16() 143 write16le(off, (read16le(off) & 0xfbf0) | ((v & 0x800) >> 1) | ((v >> 12) & 0xf)); in applyMOV() 144 write16le(off + 2, (read16le(off + 2) & 0x8f00) | ((v & 0x700) << 4) | (v & 0xff)); in applyMOV() 148 uint16_t op1 = read16le(off); in readMOV() 152 uint16_t op2 = read16le(off + 2); in readMOV() 187 write16le(off + 2, (read16le(off + 2) & 0xd000) | (j1 << 13) | (j2 << 11) | ((v >> 1) & 0x7ff)); in applyBranch24T()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELF_riscv.cpp | 324 support::endian::read16le(reinterpret_cast<const void *>( in applyFixup() 355 int64_t Value = support::endian::read16le(reinterpret_cast<const void *>( in applyFixup()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/Disassembler/ |
| H A D | CSKYDisassembler.cpp | 523 Insn = support::endian::read16le(Bytes.data()); in getInstruction() 530 Insn = (Insn << 16) | support::endian::read16le(&Bytes[2]); in getInstruction()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldCOFFAArch64.h | 34 static void add16(uint8_t *p, int16_t v) { write16le(p, read16le(p) + v); } in add16()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Endian.h | 380 inline uint16_t read16le(const void *P) { return read16<little>(P); } in read16le() function
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/Disassembler/ |
| H A D | RISCVDisassembler.cpp | 476 Insn = support::endian::read16le(Bytes.data()); in getInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | Archive.cpp | 1008 uint16_t OffsetIndex = read16le(Indices + SymbolIndex * 2); in getMember()
|