| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | FindTargetTests.cpp | 66 using Rel = DeclRelation; typedef in clang::clangd::__anond1dea4c80111::TargetDeclTest 245 {"class S", Rel::TemplatePattern}); in TEST_F() 355 {"namespace a", Rel::Underlying}); in TEST_F() 371 {"struct S", Rel::Underlying}); in TEST_F() 378 {"struct S", Rel::Underlying}); in TEST_F() 661 Rel::TemplateInstantiation | Rel::Underlying}, in TEST_F() 662 {"class SmallVector", Rel::TemplatePattern | Rel::Underlying}, in TEST_F() 664 Rel::Alias | Rel::TemplatePattern}); in TEST_F() 913 {"using type = int", Rel::Alias | Rel::Underlying}, in TEST_F() 914 {"using type = C::type", Rel::Alias | Rel::Underlying}, in TEST_F() [all …]
|
| H A D | QualityTests.cpp | 398 SymbolRelevanceSignals Rel; in TEST() local 400 Rel.merge(FooSym); 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() 420 EXPECT_TRUE(Rel.IsInstanceMember); in TEST() 421 Rel.IsInstanceMember = false; in TEST() [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 315 void getRelocationTypeName(DataRefImpl Rel, 420 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection() 1009 ++Rel.d.b; in moveRelocationNext() 1016 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationSymbol() 1033 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationOffset() 1035 return getRel(Rel)->r_offset; in getRelocationOffset() 1037 return getRela(Rel)->r_offset; in getRelocationOffset() 1042 const Elf_Shdr *sec = getRelSection(Rel); in getRelocationType() 1057 uint32_t type = getRelocationType(Rel); in getRelocationTypeName() 1066 return (int64_t)getRela(Rel)->r_addend; in getRelocationAddend() [all …]
|
| H A D | MachO.h | 459 void moveRelocationNext(DataRefImpl &Rel) const override; 460 uint64_t getRelocationOffset(DataRefImpl Rel) const override; 461 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override; 462 section_iterator getRelocationSection(DataRefImpl Rel) const; 463 uint64_t getRelocationType(DataRefImpl Rel) const override; 464 void getRelocationTypeName(DataRefImpl Rel, 466 uint8_t getRelocationLength(DataRefImpl Rel) const; 472 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const; 671 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const; 672 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,
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinarySection.cpp | 52 const Relocation &Rel = *Begin++; in hash() local 55 if (BinaryData *RelBD = BC.getBinaryDataByName(Rel.Symbol->getName())) in hash() 57 Offset = Rel.Offset + Rel.getSize(); in hash() 204 for (const Relocation &Rel : relocations()) { in reorderRelocations() local 205 uint64_t RelAddr = Rel.Offset + getAddress(); in reorderRelocations() 213 Relocation NewRel(Rel); in reorderRelocations() 217 LLVM_DEBUG(dbgs() << "BOLT-DEBUG: moving " << Rel << " -> " << NewRel in reorderRelocations()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFF_x86_64.cpp | 62 Error addSingleRelocation(const object::RelocationRef &Rel, in addSingleRelocation() argument 65 const object::coff_relocation *COFFRel = getObject().getCOFFRelocation(Rel); in addSingleRelocation() 66 auto SymbolIt = Rel.getSymbol(); in addSingleRelocation() 88 orc::ExecutorAddr(FixupSect.getAddress()) + Rel.getOffset(); in addSingleRelocation() 94 switch (Rel.getType()) { in addSingleRelocation() 113 formatv("{0:d}", Rel.getType())); in addSingleRelocation()
|
| H A D | ELF_x86_64.cpp | 163 Error addSingleRelocation(const typename ELFT::Rela &Rel, in addSingleRelocation() argument 168 uint32_t SymbolIndex = Rel.getSymbol(false); in addSingleRelocation() 169 auto ObjSymbol = Base::Obj.getRelocationSymbol(Rel, Base::SymTabSec); in addSingleRelocation() 183 auto ELFRelocKind = getRelocationKind(Rel.getType(false)); in addSingleRelocation() 187 int64_t Addend = Rel.r_addend; in addSingleRelocation() 241 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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/bolt/lib/Rewrite/ |
| H A D | RewriteInstance.cpp | 1274 if (!Rel || !Rel->Symbol) in createPLTBinaryFunction() 1282 setPLTSymbol(BF, Rel->Symbol->getName()); in createPLTBinaryFunction() 1871 auto SymbolIter = Rel.getSymbol(); in analyzeRelocation() 2229 const uint64_t RType = Rel.getType(); in readDynamicRelocations() 2250 Rel.getTypeName(TypeName); in readDynamicRelocations() 2309 Rel.getTypeName(TypeName); in readRelocations() 2331 Rel.getTypeName(TypeName); in readRelocations() 2332 uint64_t RType = Rel.getType(); in readRelocations() 4949 MCSymbol *Symbol = Rel.Symbol; in patchELFAllocatableRelaSections() 4951 uint64_t Addend = Rel.Addend; in patchELFAllocatableRelaSections() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | FindTarget.cpp | 132 using Rel = DeclRelation; typedef 185 Flags |= Rel::Alias; // continue with the alias. in add() 190 Flags |= Rel::Alias; // continue with the alias. in add() 193 Flags |= Rel::Alias; // continue with the alias. in add() 196 Flags |= Rel::Alias; // continue with the alias in add() 204 Flags |= Rel::Alias; // continue with the alias in add() 208 Flags |= Rel::Alias; in add() 212 report(USD->getIntroducer(), Flags | Rel::Alias); in add() 236 add(Pat, Flags | Rel::TemplatePattern); in add() 238 Flags |= Rel::TemplateInstantiation; in add() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/dex/ |
| H A D | Dex.h | 45 for (auto &&Rel : Relations) in Dex() 46 this->Relations[std::make_pair(Rel.Subject, in Dex() 47 static_cast<uint8_t>(Rel.Predicate))] in Dex() 48 .push_back(Rel.Object); in Dex()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | ELF.cpp | 312 std::vector<typename ELFT::Rel> 344 Elf_Rel Rel; in decode_relrs() local 345 Rel.r_info = 0; in decode_relrs() 346 Rel.setType(getRelativeRelocationType(), false); in decode_relrs() 357 Rel.r_offset = Entry; in decode_relrs() 358 Relocs.push_back(Rel); in decode_relrs() 365 Rel.r_offset = Offset; in decode_relrs() 366 Relocs.push_back(Rel); in decode_relrs()
|
| H A D | XCOFFObjectFile.cpp | 512 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const { in moveRelocationNext() 514 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation64>(Rel.p) + 1); in moveRelocationNext() 516 Rel.p = reinterpret_cast<uintptr_t>(viewAs<XCOFFRelocation32>(Rel.p) + 1); in moveRelocationNext() 519 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const { in getRelocationOffset() 521 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationOffset() 535 const XCOFFRelocation32 *Reloc = viewAs<XCOFFRelocation32>(Rel.p); in getRelocationOffset() 555 const XCOFFRelocation64 *Reloc = viewAs<XCOFFRelocation64>(Rel.p); in getRelocationSymbol() 572 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const { in getRelocationType() 574 return viewAs<XCOFFRelocation64>(Rel.p)->Type; in getRelocationType() 575 return viewAs<XCOFFRelocation32>(Rel.p)->Type; in getRelocationType() [all …]
|
| /llvm-project-15.0.7/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-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | COFFYAML.cpp | 414 COFFYAML::Relocation &Rel) { in mapping() argument 415 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping() 416 IO.mapOptional("SymbolName", Rel.SymbolName, StringRef()); in mapping() 417 IO.mapOptional("SymbolTableIndex", Rel.SymbolTableIndex); in mapping() 422 IO, Rel.Type); in mapping() 426 IO, Rel.Type); in mapping() 430 IO, Rel.Type); in mapping() 434 IO, Rel.Type); in mapping() 437 IO.mapRequired("Type", Rel.Type); in mapping()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | Relocation.h | 131 inline raw_ostream &operator<<(raw_ostream &OS, const Relocation &Rel) { 132 Rel.print(OS);
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MachObjectWriter.cpp | 629 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable() 630 if (!Rel.Sym) in computeSymbolTable() 634 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable() 637 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable() 639 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable() 1017 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject() local 1018 W.write<uint32_t>(Rel.MRE.r_word0); in writeObject() 1019 W.write<uint32_t>(Rel.MRE.r_word1); in writeObject()
|