| /llvm-project/clang-tools-extra/clangd/unittests/ |
| H A D | FindTargetTests.cpp | 55 return OS << D.Name << " Rel=" << D.Relations; in operator <<() 66 using Rel = DeclRelation; typedef in clang::clangd::__anon757ba52b0111::TargetDeclTest 196 EXPECT_DECLS("DeclRefExpr", {"using foo::f", Rel::Alias}, {"int f(int)"}); in TEST_F() 206 EXPECT_DECLS("UsingDecl", {"using foo::f", Rel::Alias}, {"int f(int)"}, in TEST_F() 218 EXPECT_DECLS("MemberExpr", {"using X::foo", Rel::Alias}, {"int foo()"}); in TEST_F() 230 EXPECT_DECLS("UnresolvedUsingValueDecl", {"using Base<T>::waldo", Rel::Alias}, in TEST_F() 243 EXPECT_DECLS("TemplateSpecializationTypeLoc", {"using ns::S", Rel::Alias}, in TEST_F() 245 {"class S", Rel::TemplatePattern}); in TEST_F() 256 EXPECT_DECLS("TemplateArgumentLoc", {"using ns::S", Rel::Alias}, in TEST_F() 269 {"using ns::S", Rel in TEST_F() [all...] |
| H A D | QualityTests.cpp | 398 SymbolRelevanceSignals Rel; in TEST() local 400 Rel.merge(FooSym); in TEST() 401 EXPECT_FALSE(Rel.IsInstanceMember); in TEST() 403 Rel.merge(BarSym); in TEST() 404 EXPECT_TRUE(Rel.IsInstanceMember); in TEST() 406 Rel.IsInstanceMember = false; in TEST() 408 Rel.merge(TplSym); in TEST() 409 EXPECT_TRUE(Rel.IsInstanceMember); in TEST() 416 Rel.IsInstanceMember = false; in TEST() 417 Rel.merge(CodeCompletionResult(Foo, /*Priority=*/0)); in TEST() [all …]
|
| /llvm-project/llvm/tools/llvm-objdump/ |
| H A D | WasmDump.cpp | 47 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 D | ELFDump.cpp | 93 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() 94 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() local 107 auto ERela = Obj->getCrel(Rel); in getRelocationValueString() 111 const typename ELFT::Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 115 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 165 const RelocationRef &Rel, in getELFRelocationValueString() 168 return getRelocationValueString(ELF32LE, Rel, Result); in getELFRelocationValueString() 170 return getRelocationValueString(ELF64LE, Rel, Result); in getELFRelocationValueString() 172 return getRelocationValueString(ELF32BE, Rel, Resul in getELFRelocationValueString() 166 getELFRelocationValueString(const ELFObjectFileBase * Obj,const RelocationRef & Rel,SmallVectorImpl<char> & Result) getELFRelocationValueString() argument [all...] |
| /llvm-project/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 83 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0; 341 void moveRelocationNext(DataRefImpl &Rel) const override; 342 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 343 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 344 uint64_t getRelocationType(DataRefImpl Rel) const override; 345 void getRelocationTypeName(DataRefImpl Rel, 454 const Elf_Rel *getRel(DataRefImpl Rel) const; 462 /// Get the relocation section that contains \a Rel. 463 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument 464 auto RelSecOrErr = EF.getSection(Rel in getRelSection() 1096 moveRelocationNext(DataRefImpl & Rel) moveRelocationNext() argument 1102 getRelocationSymbol(DataRefImpl Rel) getRelocationSymbol() argument 1122 getRelocationOffset(DataRefImpl Rel) getRelocationOffset() argument 1133 getRelocationType(DataRefImpl Rel) getRelocationType() argument 1150 getRelocationTypeName(DataRefImpl Rel,SmallVectorImpl<char> & Result) getRelocationTypeName() argument 1157 getRelocationAddend(DataRefImpl Rel) getRelocationAddend() argument 1167 getRel(DataRefImpl Rel) getRel() argument [all...] |
| H A D | GOFFObjectFile.h | 119 void moveRelocationNext(DataRefImpl &Rel) const override {} in moveRelocationNext() argument 120 uint64_t getRelocationOffset(DataRefImpl Rel) const override { return 0; } in getRelocationOffset() argument 121 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override { in getRelocationSymbol() argument 125 uint64_t getRelocationType(DataRefImpl Rel) const override { return 0; } in getRelocationType() argument 126 void getRelocationTypeName(DataRefImpl Rel, in getRelocationTypeName() argument
|
| H A D | MachO.h | 486 void moveRelocationNext(DataRefImpl &Rel) const override; 487 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 488 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 489 section_iterator getRelocationSection(DataRefImpl Rel) const; 490 uint64_t getRelocationType(DataRefImpl Rel) const override; 491 void getRelocationTypeName(DataRefImpl Rel, 493 uint8_t getRelocationLength(DataRefImpl Rel) const; 499 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const; 705 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 706 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
|
| H A D | Wasm.h | 202 void moveRelocationNext(DataRefImpl &Rel) const override; 203 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 204 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 205 uint64_t getRelocationType(DataRefImpl Rel) const override; 206 void getRelocationTypeName(DataRefImpl Rel,
|
| /llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELF_loongarch.cpp | 360 Error addSingleRelocation(const typename ELFT::Rela &Rel, 365 uint32_t Type = Rel.getType(false); 366 int64_t Addend = Rel.r_addend; 384 uint32_t SymbolIndex = Rel.getSymbol(false); 385 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); 398 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; 91 addSingleRelocation(const typename ELFT::Rela & Rel,const typename ELFT::Shdr & FixupSect,Block & BlockToFix) addSingleRelocation() argument
|
| H A D | ELF_i386.cpp | 163 Error addSingleRelocation(const typename ELFT::Rel &Rel, in addSingleRelocation() 168 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 169 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 182 Expected<i386::EdgeKind_i386> Kind = getRelocationKind(Rel.getType(false)); in addSingleRelocation() 186 auto FixupAddress = orc::ExecutorAddr(FixupSection.sh_addr) + Rel.r_offset; in addSingleRelocation() 162 addSingleRelocation(const typename ELFT::Rel & Rel,const typename ELFT::Shdr & FixupSection,Block & BlockToFix) addSingleRelocation() argument
|
| 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() 98 switch (Rel.getType()) { in addSingleRelocation() 171 formatv("{0:d}", Rel.getType())); in addSingleRelocation()
|
| H A D | ELF_x86_64.cpp | 126 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 D | ELF_aarch32.cpp | 158 Error addSingleRelRelocation(const typename ELFT::Rel &Rel, in addSingleRelRelocation() argument 161 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelRelocation() 162 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelRelocation() 175 uint32_t Type = Rel.getType(false); in addSingleRelRelocation() 180 auto FixupAddress = orc::ExecutorAddr(FixupSect.sh_addr) + Rel.r_offset; in addSingleRelRelocation()
|
| H A D | ELF_aarch64.cpp | 237 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() 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() 156 addSingleRelocation(const typename ELFT::Rela & Rel,const typename ELFT::Shdr & FixupSect,Block & BlockToFix) addSingleRelocation() argument
|
| H A D | ELF_ppc64.cpp | 225 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()
|
| /llvm-project/bolt/lib/Core/ |
| H A D | BinarySection.cpp | 57 const Relocation &Rel = *Begin++; in hash() local 60 if (BinaryData *RelBD = BC.getBinaryDataByName(Rel.Symbol->getName())) in hash() 62 Offset = Rel.Offset + Rel.getSize(); in hash() 231 for (const Relocation &Rel : relocations()) { in reorderRelocations() 232 uint64_t RelAddr = Rel.Offset + getAddress(); in reorderRelocations() 240 Relocation NewRel(Rel); in reorderRelocations() 244 LLVM_DEBUG(dbgs() << "BOLT-DEBUG: moving " << Rel << " -> " << NewRel in reorderContents() 222 for (const Relocation &Rel : relocations()) { reorderRelocations() local
|
| /llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 347 for (auto &Rel : Relations) { in shouldReportOccurrenceForSystemDeclOnlyMode() local 348 if (acceptForRelation(Rel.Roles)) in shouldReportOccurrenceForSystemDeclOnlyMode() 417 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument 419 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence() 422 It->Roles |= Rel.Roles; in handleDeclOccurrence() 424 FinalRelations.push_back(Rel); in handleDeclOccurrence() 426 Roles |= Rel.Roles; in handleDeclOccurrence() 443 for (auto &Rel : Relations) { in handleDeclOccurrence() local 444 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence() 445 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
|
| /llvm-project/bolt/lib/Rewrite/ |
| H A D | RewriteInstance.cpp | 1287 for (const Relocation &Rel : Section.dynamicRelocations()) { in discoverBOLTReserved() 1288 const uint64_t RelAddress = SectionAddress + Rel.Offset; in discoverBOLTReserved() 1294 assert(Rel.isRelative() && "Expected relative relocation for island"); in discoverRtFiniAddress() 1572 const Relocation *Rel = BC->getDynamicRelocationAt(TargetAddress); in disassemblePLTSectionAArch64() 1573 if (!Rel) in disassemblePLTSectionAArch64() 1576 MCSymbol *Symbol = Rel->Symbol; in disassemblePLTSectionAArch64() 1578 if (BC->isRISCV() || !Rel->Addend || !Rel->isIRelative()) in disassemblePLTSectionAArch64() 1582 BinaryFunction *TargetBF = BC->getBinaryFunctionAtAddress(Rel->Addend); in disassemblePLTSectionAArch64() 1586 << Twine::utohexstr(Rel in disassemblePLTSectionAArch64() 1241 for (const Relocation &Rel : Section.dynamicRelocations()) { discoverFileObjects() local 1519 const Relocation *Rel = BC->getDynamicRelocationAt(TargetAddress); createPLTBinaryFunction() local 2078 DataRefImpl Rel = RelRef.getRawDataRefImpl(); getRelocationAddend() local 2096 getRelocationAddend(const ELFObjectFileBase * Obj,const RelocationRef & Rel) getRelocationAddend() argument 2106 DataRefImpl Rel = RelRef.getRawDataRefImpl(); getRelocationSymbol() local 2123 getRelocationSymbol(const ELFObjectFileBase * Obj,const RelocationRef & Rel) getRelocationSymbol() argument 2129 analyzeRelocation(const RelocationRef & Rel,uint64_t & RType,std::string & SymbolName,bool & IsSectionRelocation,uint64_t & SymbolAddress,int64_t & Addend,uint64_t & ExtractedValue,bool & Skip) const analyzeRelocation() argument 2338 for (const RelocationRef &Rel : Section.relocations()) { readDynamicRelocations() local 2431 printRelocationInfo(const RelocationRef & Rel,StringRef SymbolName,uint64_t SymbolAddress,uint64_t Addend,uint64_t ExtractedValue) const printRelocationInfo() argument 2488 for (const RelocationRef &Rel : Section.relocations()) readRelocations() local 2493 handleRelocation(const SectionRef & RelocatedSection,const RelocationRef & Rel) handleRelocation() argument 2693 __anon1ee742a11202(const Relocation &Rel) handleRelocation() argument 5068 for (const Relocation &Rel : Section.dynamicRelocations()) { patchELFAllocatableRelrSection() local 5169 for (const Relocation &Rel : Section.dynamicRelocations()) { patchELFAllocatableRelaSections() local [all...] |
| /llvm-project/clang-tools-extra/clangd/ |
| H A D | FindTarget.cpp | 133 using Rel = DeclRelation; typedef 185 add(TND->getUnderlyingType(), Flags | Rel::Underlying); in add() 186 Flags |= Rel::Alias; // continue with the alias. in add() 191 Flags |= Rel::Alias; // continue with the alias. in add() 196 add(NAD->getUnderlyingDecl(), Flags | Rel::Underlying); in add() 197 Flags |= Rel::Alias; // continue with the alias in add() 205 Flags |= Rel::Alias; // continue with the alias in add() 209 Flags |= Rel::Alias; in add() 216 report(USD->getIntroducer(), Flags | Rel::Alias); in add() 240 add(Pat, Flags | Rel in add() [all...] |
| /llvm-project/clang-tools-extra/clangd/index/dex/ |
| H A D | Dex.h | 46 for (auto &&Rel : Relations) in Dex() 47 this->Relations[std::make_pair(Rel.Subject, in Dex() 48 static_cast<uint8_t>(Rel.Predicate))] in Dex() 49 .push_back(Rel.Object); in Dex()
|
| /llvm-project/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()
|
| /llvm-project/llvm/lib/Object/ |
| H A D | XCOFFObjectFile.cpp | 571 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 573 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext() 575 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 578 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 580 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset() 594 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 611 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const { in getRelocationSymbol() 614 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel in getRelocationSymbol() 637 getRelocationTypeName(DataRefImpl Rel,SmallVectorImpl<char> & Result) const getRelocationTypeName() argument [all...] |
| /llvm-project/llvm/lib/ObjectYAML/ |
| H A D | COFFYAML.cpp | 435 COFFYAML::Relocation &Rel) { in mapping() 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 in mapping() 416 mapping(IO & IO,COFFYAML::Relocation & Rel) mapping() argument [all...] |
| /llvm-project/libcxx/benchmarks/ |
| H A D | string.bench.cpp | |
| /llvm-project/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()
|