reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Bitcode/Writer/BitcodeWriter.cpp
 4284   support::endian::write32le(&Buffer[Position], Value);
lib/DebugInfo/PDB/Native/TpiHashing.cpp
   84   support::endian::write32le(Buf, Deserialized.getUDT().getIndex());
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
   31 static void or32le(void *P, int32_t V) { write32le(P, read32le(P) | V); }
   45   write32le(L, (read32le(L) & ~Mask) | ImmLo | ImmHi);
lib/MC/StringTableBuilder.cpp
   74     support::endian::write32le(Buf, Size);
lib/MC/WasmObjectWriter.cpp
  208   support::endian::write32le(Buffer, X);
lib/MC/WinCOFFObjectWriter.cpp
  228   write32le(Data.Name + 0, 0);
  229   write32le(Data.Name + 4, Offset);
lib/Object/COFFImportFile.cpp
   89   support::endian::write32le(&B[Offset], Length);
lib/ObjectYAML/WasmEmitter.cpp
   99   support::endian::write32le(Data, Value);
lib/Support/MD5.cpp
  253   support::endian::write32le(&buffer[56], lo);
  254   support::endian::write32le(&buffer[60], hi);
  258   support::endian::write32le(&Result[0], a);
  259   support::endian::write32le(&Result[4], b);
  260   support::endian::write32le(&Result[8], c);
  261   support::endian::write32le(&Result[12], d);
lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
   89       support::endian::write32le(&Data[Fixup.getOffset() + 4], Value);
tools/clang/lib/Serialization/MultiOnDiskHashTable.h
  339     endian::write32le(Out.data(), BucketOffset);
tools/clang/tools/extra/clangd/RIFF.cpp
   43   llvm::support::endian::write32le(Size, C.Data.size());
   76   llvm::support::endian::write32le(Size, DataLen);
tools/clang/tools/extra/clangd/index/Serialization.cpp
  115   llvm::support::endian::write32le(Buf, I);
