Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DRelocVisitor.h43 uint64_t visit(uint32_t Rel, RelocationRef R, uint64_t Value = 0) {
45 return visitELF(Rel, R, Value);
47 return visitCOFF(Rel, R, Value);
49 return visitMachO(Rel, R, Value);
51 return visitWasm(Rel, R, Value);
63 uint64_t visitELF(uint32_t Rel, RelocationRef R, uint64_t Value) { in visitELF() argument
67 return visitX86_64(Rel, R, Value); in visitELF()
70 return visitAarch64(Rel, R, Value); in visitELF()
73 return visitBpf(Rel, R, Value); in visitELF()
76 return visitMips64(Rel, R, Value); in visitELF()
[all …]
DELFObjectFile.h64 virtual Expected<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
217 using Elf_Rel = typename ELFT::Rel;
266 void moveRelocationNext(DataRefImpl &Rel) const override;
267 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
268 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
269 uint64_t getRelocationType(DataRefImpl Rel) const override;
270 void getRelocationTypeName(DataRefImpl Rel,
279 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
280 auto RelSecOrErr = EF.getSection(Rel.d.a); in getRelSection()
348 const Elf_Rel *getRel(DataRefImpl Rel) const;
[all …]
DMachO.h337 void moveRelocationNext(DataRefImpl &Rel) const override;
338 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
339 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
340 section_iterator getRelocationSection(DataRefImpl Rel) const;
341 uint64_t getRelocationType(DataRefImpl Rel) const override;
342 void getRelocationTypeName(DataRefImpl Rel,
344 uint8_t getRelocationLength(DataRefImpl Rel) const;
350 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
550 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
551 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
DWasm.h181 void moveRelocationNext(DataRefImpl &Rel) const override;
182 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
183 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
184 uint64_t getRelocationType(DataRefImpl Rel) const override;
185 void getRelocationTypeName(DataRefImpl Rel,
/external/swiftshader/third_party/LLVM/lib/Object/
DELFObjectFile.cpp306 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection()
307 return getSection(Rel.w.b); in getRelSection()
311 bool isRelocationHasAddend(DataRefImpl Rel) const;
319 const Elf_Rel *getRel(DataRefImpl Rel) const;
350 virtual error_code getRelocationNext(DataRefImpl Rel,
352 virtual error_code getRelocationAddress(DataRefImpl Rel,
354 virtual error_code getRelocationSymbol(DataRefImpl Rel,
356 virtual error_code getRelocationType(DataRefImpl Rel,
358 virtual error_code getRelocationTypeName(DataRefImpl Rel,
360 virtual error_code getRelocationAdditionalInfo(DataRefImpl Rel,
[all …]
DMachOObjectFile.cpp524 getRelocation(DataRefImpl Rel, in getRelocation() argument
529 getSection64(Sections[Rel.d.b], Sect); in getRelocation()
533 getSection(Sections[Rel.d.b], Sect); in getRelocation()
536 MachOObj->ReadRelocationEntry(relOffset, Rel.d.a, Res); in getRelocation()
538 error_code MachOObjectFile::getRelocationNext(DataRefImpl Rel, in getRelocationNext() argument
540 ++Rel.d.a; in getRelocationNext()
541 Res = RelocationRef(Rel, this); in getRelocationNext()
544 error_code MachOObjectFile::getRelocationAddress(DataRefImpl Rel, in getRelocationAddress() argument
549 getSection64(Sections[Rel.d.b], Sect); in getRelocationAddress()
553 getSection(Sections[Rel.d.b], Sect); in getRelocationAddress()
[all …]
DCOFFObjectFile.cpp563 const coff_relocation *COFFObjectFile::toRel(DataRefImpl Rel) const { in toRel()
564 return reinterpret_cast<const coff_relocation*>(Rel.p); in toRel()
566 error_code COFFObjectFile::getRelocationNext(DataRefImpl Rel, in getRelocationNext() argument
568 Rel.p = reinterpret_cast<uintptr_t>( in getRelocationNext()
569 reinterpret_cast<const coff_relocation*>(Rel.p) + 1); in getRelocationNext()
570 Res = RelocationRef(Rel, this); in getRelocationNext()
573 error_code COFFObjectFile::getRelocationAddress(DataRefImpl Rel, in getRelocationAddress() argument
575 Res = toRel(Rel)->VirtualAddress; in getRelocationAddress()
578 error_code COFFObjectFile::getRelocationSymbol(DataRefImpl Rel, in getRelocationSymbol() argument
580 const coff_relocation* R = toRel(Rel); in getRelocationSymbol()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Object/
DMachO.h66 virtual error_code getRelocationNext(DataRefImpl Rel,
68 virtual error_code getRelocationAddress(DataRefImpl Rel,
70 virtual error_code getRelocationSymbol(DataRefImpl Rel,
72 virtual error_code getRelocationType(DataRefImpl Rel,
74 virtual error_code getRelocationTypeName(DataRefImpl Rel,
76 virtual error_code getRelocationAdditionalInfo(DataRefImpl Rel,
78 virtual error_code getRelocationValueString(DataRefImpl Rel,
97 void getRelocation(DataRefImpl Rel,
DCOFF.h92 const coff_relocation *toRel(DataRefImpl Rel) const;
119 virtual error_code getRelocationNext(DataRefImpl Rel,
121 virtual error_code getRelocationAddress(DataRefImpl Rel,
123 virtual error_code getRelocationSymbol(DataRefImpl Rel,
125 virtual error_code getRelocationType(DataRefImpl Rel,
127 virtual error_code getRelocationTypeName(DataRefImpl Rel,
129 virtual error_code getRelocationAdditionalInfo(DataRefImpl Rel,
131 virtual error_code getRelocationValueString(DataRefImpl Rel,
DObjectFile.h256 virtual error_code getRelocationNext(DataRefImpl Rel,
258 virtual error_code getRelocationAddress(DataRefImpl Rel,
260 virtual error_code getRelocationSymbol(DataRefImpl Rel,
262 virtual error_code getRelocationType(DataRefImpl Rel,
264 virtual error_code getRelocationTypeName(DataRefImpl Rel,
266 virtual error_code getRelocationAdditionalInfo(DataRefImpl Rel,
268 virtual error_code getRelocationValueString(DataRefImpl Rel,
/external/llvm/include/llvm/Object/
DELFObjectFile.h63 virtual ErrorOr<int64_t> getRelocationAddend(DataRefImpl Rel) const = 0;
239 void moveRelocationNext(DataRefImpl &Rel) const override;
240 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
241 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
242 uint64_t getRelocationType(DataRefImpl Rel) const override;
243 void getRelocationTypeName(DataRefImpl Rel,
251 const Elf_Shdr *getRelSection(DataRefImpl Rel) const { in getRelSection() argument
252 return *EF.getSection(Rel.d.a); in getRelSection()
310 const Elf_Rel *getRel(DataRefImpl Rel) const;
330 ErrorOr<int64_t> getRelocationAddend(DataRefImpl Rel) const override;
[all …]
DMachO.h234 void moveRelocationNext(DataRefImpl &Rel) const override;
235 uint64_t getRelocationOffset(DataRefImpl Rel) const override;
236 symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override;
237 section_iterator getRelocationSection(DataRefImpl Rel) const;
238 uint64_t getRelocationType(DataRefImpl Rel) const override;
239 void getRelocationTypeName(DataRefImpl Rel,
241 uint8_t getRelocationLength(DataRefImpl Rel) const;
246 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
384 MachO::any_relocation_info getRelocation(DataRefImpl Rel) const;
385 MachO::data_in_code_entry getDice(DataRefImpl Rel) const;
DObjectFile.h232 virtual void moveRelocationNext(DataRefImpl &Rel) const = 0;
233 virtual uint64_t getRelocationOffset(DataRefImpl Rel) const = 0;
234 virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
235 virtual uint64_t getRelocationType(DataRefImpl Rel) const = 0;
236 virtual void getRelocationTypeName(DataRefImpl Rel,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/DWARF/
DDWARFDataExtractor.cpp22 Optional<RelocAddrEntry> Rel = Obj->find(*Section, *Off); in getRelocatedValue() local
23 if (!Rel) in getRelocatedValue()
26 *SecNdx = Rel->SectionIndex; in getRelocatedValue()
27 return getUnsigned(Off, Size) + Rel->Value; in getRelocatedValue()
/external/clang/lib/Index/
DIndexingContext.cpp310 auto addRelation = [&](SymbolRelation Rel) { in handleDeclOccurrence() argument
313 return Elem.RelatedSymbol == Rel.RelatedSymbol; in handleDeclOccurrence()
316 It->Roles |= Rel.Roles; in handleDeclOccurrence()
318 FinalRelations.push_back(Rel); in handleDeclOccurrence()
320 Roles |= Rel.Roles; in handleDeclOccurrence()
326 for (auto &Rel : Relations) { in handleDeclOccurrence() local
327 addRelation(SymbolRelation(Rel.Roles, in handleDeclOccurrence()
328 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/external/libchrome/soong/
Dbindings_generator.go94 if !strings.HasSuffix(in.Rel(), ".mojom") {
95 ctx.PropertyErrorf("srcs", "Source is not a .mojom file: %s", in.Rel())
98 relStem := strings.TrimSuffix(in.Rel(), ".mojom")
108 "package": packagePath.Rel(),
240 packageName := android.PathForModuleSrc(ctx, "").Rel()
247 if !strings.HasSuffix(in.Rel(), ".mojom") {
248 ctx.PropertyErrorf("srcs", "Source is not a .mojom file: %s", in.Rel())
251 relStem := strings.TrimSuffix(in.Rel(), ".mojom")
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Delf2yaml.cpp27 typedef typename ELFT::Rel Elf_Rel;
52 std::error_code dumpRelocation(const RelT *Rel, const Elf_Shdr *SymTab,
278 std::error_code ELFDumper<ELFT>::dumpRelocation(const RelT *Rel, in dumpRelocation() argument
281 R.Type = Rel->getType(Obj.isMips64EL()); in dumpRelocation()
282 R.Offset = Rel->r_offset; in dumpRelocation()
285 auto SymOrErr = Obj.getRelocationSymbol(Rel, SymTab); in dumpRelocation()
375 for (const Elf_Rel &Rel : *Rels) { in dumpRelSection()
377 if (std::error_code EC = dumpRelocation(&Rel, SymTab, R)) in dumpRelSection()
402 for (const Elf_Rela &Rel : *Rels) { in dumpRelaSection()
404 if (std::error_code EC = dumpRelocation(&Rel, SymTab, R)) in dumpRelaSection()
[all …]
Dcoff2yaml.cpp185 COFFYAML::Relocation Rel; in dumpSections() local
195 Rel.SymbolName = *SymbolNameOrErr; in dumpSections()
196 Rel.VirtualAddress = reloc->VirtualAddress; in dumpSections()
197 Rel.Type = reloc->Type; in dumpSections()
198 Relocations.push_back(Rel); in dumpSections()
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp490 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local
498 ErrorOr<const Elf_Shdr *> SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
526 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
620 const RelocationRef &Rel, in getRelocationValueString() argument
623 return getRelocationValueString(ELF32LE, Rel, Result); in getRelocationValueString()
625 return getRelocationValueString(ELF64LE, Rel, Result); in getRelocationValueString()
627 return getRelocationValueString(ELF32BE, Rel, Result); in getRelocationValueString()
629 return getRelocationValueString(ELF64BE, Rel, Result); in getRelocationValueString()
633 const RelocationRef &Rel, in getRelocationValueString() argument
635 symbol_iterator SymI = Rel.getSymbol(); in getRelocationValueString()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp449 DataRefImpl Rel = RelRef.getRawDataRefImpl(); in getRelocationValueString() local
457 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString()
487 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString()
528 const RelocationRef &Rel, in getRelocationValueString() argument
531 return getRelocationValueString(ELF32LE, Rel, Result); in getRelocationValueString()
533 return getRelocationValueString(ELF64LE, Rel, Result); in getRelocationValueString()
535 return getRelocationValueString(ELF32BE, Rel, Result); in getRelocationValueString()
537 return getRelocationValueString(ELF64BE, Rel, Result); in getRelocationValueString()
541 const RelocationRef &Rel, in getRelocationValueString() argument
543 symbol_iterator SymI = Rel.getSymbol(); in getRelocationValueString()
[all …]
/external/llvm/tools/obj2yaml/
Dcoff2yaml.cpp122 COFFYAML::Relocation Rel; in dumpSections() local
132 Rel.SymbolName = *SymbolNameOrErr; in dumpSections()
133 Rel.VirtualAddress = reloc->VirtualAddress; in dumpSections()
134 Rel.Type = reloc->Type; in dumpSections()
135 Relocations.push_back(Rel); in dumpSections()
/external/swiftshader/third_party/subzero/src/
DIceELFSection.h381 Elf32_Rel Rel; in writeData() local
382 Rel.r_offset = Fixup.position(); in writeData()
383 Rel.setSymbolAndType(Symbol->getNumber(), Fixup.kind()); in writeData()
384 Str.writeAddrOrOffset<IsELF64>(Rel.r_offset); in writeData()
385 Str.writeELFWord<IsELF64>(Rel.r_info); in writeData()
/external/llvm/lib/MC/
DMachObjectWriter.cpp594 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable()
595 if (!Rel.Sym) in computeSymbolTable()
599 unsigned Index = Rel.Sym->getIndex(); in computeSymbolTable()
602 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & (~0U << 24)) | Index | (1 << 27); in computeSymbolTable()
604 Rel.MRE.r_word1 = (Rel.MRE.r_word1 & 0xff) | Index << 8 | (1 << 4); in computeSymbolTable()
913 for (const RelAndSymbol &Rel : make_range(Relocs.rbegin(), Relocs.rend())) { in writeObject() local
914 write32(Rel.MRE.r_word0); in writeObject()
915 write32(Rel.MRE.r_word1); in writeObject()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2elf.cpp115 typedef typename ELFT::Rel Elf_Rel;
494 for (const auto &Rel : Section.Relocations) { in writeSectionContent() local
499 if (Rel.Symbol) in writeSectionContent()
500 SymN2I.lookup(*Rel.Symbol, SymIdx); in writeSectionContent()
505 REntry.r_offset = Rel.Offset; in writeSectionContent()
506 REntry.r_addend = Rel.Addend; in writeSectionContent()
507 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc)); in writeSectionContent()
512 REntry.r_offset = Rel.Offset; in writeSectionContent()
513 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc)); in writeSectionContent()
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp377 for (const auto &Rel : Section.Relocations) { in writeSectionContent() local
382 SymN2I.lookup(Rel.Symbol, SymIdx); in writeSectionContent()
387 REntry.r_offset = Rel.Offset; in writeSectionContent()
388 REntry.r_addend = Rel.Addend; in writeSectionContent()
389 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc)); in writeSectionContent()
394 REntry.r_offset = Rel.Offset; in writeSectionContent()
395 REntry.setSymbolAndType(SymIdx, Rel.Type, isMips64EL(Doc)); in writeSectionContent()

1234