| /openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/ |
| H A D | WasmDump.cpp | 34 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef); in getWasmRelocationValueString() local 41 Fmt << Rel.Index; in getWasmRelocationValueString() 49 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
|
| H A D | ELFDump.cpp | 60 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local 61 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() 74 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 131 const RelocationRef &Rel, in getELFRelocationValueString() argument 134 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString() 136 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString() 138 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString() 140 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
|
| H A D | XCOFFDump.cpp | 23 const RelocationRef &Rel, in getXCOFFRelocationValueString() argument 25 symbol_iterator SymI = Rel.getSymbol(); in getXCOFFRelocationValueString()
|
| H A D | COFFDump.h | 26 const object::RelocationRef &Rel,
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 75 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0; 312 void moveRelocationNext(DataRefImpl &Rel) const override; 313 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 314 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 315 uint64_t getRelocationType(DataRefImpl Rel) const override; 316 void getRelocationTypeName(DataRefImpl Rel, 412 const Elf_Rel *getRel(DataRefImpl Rel) const; 420 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument 421 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection() 441 Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const override; [all …]
|
| H A D | MachO.h | 485 void moveRelocationNext(DataRefImpl &Rel) const override; 486 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 487 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 488 section_iterator getRelocationSection(DataRefImpl Rel) const; 489 uint64_t getRelocationType(DataRefImpl Rel) const override; 490 void getRelocationTypeName(DataRefImpl Rel, 492 uint8_t getRelocationLength(DataRefImpl Rel) const; 498 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const; 699 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 700 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
|
| H A D | Wasm.h | 194 void moveRelocationNext(DataRefImpl &Rel) const override; 195 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 196 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 197 uint64_t getRelocationType(DataRefImpl Rel) const override; 198 void getRelocationTypeName(DataRefImpl Rel,
|
| H A D | ObjectFile.h | 287 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0; 288 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0; 289 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0; 290 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0; 291 virtual void getRelocationTypeName(DataRefImpl Rel,
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELF_loongarch.cpp | 91 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 96 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 97 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 110 uint32_t Type = Rel.getType(false); in addSingleRelocation() 115 int64_t Addend = Rel.r_addend; in addSingleRelocation() 116 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| H A D | ELF_i386.cpp | 159 Error addSingleRelocation(const typename ELFT::Rel &Rel, in addSingleRelocation() argument 164 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 165 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 178 Expected<i386::EdgeKind_i386> Kind = getRelocationKind(Rel.getType(false)); in addSingleRelocation() 182 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| H A D | COFF_x86_64.cpp | 65 Error addSingleRelocation(const object::RelocationRef &Rel, in addSingleRelocation() argument 68 const object::coff_relocation *COFFRel = getObject().getCOFFRelocation(Rel); in addSingleRelocation() 69 auto SymbolIt = Rel.getSymbol(); in addSingleRelocation() 91 orc::ExecutorAddr(FixupSect.getAddress()) + Rel.getOffset(); in addSingleRelocation() 97 switch (Rel.getType()) { in addSingleRelocation() 167 formatv("{0:d}", Rel.getType())); in addSingleRelocation()
|
| H A D | ELF_x86_64.cpp | 177 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 182 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 183 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 197 auto ELFRelocKind = getRelocationKind(Rel.getType(false)); in addSingleRelocation() 201 int64_t Addend = Rel.r_addend; in addSingleRelocation() 255 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| H A D | ELF_aarch64.cpp | 139 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 145 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 146 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 159 uint32_t Type = Rel.getType(false); in addSingleRelocation() 164 int64_t Addend = Rel.r_addend; in addSingleRelocation() 166 orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| H A D | ELFLinkGraphBuilder.h | 140 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { 141 return (Instance->*Method)(Rel, Target, GS); 155 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { 156 return (Instance->*Method)(Rel, Target, GS); 600 for (const typename ELFT::Rel &R : *RelEntries) in forEachRelRelocation()
|
| H A D | ELF_riscv.cpp | 551 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 556 uint32_t Type = Rel.getType(false); in addSingleRelocation() 562 int64_t Addend = Rel.r_addend; in addSingleRelocation() 580 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 581 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 594 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
|
| /openbsd-src/gnu/llvm/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 348 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local 349 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode() 418 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument 420 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence() 423 It->Roles |= Rel.Roles; in handleDeclOccurrence() 425 FinalRelations.push_back(Rel); in handleDeclOccurrence() 427 Roles |= Rel.Roles; in handleDeclOccurrence() 444 for (auto &Rel : Relations) { in handleDeclOccurrence() local 445 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence() 446 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
|
| /openbsd-src/gnu/llvm/llvm/lib/Object/ |
| H A D | ELF.cpp | 321 std::vector<typename ELFT::Rel> 353 Elf_Rel Rel; in decode_relrs() local 354 Rel.r_info = 0; in decode_relrs() 355 Rel.setType(getRelativeRelocationType(), false); in decode_relrs() 366 Rel.r_offset = Entry; in decode_relrs() 367 Relocs.push_back(Rel); in decode_relrs() 374 Rel.r_offset = Offset; in decode_relrs() 375 Relocs.push_back(Rel); in decode_relrs()
|
| H A D | XCOFFObjectFile.cpp | 560 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 562 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext() 564 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 567 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 569 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset() 583 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 600 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol() 603 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationSymbol() 609 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationSymbol() 620 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() [all …]
|
| H A D | COFFObjectFile.cpp | 1206 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const { in toRel() 1207 return reinterpret_cast<const coff_relocation*>(Rel.p); in toRel() 1210 void COFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 1211 Rel.p = reinterpret_cast<uintptr_t>( in moveRelocationNext() 1212 reinterpret_cast<const coff_relocation*>(Rel.p) + 1); in moveRelocationNext() 1215 uint64_t COFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 1216 const coff_relocation *R = toRel(Rel); in getRelocationOffset() 1220 symbol_iterator COFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol() 1221 const coff_relocation *R = toRel(Rel); in getRelocationSymbol() 1234 uint64_t COFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/obj2yaml/ |
| H A D | coff2yaml.cpp | 200 COFFYAML::Relocation Rel; in dumpSections() local 210 Rel.SymbolName = *SymbolNameOrErr; in dumpSections() 212 Rel.SymbolTableIndex = reloc->SymbolTableIndex; in dumpSections() 213 Rel.VirtualAddress = reloc->VirtualAddress; in dumpSections() 214 Rel.Type = reloc->Type; in dumpSections() 215 Relocations.push_back(Rel); in dumpSections()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/ |
| H A D | COFFYAML.cpp | 415 COFFYAML::Relocation &Rel) { in mapping() argument 416 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping() 417 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping() 418 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping() 423 IO, Rel.Type); in mapping() 427 IO, Rel.Type); in mapping() 431 IO, Rel.Type); in mapping() 436 IO, Rel.Type); in mapping() 439 IO.mapRequired("Type", Rel.Type); in mapping()
|
| /openbsd-src/gnu/llvm/llvm/lib/ObjCopy/XCOFF/ |
| H A D | XCOFFReader.cpp | 41 for (const XCOFFRelocation32 &Rel : Relocations.get()) in readSections() local 42 ReadSec.Relocations.push_back(Rel); in readSections()
|
| H A D | XCOFFWriter.cpp | 85 for (const XCOFFRelocation32 &Rel : Sec.Relocations) { in writeSections() local 86 memcpy(Ptr, &Rel, sizeof(XCOFFRelocation32)); in writeSections()
|
| /openbsd-src/gnu/llvm/libcxx/benchmarks/ |
| H A D | string.bench.cpp | 400 template <class Rel, class LHLength, class RHLength, class DiffType> 408 switch (Rel()) { in run() 424 if (Rel() == Relation::Eq && LHLength() > RHLength()) in skip() 436 return "BM_StringRelational" + Rel::name() + LHLength::name() + in name() 441 template <class Rel, class LHLength, class RHLength, class DiffType> 452 switch (Rel()) { in run() 477 return "BM_StringRelationalLiteral" + Rel::name() + LHLength::name() + in name()
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 628 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable() 629 if (!Rel.Sym) in computeSymbolTable() 633 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable() 636 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable() 638 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable() 1018 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject() local 1019 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject() 1020 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
|