| /freebsd/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCELFExtras.h | 25 void encodeCrel(raw_ostream &OS, RelocsTy Relocs, F ToCrel) { in encodeCrel() argument 29 for (const auto &R : Relocs) in encodeCrel() 32 encodeULEB128(Relocs.size() * 8 + ELF::CREL_HDR_ADDEND + Shift, OS); in encodeCrel() 33 for (const auto &R : Relocs) { in encodeCrel()
|
| H A D | MCELFObjectWriter.h | 95 virtual void sortRelocs(std::vector<ELFRelocationEntry> &Relocs);
|
| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | Relocations.h | 320 template <class RelTy> struct Relocs : ArrayRef<RelTy> { struct 321 Relocs() = default; 322 Relocs(ArrayRef<RelTy> a) : ArrayRef<RelTy>(a) {} in Relocs() function 326 struct Relocs<llvm::object::Elf_Crel_Impl<is64>> : RelocsCrel<is64> { 346 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels, 354 rels = Relocs<RelTy>(storage); 360 inline Relocs<llvm::object::Elf_Crel_Impl<is64>> 361 sortRels(Relocs<llvm::object::Elf_Crel_Impl<is64>> rels,
|
| H A D | ICF.cpp | 106 bool constantEq(const InputSection *a, Relocs<RelTy> relsA, 107 const InputSection *b, Relocs<RelTy> relsB); 110 bool variableEq(const InputSection *a, Relocs<RelTy> relsA, 111 const InputSection *b, Relocs<RelTy> relsB); 239 bool ICF<ELFT>::constantEq(const InputSection *secA, Relocs<RelTy> ra, in constantEq() 240 const InputSection *secB, Relocs<RelTy> rb) { in constantEq() 339 bool ICF<ELFT>::variableEq(const InputSection *secA, Relocs<RelTy> ra, in variableEq() 340 const InputSection *secB, Relocs<RelTy> rb) { in variableEq() 451 Relocs<RelTy> rels) { in combineRelocHashes()
|
| H A D | InputSection.h | 38 Relocs<typename ELFT::Rel> rels; 39 Relocs<typename ELFT::Rela> relas; 40 Relocs<typename ELFT::Crel> crels; 447 void relocateNonAlloc(Ctx &, uint8_t *buf, Relocs<RelTy> rels);
|
| /freebsd/contrib/llvm-project/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 93 RelocMap Relocs; in loadObj() local 123 Relocs.insert( in loadObj() 134 Relocs.insert( in loadObj() 139 Relocs.insert({Reloc.getOffset(), *AddendOrErr}); in loadObj() 159 RelocMap::const_iterator R = Relocs.find(A); in loadObj() 160 if (R != Relocs.end()) in loadObj()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFWriter.cpp | 31 for (Relocation &R : Sec.Relocs) { in finalizeRelocTargets() 176 if (S.Relocs.size() >= 0xffff) { in layoutSections() 182 S.Header.NumberOfRelocations = S.Relocs.size(); in layoutSections() 183 S.Header.PointerToRelocations = S.Relocs.size() ? FileSize : 0; in layoutSections() 186 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections() 409 if (S.Relocs.size() >= 0xffff) { in writeSections() 411 R.VirtualAddress = S.Relocs.size() + 1; in writeSections() 417 for (const auto &R : S.Relocs) { in writeSections()
|
| H A D | COFFReader.cpp | 72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); in readSections() local 73 llvm::append_range(S.Relocs, Relocs); in readSections() 178 for (Relocation &R : Sec.Relocs) { in setSymbolTargets()
|
| H A D | COFFObject.cpp | 58 for (const Relocation &R : Sec.Relocs) { in markSymbols() 125 Sec.Relocs.clear(); in truncateSections()
|
| H A D | COFFObject.h | 37 std::vector<Relocation> Relocs; member
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | MachOBuilder.h | 229 std::vector<Reloc> Relocs; 255 Relocs.push_back({Offset, Target, PCRel, Length, Type}); 403 if (!Sec->Relocs.empty()) { 409 Sec->nreloc = Sec->Relocs.size(); 410 Offset += Sec->Relocs.size() * sizeof(MachO::relocation_info); 411 for (auto &R : Sec->Relocs) 488 assert(Sec->Relocs.empty() && 506 if (!Sec->Relocs.empty()) { 510 for (auto &R : Sec->Relocs) {
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsELFObjectWriter.cpp | 55 void sortRelocs(std::vector<ELFRelocationEntry> &Relocs) override; 381 void MipsELFObjectWriter::sortRelocs(std::vector<ELFRelocationEntry> &Relocs) { in sortRelocs() argument 389 llvm::sort(Relocs, in sortRelocs() 398 for (auto &R : Relocs) { in sortRelocs() 435 assert(Relocs.size() == Sorted.size() && "Some relocs were not consumed"); in sortRelocs() 440 Relocs[CopyTo++] = R.R; in sortRelocs()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | ELF.cpp | 370 std::vector<Elf_Rel> Relocs; in decode_relrs() local 381 Relocs.push_back(Rel); in decode_relrs() 389 Relocs.push_back(Rel); in decode_relrs() 395 return Relocs; in decode_relrs() 472 std::vector<Elf_Rela> Relocs; in android_relas() local 473 Relocs.reserve(NumRelocs); in android_relas() 510 Relocs.push_back(R); in android_relas() 516 return Relocs; in android_relas()
|
| H A D | COFFObjectFile.cpp | 2308 Relocs.reserve(OrigRelocs.size()); in load() 2310 Relocs.push_back(&R); in load() 2311 llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) { in load() 2329 std::equal_range(Relocs.begin(), Relocs.end(), &RelocTarget, in getContents()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ELFRelocs/ |
| H A D | LoongArch.def | 64 // Relocs whose processing do not require a stack machine. 107 // Relocs added in ELF for the LoongArch™ Architecture v20230519, part of the 124 // Relocs added in ELF for the LoongArch™ Architecture v20231102, part of the 130 // Relocs added in ELF for the LoongArch™ Architecture v20231219, part of the
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCELFObjectTargetWriter.cpp | 21 std::vector<ELFRelocationEntry> &Relocs) {} in sortRelocs() argument
|
| H A D | ELFObjectWriter.cpp | 802 static void encodeCrel(ArrayRef<ELFRelocationEntry> Relocs, raw_ostream &OS) { in encodeCrel() argument 804 ELF::encodeCrel<Is64>(OS, Relocs, [&](const ELFRelocationEntry &R) { in encodeCrel() 812 std::vector<ELFRelocationEntry> &Relocs = OWriter.Relocations[&Sec]; in writeRelocations() local 817 OWriter.TargetObjectWriter->sortRelocs(Relocs); in writeRelocations() 820 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations() 856 encodeCrel<true>(Relocs, W.OS); in writeRelocations() 858 encodeCrel<false>(Relocs, W.OS); in writeRelocations() 860 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations()
|
| H A D | MachObjectWriter.cpp | 912 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local 913 unsigned NumRelocs = Relocs.size(); in writeObject() 1043 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local 1044 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject()
|
| H A D | WasmObjectWriter.cpp | 1085 std::vector<WasmRelocationEntry> &Relocs) { in writeRelocSection() argument 1089 if (Relocs.empty()) in writeRelocSection() 1098 Relocs, [](const WasmRelocationEntry &A, const WasmRelocationEntry &B) { in writeRelocSection() 1107 encodeULEB128(Relocs.size(), W->OS); in writeRelocSection() 1108 for (const WasmRelocationEntry &RelEntry : Relocs) { in writeRelocSection()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyld.cpp | 1113 void RuntimeDyldImpl::resolveRelocationList(const RelocationList &Relocs, in resolveRelocationList() argument 1115 for (const RelocationEntry &RE : Relocs) { in resolveRelocationList() 1128 RelocationList &Relocs = RelocKV.second; in applyExternalSymbolRelocations() local 1133 resolveRelocationList(Relocs, 0); in applyExternalSymbolRelocations() 1168 resolveRelocationList(Relocs, Addr); in applyExternalSymbolRelocations()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | ppc64.h | 91 SmallVector<PLTCallStubReloc, 2> Relocs; member 153 for (auto const &Reloc : StubInfo.Relocs) in createAnonymousPointerJumpStub()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Program.h | 179 llvm::DenseMap<const FunctionDecl *, std::vector<unsigned>> Relocs; variable
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonMCCodeEmitter.cpp | 513 static const std::map<unsigned, unsigned> Relocs = { in getFixupNoBits() local 527 auto F = Relocs.find(VarKind); in getFixupNoBits() 528 if (F != Relocs.end()) in getFixupNoBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFContext.cpp | 1979 RelocAddrMap Relocs; member 2248 RelocAddrMap *Map = Sec ? &Sec->Relocs : nullptr; in DWARFObjInMemory() 2254 .Relocs; in DWARFObjInMemory() 2258 .Relocs; in DWARFObjInMemory() 2325 RelocAddrMap::const_iterator AI = Sec.Relocs.find(Pos); in find() 2326 if (AI == Sec.Relocs.end()) in find()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 1655 static Error initRelocations(RelocationSection *Relocs, T RelRange) { in initRelocations() argument 1660 ToAdd.Type = Rel.getType(Relocs->getObject().IsMips64EL); in initRelocations() 1662 if (uint32_t Sym = Rel.getSymbol(Relocs->getObject().IsMips64EL)) { in initRelocations() 1663 if (!Relocs->getObject().SymbolTable) in initRelocations() 1666 "'" + Relocs->Name + "': relocation references symbol with index " + in initRelocations() 1669 Relocs->getObject().SymbolTable->getSymbolByIndex(Sym); in initRelocations() 1676 Relocs->addRelocation(ToAdd); in initRelocations()
|