tools/lld/COFF/Chunks.cpp
   61 static void add32(uint8_t *p, int32_t v) { write32le(p, read32le(p) + v); }
   64 static void or32(uint8_t *p, uint32_t v) { write32le(p, read32le(p) | v); }
  216   write32le(off, (orig & ~mask) | immLo | immHi);
  226   write32le(off, orig | ((imm & (0xFFF >> rangeLimit)) << 10));
  671   write32le(buf + 2, impSymbol->getRVA() - rva - getSize());
  681   write32le(buf + 2,
  751     write32le(buf, sym->getRVA() + config->imageBase);
  837   write32le(p, page);
  838   write32le(p + 4, data.size());
  917     write32le(buf, value);
tools/lld/COFF/DLL.cpp
   71       write32le(buf, hintName->getRVA());
   93       write32le(buf, (1ULL << 31) | ordinal);
  302     write32le(buf + 3, imp->getRVA() - rva - 7);
  303     write32le(buf + 8, tailMerge->getRVA() - rva - 12);
  318     write32le(buf + 39, desc->getRVA() - rva - 43);
  319     write32le(buf + 44, helper->getRVA() - rva - 48);
  334     write32le(buf + 1, imp->getRVA() + config->imageBase);
  335     write32le(buf + 6, tailMerge->getRVA() - rva - 10);
  354     write32le(buf + 4, desc->getRVA() + config->imageBase);
  355     write32le(buf + 9, helper->getRVA() - rva - 13);
  456       write32le(buf, (thunk->getRVA() + config->imageBase) | bit);
  517         write32le(p, e.forwardChunk->getRVA() | bit);
  519         write32le(p, cast<Defined>(e.sym)->getRVA() | bit);
  535       write32le(buf, c->getRVA());
tools/lld/COFF/Writer.cpp
 1459   write32le(buf, strtab.size() + 4);
tools/lld/ELF/AArch64ErrataFix.cpp
  410   write32le(buf, read32le(patchee->data().begin() + patcheeOffset));
tools/lld/ELF/ARMErrataFix.cpp
  170     write32le(buf, 0xea000000);
  172     write32le(buf, 0x9000f000);
tools/lld/ELF/Arch/AArch64.cpp
  268   write32le(l, (read32le(l) & ~mask) | immLo | immHi);
  278 static void or32le(uint8_t *p, int32_t v) { write32le(p, read32le(p) | v); }
  302   write32le(loc, inst | ((imm & 0xFFFF) << 5));
  315     write32le(loc, val);
  345     write32le(loc, 0x14000000);
  468     write32le(loc, 0xd503201f); // nop
  471     write32le(loc, 0xd2a00000 | (((val >> 16) & 0xffff) << 5)); // movz
  474     write32le(loc, 0xf2800000 | ((val & 0xffff) << 5)); // movk
  497     write32le(loc, 0xd503201f); // nop
  500     write32le(loc, 0x90000000); // adrp
  504     write32le(loc, 0xf9400000); // ldr
  518     write32le(loc, (0xd2a00000 | regNo) | (((val >> 16) & 0xffff) << 5));
  524     write32le(loc, (0xf2800000 | regNo) | ((val & 0xffff) << 5));
tools/lld/ELF/Arch/AMDGPU.cpp
   68     write32le(loc, val);
   76     write32le(loc, val >> 32);
tools/lld/ELF/Arch/ARM.cpp
  154   write32le(buf, in.plt->getVA());
  159   write32le(buf, s.getVA());
  177   write32le(buf + 16, gotPlt - l1 - 8);
  200   write32le(buf + 0, pltData[0]);
  201   write32le(buf + 4, pltData[1] | ((offset >> 20) & 0xff));
  202   write32le(buf + 8, pltData[2] | ((offset >> 12) & 0xff));
  203   write32le(buf + 12, pltData[3] | (offset & 0xfff));
  228   write32le(buf + 12, gotPltEntryAddr - l1 - 8);
  253   write32le(buf + 0, pltData[0] | ((offset >> 20) & 0xff));
  254   write32le(buf + 4, pltData[1] | ((offset >> 12) & 0xff));
  255   write32le(buf + 8, pltData[2] | (offset & 0xfff));
  397     write32le(loc, val);
  401     write32le(loc, (read32le(loc) & 0x80000000) | (val & ~0x80000000));
  410       write32le(loc, 0xfa000000 |                    // opcode
  418       write32le(loc, 0xeb000000 | (read32le(loc) & 0x00ffffff));
  425     write32le(loc, (read32le(loc) & ~0x00ffffff) | ((val >> 2) & 0x00ffffff));
  484     write32le(loc, (read32le(loc) & ~0x000f0fff) | ((val & 0xf000) << 4) |
  489     write32le(loc, (read32le(loc) & ~0x000f0fff) |
tools/lld/ELF/Arch/Hexagon.cpp
  203 static void or32le(uint8_t *p, int32_t v) { write32le(p, read32le(p) | v); }
tools/lld/ELF/Arch/MSP430.cpp
   78     write32le(loc, val);
tools/lld/ELF/Arch/RISCV.cpp
  134     write32le(buf, mainPart->dynamic->getVA());
  141     write32le(buf, in.plt->getVA());
  155   write32le(buf + 0, utype(AUIPC, X_T2, hi20(offset)));
  156   write32le(buf + 4, rtype(SUB, X_T1, X_T1, X_T3));
  157   write32le(buf + 8, itype(load, X_T3, X_T2, lo12(offset)));
  158   write32le(buf + 12, itype(ADDI, X_T1, X_T1, -target->pltHeaderSize - 12));
  159   write32le(buf + 16, itype(ADDI, X_T0, X_T2, lo12(offset)));
  160   write32le(buf + 20, itype(SRLI, X_T1, X_T1, config->is64 ? 1 : 2));
  161   write32le(buf + 24, itype(load, X_T0, X_T0, config->wordsize));
  162   write32le(buf + 28, itype(JALR, 0, X_T3, 0));
  173   write32le(buf + 0, utype(AUIPC, X_T3, hi20(offset)));
  174   write32le(buf + 4, itype(config->is64 ? LD : LW, X_T3, X_T3, lo12(offset)));
  175   write32le(buf + 8, itype(JALR, X_T1, X_T3, 0));
  176   write32le(buf + 12, itype(ADDI, 0, 0, 0));
  245     write32le(loc, val);
  308     write32le(loc, insn);
  323     write32le(loc, insn);
  347     write32le(loc, (read32le(loc) & 0xFFF) | (hi & 0xFFFFF000));
  356     write32le(loc, (read32le(loc) & 0xFFFFF) | ((lo & 0xFFF) << 20));
  367     write32le(loc, (read32le(loc) & 0x1FFF07F) | imm11_5 | imm4_0);
  378     write32le(loc, read32le(loc) + val);
  393     write32le(loc, read32le(loc) - val);
  409     write32le(loc, val);
  413     write32le(loc, val - dtpOffset);
tools/lld/ELF/Arch/X86.cpp
  172   write32le(buf, mainPart->dynamic->getVA());
  178   write32le(buf, s.getPltVA() + 6);
  183   write32le(buf, s.getVA());
  212   write32le(buf + 2, gotPlt + 4);
  213   write32le(buf + 8, gotPlt + 8);
  226     write32le(buf + 2, gotPltEntryAddr - in.gotPlt->getVA());
  234     write32le(buf + 2, gotPltEntryAddr);
  237   write32le(buf + 7, relOff);
  238   write32le(buf + 12, -pltHeaderSize - pltEntrySize * index - 16);
  315     write32le(loc, val);
  334   write32le(loc + 5, val);
  349   write32le(loc + 5, val);
  388   write32le(loc, val);
  393     write32le(loc, val);
  438   write32le(buf, s.getPltVA() + 17);
  478   write32le(buf + 3, gotPltEntryAddr - ebx);
  479   write32le(buf + 8, -off - 12 + 32);
  480   write32le(buf + 13, -off - 17 + 18);
  481   write32le(buf + 18, relOff);
  482   write32le(buf + 23, -off - 27);
  491   write32le(buf, s.getPltVA() + 16);
  516   write32le(buf + 2, gotPlt + 4);
  517   write32le(buf + 8, gotPlt + 8);
  536   write32le(buf + 2, gotPltEntryAddr);
  537   write32le(buf + 7, -off - 11 + 32);
  538   write32le(buf + 12, -off - 16 + 17);
  539   write32le(buf + 17, relOff);
  540   write32le(buf + 22, -off - 26);
tools/lld/ELF/Arch/X86_64.cpp
  154   write32le(buf + 2, gotPlt - plt + 2); // GOTPLT+8
  155   write32le(buf + 8, gotPlt - plt + 4); // GOTPLT+16
  168   write32le(buf + 2, gotPltEntryAddr - pltEntryAddr - 6);
  169   write32le(buf + 7, index);
  170   write32le(buf + 12, -pltHeaderSize - pltEntrySize * index - 16);
  198     write32le(loc + 8, val + 4);
  213     write32le(loc, val + 4);
  238     write32le(loc + 8, val - 8);
  252     write32le(loc, val);
  299   write32le(loc, val + 4);
  308     write32le(loc, val);
  370     write32le(loc, val);
  388     write32le(loc, val);
  474     write32le(loc, val);
  495   write32le(loc, val);
  505     write32le(loc, val);
  524     write32le(loc, val);
  533   write32le(loc - 1, val + 1);
  565     write32le(loc + 4, read32le(loc + 4) - 0x4000);
  627   write32le(buf + 2, gotPlt - plt - 6 + 8);
  628   write32le(buf + 9, gotPlt - plt - 13 + 16);
  646   write32le(buf + 3, gotPltEntryAddr - pltEntryAddr - 7);
  647   write32le(buf + 8, -off - 12 + 32);
  648   write32le(buf + 13, -off - 17 + 18);
  649   write32le(buf + 18, index);
  650   write32le(buf + 23, -off - 27);
  684   write32le(buf + 3, gotPltEntryAddr - pltEntryAddr - 7);
  685   write32le(buf + 8, -pltHeaderSize - pltEntrySize * index - 12);
tools/lld/ELF/SyntheticSections.cpp
 2762       write32le(buf + 16, e.cuIndex + cuOff);
 2781     write32le(buf + i * 8, sym.nameOff);
 2782     write32le(buf + i * 8 + 4, sym.cuVectorOff);
 2795     write32le(buf, sym.cuVector.size());
 2798       write32le(buf, val);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryUtils.h
  100     write32le(loc, value);
tools/lld/wasm/InputChunks.cpp
  135       write32le(loc, value);
tools/lldb/source/Utility/DataEncoder.cpp
  171       write32le(m_start + offset, value);
tools/llvm-objcopy/COFF/COFFObjcopy.cpp
   55   support::endian::write32le(Data.data() + CRCPos, CRC32);