Home
last modified time | relevance | path

Searched refs:Rel (Results 1 – 25 of 74) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DWasmDump.cpp47 const wasm::WasmRelocation &Rel = Obj->getWasmRelocation(RelRef); in getWasmRelocationValueString() local
54 Fmt << Rel.Index; in getWasmRelocationValueString()
62 Fmt << (Rel.Addend < 0 ? "" : "+") << Rel.Addend; in getWasmRelocationValueString()
H A DELFDump.cpp101 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local
102 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
115 auto ERela = Obj->getCrel(Rel); in getRelocationValueString()
119 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
123 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString()
173 const RelocationRef &Rel, in getELFRelocationValueString() argument
176 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString()
178 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString()
180 return getRelocationValueString(ELF32BE, Rel, Result); in getELFRelocationValueString()
182 return getRelocationValueString(ELF64BE, Rel, Result); in getELFRelocationValueString()
H A DELFDump.h28 const object::RelocationRef &Rel,
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h86 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
344 void moveRelocationNext(DataRefImpl &Rel) const override;
345 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
346 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
347 uint64_t getRelocationType(DataRefImpl Rel) const override;
348 void getRelocationTypeName(DataRefImpl Rel,
460 const Elf_Rel *getRel(DataRefImpl Rel) const;
469 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
470 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection()
492 Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const override;
[all …]
H A DGOFFObjectFile.h120 void moveRelocationNext(DataRefImpl &Rel) const override {} in moveRelocationNext() argument
121 uint64_t getRelocationOffset(DataRefImpl Rel) const override { return 0; } in getRelocationOffset() argument
122 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override { in getRelocationSymbol() argument
126 uint64_t getRelocationType(DataRefImpl Rel) const override { return 0; } in getRelocationType() argument
127 void getRelocationTypeName(DataRefImpl Rel, in getRelocationTypeName() argument
H A DMachO.h491 void moveRelocationNext(DataRefImpl &Rel) const override;
492 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
493 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
494 section_iterator getRelocationSection(DataRefImpl Rel) const;
495 uint64_t getRelocationType(DataRefImpl Rel) const override;
496 void getRelocationTypeName(DataRefImpl Rel,
498 uint8_t getRelocationLength(DataRefImpl Rel) const;
504 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
710 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
711 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
H A DWasm.h203 void moveRelocationNext(DataRefImpl &Rel) const override;
204 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
205 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
206 uint64_t getRelocationType(DataRefImpl Rel) const override;
207 void getRelocationTypeName(DataRefImpl Rel,
H A DObjectFile.h289 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0;
290 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0;
291 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
292 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0;
293 virtual void getRelocationTypeName(DataRefImpl Rel,
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp359 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local
360 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode()
429 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument
431 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence()
434 It->Roles |= Rel.Roles; in handleDeclOccurrence()
436 FinalRelations.push_back(Rel); in handleDeclOccurrence()
438 Roles |= Rel.Roles; in handleDeclOccurrence()
455 for (auto &Rel : Relations) { in handleDeclOccurrence() local
456 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence()
457 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_x86.cpp165 Error addSingleRelocation(const typename ELFT::Rel &Rel, in addSingleRelocation() argument
170 auto ELFReloc = Rel.getType(false); in addSingleRelocation()
176 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation()
177 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation()
194 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
H A DCOFF_x86_64.cpp65 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()
98 switch (Rel.getType()) { in addSingleRelocation()
171 formatv("{0:d}", Rel.getType())); in addSingleRelocation()
H A DELF_x86_64.cpp126 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument
131 auto ELFReloc = Rel.getType(false); in addSingleRelocation()
137 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation()
138 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation()
152 int64_t Addend = Rel.r_addend; in addSingleRelocation()
226 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
H A DELF_aarch32.cpp159 Error addSingleRelRelocation(const typename ELFT::Rel &Rel, in addSingleRelRelocation() argument
162 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelRelocation()
163 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelRelocation()
176 uint32_t Type = Rel.getType(false); in addSingleRelRelocation()
181 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelRelocation()
H A DELF_loongarch.cpp360 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument
365 uint32_t Type = Rel.getType(false); in addSingleRelocation()
366 int64_t Addend = Rel.r_addend; in addSingleRelocation()
384 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation()
385 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation()
398 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
H A DELF_ppc64.cpp225 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument
229 auto ELFReloc = Rel.getType(false); in addSingleRelocation()
250 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation()
254 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation()
264 int64_t Addend = Rel.r_addend; in addSingleRelocation()
266 orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation()
H A DELF_aarch64.cpp237 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument
243 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation()
244 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation()
257 uint32_t Type = Rel.getType(false); in addSingleRelocation()
262 int64_t Addend = Rel.r_addend; in addSingleRelocation()
264 orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelocation()
H A DELFLinkGraphBuilder.h157 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { in forEachRelaRelocation()
158 return (Instance->*Method)(Rel, Target, GS); in forEachRelaRelocation()
170 [Instance, Method](const auto &Rel, const auto &Target, auto &GS) { in forEachRelRelocation()
171 return (Instance->*Method)(Rel, Target, GS); in forEachRelRelocation()
686 for (const typename ELFT::Rel &R : *RelEntries) in forEachRelRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DXCOFFObjectFile.cpp575 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext()
577 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext()
579 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext()
582 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset()
584 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset()
598 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset()
615 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol()
618 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationSymbol()
624 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationSymbol()
635 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType()
[all …]
H A DELF.cpp335 std::vector<typename ELFT::Rel>
367 Elf_Rel Rel; in decode_relrs() local
368 Rel.r_info = 0; in decode_relrs()
369 Rel.setType(getRelativeRelocationType(), false); in decode_relrs()
380 Rel.r_offset = Entry; in decode_relrs()
381 Relocs.push_back(Rel); in decode_relrs()
388 Rel.r_offset = Offset; in decode_relrs()
389 Relocs.push_back(Rel); in decode_relrs()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFYAML.cpp435 COFFYAML::Relocation &Rel) { in mapping() argument
436 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
437 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping()
438 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping()
443 IO, Rel.Type); in mapping()
447 IO, Rel.Type); in mapping()
451 IO, Rel.Type); in mapping()
455 IO, Rel.Type); in mapping()
459 IO, Rel.Type); in mapping()
462 IO.mapRequired("Type", Rel.Type); in mapping()
H A DELFEmitter.cpp1287 for (const ELFYAML::Relocation &Rel : *Section.Relocations) in writeSectionContent()
1288 OffsetMask |= Rel.Offset; in writeSectionContent()
1293 for (const ELFYAML::Relocation &Rel : *Section.Relocations) { in writeSectionContent()
1296 Rel.Symbol ? toSymbolIndex(*Rel.Symbol, Section.Name, IsDynamic) : 0; in writeSectionContent()
1302 (static_cast<typename ELFT::uint>(Rel.Offset) - Offset) >> Shift; in writeSectionContent()
1303 Offset = Rel.Offset; in writeSectionContent()
1305 DeltaOffset * 8 + (SymIdx != CurSymIdx) + (Type != Rel.Type ? 2 : 0) + in writeSectionContent()
1306 (Addend != static_cast<typename ELFT::uint>(Rel.Addend) ? 4 : 0); in writeSectionContent()
1320 CBA.writeSLEB128(static_cast<int32_t>(Rel.Type - Type)); in writeSectionContent()
1321 Type = Rel.Type; in writeSectionContent()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp85 for (const XCOFFRelocation32 &Rel : Sec.Relocations) { in writeSections() local
86 memcpy(Ptr, &Rel, sizeof(XCOFFRelocation32)); in writeSections()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp665 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable()
666 if (!Rel.Sym) in computeSymbolTable()
670 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable()
673 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable()
675 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable()
1044 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject() local
1045 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject()
1046 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenACCClauseAppertainment.cpp83 [=](const LLVMDirectiveClauseRelationships &Rel) { in getListsForDirective() argument
84 return Rel.DirKind == DK; in getListsForDirective()
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DELFYAML.h89 return sizeof(typename ELFT::Rel); in LLVM_YAML_STRONG_TYPEDEF()
944 static void mapping(IO &IO, ELFYAML::StackSizeEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
960 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
964 static void mapping(IO &IO, ELFYAML::PGOAnalysisMapEntry::PGOBBEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
971 ELFYAML::PGOAnalysisMapEntry::PGOBBEntry::SuccessorEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
975 static void mapping(IO &IO, ELFYAML::GnuHashHeader &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
979 static void mapping(IO &IO, ELFYAML::DynamicEntry &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()
1007 static void mapping(IO &IO, ELFYAML::Relocation &Rel); in LLVM_YAML_IS_SEQUENCE_VECTOR()

123