/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | ELFObjectFile.h | 62 virtual uint32_t getSectionType(DataRefImpl Sec) const = 0; 63 virtual uint64_t getSectionFlags(DataRefImpl Sec) const = 0; 64 virtual uint64_t getSectionOffset(DataRefImpl Sec) const = 0; 242 SectionRef toSectionRef(const Elf_Shdr *Sec) const { in toSectionRef() argument 243 return SectionRef(toDRI(Sec), this); in toSectionRef() 273 void moveSectionNext(DataRefImpl &Sec) const override; 274 Expected<StringRef> getSectionName(DataRefImpl Sec) const override; 275 uint64_t getSectionAddress(DataRefImpl Sec) const override; 276 uint64_t getSectionIndex(DataRefImpl Sec) const override; 277 uint64_t getSectionSize(DataRefImpl Sec) const override; [all …]
|
D | ELF.h | 55 const typename ELFT::Shdr *Sec) { in getSecIndexForError() argument 58 return "[index " + std::to_string(Sec - &TableOrErr->front()) + "]"; in getSecIndexForError() 170 Expected<Elf_Sym_Range> symbols(const Elf_Shdr *Sec) const { in symbols() argument 171 if (!Sec) in symbols() 173 return getSectionContentsAsArray<Elf_Sym>(Sec); in symbols() 176 Expected<Elf_Rela_Range> relas(const Elf_Shdr *Sec) const { in relas() argument 177 return getSectionContentsAsArray<Elf_Rela>(Sec); in relas() 180 Expected<Elf_Rel_Range> rels(const Elf_Shdr *Sec) const { in rels() argument 181 return getSectionContentsAsArray<Elf_Rel>(Sec); in rels() 184 Expected<Elf_Relr_Range> relrs(const Elf_Shdr *Sec) const { in relrs() argument [all …]
|
D | XCOFFObjectFile.h | 224 const char *getSectionNameInternal(DataRefImpl Sec) const; 263 void moveSectionNext(DataRefImpl &Sec) const override; 264 Expected<StringRef> getSectionName(DataRefImpl Sec) const override; 265 uint64_t getSectionAddress(DataRefImpl Sec) const override; 266 uint64_t getSectionIndex(DataRefImpl Sec) const override; 267 uint64_t getSectionSize(DataRefImpl Sec) const override; 269 getSectionContents(DataRefImpl Sec) const override; 270 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 271 bool isSectionCompressed(DataRefImpl Sec) const override; 272 bool isSectionText(DataRefImpl Sec) const override; [all …]
|
D | ObjectFile.h | 257 virtual void moveSectionNext(DataRefImpl &Sec) const = 0; 258 virtual Expected<StringRef> getSectionName(DataRefImpl Sec) const = 0; 259 virtual uint64_t getSectionAddress(DataRefImpl Sec) const = 0; 260 virtual uint64_t getSectionIndex(DataRefImpl Sec) const = 0; 261 virtual uint64_t getSectionSize(DataRefImpl Sec) const = 0; 263 getSectionContents(DataRefImpl Sec) const = 0; 264 virtual uint64_t getSectionAlignment(DataRefImpl Sec) const = 0; 265 virtual bool isSectionCompressed(DataRefImpl Sec) const = 0; 266 virtual bool isSectionText(DataRefImpl Sec) const = 0; 267 virtual bool isSectionData(DataRefImpl Sec) const = 0; [all …]
|
D | Wasm.h | 173 void moveSectionNext(DataRefImpl &Sec) const override; 174 Expected<StringRef> getSectionName(DataRefImpl Sec) const override; 175 uint64_t getSectionAddress(DataRefImpl Sec) const override; 176 uint64_t getSectionIndex(DataRefImpl Sec) const override; 177 uint64_t getSectionSize(DataRefImpl Sec) const override; 179 getSectionContents(DataRefImpl Sec) const override; 180 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 181 bool isSectionCompressed(DataRefImpl Sec) const override; 182 bool isSectionText(DataRefImpl Sec) const override; 183 bool isSectionData(DataRefImpl Sec) const override; [all …]
|
D | MachO.h | 284 unsigned getSectionType(SectionRef Sec) const; 293 unsigned getSectionID(SectionRef Sec) const; 295 void moveSectionNext(DataRefImpl &Sec) const override; 296 Expected<StringRef> getSectionName(DataRefImpl Sec) const override; 297 uint64_t getSectionAddress(DataRefImpl Sec) const override; 298 uint64_t getSectionIndex(DataRefImpl Sec) const override; 299 uint64_t getSectionSize(DataRefImpl Sec) const override; 302 getSectionContents(DataRefImpl Sec) const override; 303 uint64_t getSectionAlignment(DataRefImpl Sec) const override; 306 bool isSectionCompressed(DataRefImpl Sec) const override; [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | MCFragment.h | 105 explicit MCDummyFragment(MCSection *Sec) : MCFragment(FT_Dummy, false, Sec) {} in MCDummyFragment() argument 121 MCSection *Sec) in MCEncodedFragment() argument 122 : MCFragment(FType, HasInstructions, Sec) {} in MCEncodedFragment() 180 MCSection *Sec) in MCEncodedFragmentWithContents() argument 181 : MCEncodedFragment(FType, HasInstructions, Sec) {} in MCEncodedFragmentWithContents() 201 MCSection *Sec) in MCEncodedFragmentWithFixups() argument 203 Sec) {} in MCEncodedFragmentWithFixups() 231 MCDataFragment(MCSection *Sec = nullptr) 232 : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {} 246 MCCompactEncodedInstFragment(MCSection *Sec = nullptr) [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
D | XCOFFObjectFile.cpp | 230 void XCOFFObjectFile::moveSectionNext(DataRefImpl &Sec) const { in moveSectionNext() 231 const char *Ptr = reinterpret_cast<const char *>(Sec.p); in moveSectionNext() 232 Sec.p = reinterpret_cast<uintptr_t>(Ptr + getSectionHeaderSize()); in moveSectionNext() 235 Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const { in getSectionName() 236 return generateXCOFFFixedNameStringRef(getSectionNameInternal(Sec)); in getSectionName() 239 uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const { in getSectionAddress() 243 return toSection64(Sec)->VirtualAddress; in getSectionAddress() 245 return toSection32(Sec)->VirtualAddress; in getSectionAddress() 248 uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const { in getSectionIndex() 252 return toSection64(Sec) - sectionHeaderTable64() + 1; in getSectionIndex() [all …]
|
D | COFFObjectFile.cpp | 253 const coff_section *Sec = nullptr; in getSymbolSection() local 254 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec)) in getSymbolSection() 257 Ret.p = reinterpret_cast<uintptr_t>(Sec); in getSymbolSection() 267 const coff_section *Sec = toSec(Ref); in moveSectionNext() local 268 Sec += 1; in moveSectionNext() 269 Ref.p = reinterpret_cast<uintptr_t>(Sec); in moveSectionNext() 273 const coff_section *Sec = toSec(Ref); in getSectionName() local 274 return getSectionName(Sec); in getSectionName() 278 const coff_section *Sec = toSec(Ref); in getSectionAddress() local 279 uint64_t Result = Sec->VirtualAddress; in getSectionAddress() [all …]
|
D | ObjectFile.cpp | 76 bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const { in isSectionBitcode() 77 Expected<StringRef> NameOrErr = getSectionName(Sec); in isSectionBitcode() 84 bool ObjectFile::isSectionStripped(DataRefImpl Sec) const { return false; } in isSectionStripped() 86 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const { in isBerkeleyText() 87 return isSectionText(Sec); in isBerkeleyText() 90 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const { in isBerkeleyData() 91 return isSectionData(Sec); in isBerkeleyData() 95 ObjectFile::getRelocatedSection(DataRefImpl Sec) const { in getRelocatedSection() 96 return section_iterator(SectionRef(Sec, this)); in getRelocatedSection()
|
D | SymbolSize.cpp | 27 static unsigned getSectionID(const ObjectFile &O, SectionRef Sec) { in getSectionID() argument 29 return M->getSectionID(Sec); in getSectionID() 30 return cast<COFFObjectFile>(O).getSectionID(Sec); in getSectionID() 62 for (SectionRef Sec : O.sections()) { in computeSymbolSizes() local 63 uint64_t Address = Sec.getAddress(); in computeSymbolSizes() 64 uint64_t Size = Sec.getSize(); in computeSymbolSizes() 66 {O.symbol_end(), Address + Size, 0, getSectionID(O, Sec)}); in computeSymbolSizes()
|
D | WasmObjectFile.cpp | 275 WasmSection Sec; in WasmObjectFile() local 278 if ((Err = readSection(Sec, Ctx, Checker))) in WasmObjectFile() 280 if ((Err = parseSection(Sec))) in WasmObjectFile() 283 Sections.push_back(Sec); in WasmObjectFile() 287 Error WasmObjectFile::parseSection(WasmSection &Sec) { in parseSection() argument 289 Ctx.Start = Sec.Content.data(); in parseSection() 290 Ctx.End = Ctx.Start + Sec.Content.size(); in parseSection() 292 switch (Sec.Type) { in parseSection() 294 return parseCustomSection(Sec, Ctx); in parseSection() 323 "Invalid section type: " + Twine(Sec.Type), object_error::parse_failed); in parseSection() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | MachOEmitter.cpp | 91 SectionType constructSection(MachOYAML::Section Sec) { in constructSection() argument 93 memcpy(reinterpret_cast<void *>(&TempSec.sectname[0]), &Sec.sectname[0], 16); in constructSection() 94 memcpy(reinterpret_cast<void *>(&TempSec.segname[0]), &Sec.segname[0], 16); in constructSection() 95 TempSec.addr = Sec.addr; in constructSection() 96 TempSec.size = Sec.size; in constructSection() 97 TempSec.offset = Sec.offset; in constructSection() 98 TempSec.align = Sec.align; in constructSection() 99 TempSec.reloff = Sec.reloff; in constructSection() 100 TempSec.nreloc = Sec.nreloc; in constructSection() 101 TempSec.flags = Sec.flags; in constructSection() [all …]
|
D | WasmEmitter.cpp | 33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, 508 void WasmWriter::writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec, in writeRelocSection() argument 510 switch (Sec.Type) { in writeRelocSection() 518 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection() 527 encodeULEB128(Sec.Relocations.size(), OS); in writeRelocSection() 529 for (auto Reloc : Sec.Relocations) { in writeRelocSection() 551 for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) { in writeWasm() local 553 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm() 555 if (!Checker.isValidSectionOrder(Sec->Type, SecName)) { in writeWasm() 556 reportError("out of order section type: " + Twine(Sec->Type)); in writeWasm() [all …]
|
D | ELFEmitter.cpp | 239 for (const ELFYAML::Section *Sec : Sections) in ELFState() local 240 if (!Sec->Name.empty()) in ELFState() 241 DocSections.insert(Sec->Name); in ELFState() 264 std::unique_ptr<ELFYAML::Chunk> Sec = std::make_unique<ELFYAML::Section>( in ELFState() local 266 Sec->Name = SecName; in ELFState() 267 Doc.Chunks.push_back(std::move(Sec)); in ELFState() 418 ELFYAML::Section *Sec = cast<ELFYAML::Section>(D.get()); in initSectionHeaders() local 419 if (SecNdx == 0 && Sec->IsImplicit) in initSectionHeaders() 427 if (initImplicitHeader(CBA, SHeader, Sec->Name, in initSectionHeaders() 428 Sec->IsImplicit ? nullptr : Sec)) in initSectionHeaders() [all …]
|
D | COFFYAML.cpp | 559 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { in mapping() argument 561 IO, Sec.Header.Characteristics); in mapping() 562 IO.mapRequired("Name", Sec.Name); in mapping() 564 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U); in mapping() 565 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U); in mapping() 566 IO.mapOptional("Alignment", Sec.Alignment, 0U); in mapping() 571 IO.mapOptional("SectionData", Sec.SectionData); in mapping() 572 if (Sec.Name == ".debug$S") in mapping() 573 IO.mapOptional("Subsections", Sec.DebugS); in mapping() 574 else if (Sec.Name == ".debug$T") in mapping() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCFragment.cpp | 34 for (MCSection &Sec : Asm) in MCAsmLayout() 35 if (!Sec.isVirtualSection()) in MCAsmLayout() 36 SectionOrder.push_back(&Sec); in MCAsmLayout() 37 for (MCSection &Sec : Asm) in MCAsmLayout() 38 if (Sec.isVirtualSection()) in MCAsmLayout() 39 SectionOrder.push_back(&Sec); in MCAsmLayout() 43 const MCSection *Sec = F->getParent(); in isFragmentValid() local 44 const MCFragment *LastValid = LastValidFragment.lookup(Sec); in isFragmentValid() 47 assert(LastValid->getParent() == Sec); in isFragmentValid() 62 MCSection *Sec = F->getParent(); in ensureValid() local [all …]
|
D | WinCOFFObjectWriter.cpp | 170 void defineSection(MCSectionCOFF const &Sec); 191 const COFFSection &Sec, const MCSection &MCSec); 258 static uint32_t getAlignment(const MCSectionCOFF &Sec) { in getAlignment() argument 259 switch (Sec.getAlignment()) { in getAlignment() 360 COFFSection *Sec = nullptr; in DefineSymbol() local 362 Sec = SectionMap[Base->getFragment()->getParent()]; in DefineSymbol() 363 if (Sym->Section && Sym->Section != Sec) in DefineSymbol() 375 if (!Sec) in DefineSymbol() 378 WeakDefault->Section = Sec; in DefineSymbol() 395 Sym->Section = Sec; in DefineSymbol() [all …]
|
D | MachObjectWriter.cpp | 120 uint64_t MachObjectWriter::getPaddingSize(const MCSection *Sec, in getPaddingSize() argument 122 uint64_t EndAddr = getSectionAddress(Sec) + Layout.getSectionAddressSize(Sec); in getPaddingSize() 123 unsigned Next = Sec->getLayoutOrder() + 1; in getPaddingSize() 215 const MCSection &Sec, uint64_t VMAddr, in writeSection() argument 219 uint64_t SectionSize = Layout.getSectionAddressSize(&Sec); in writeSection() 220 const MCSectionMachO &Section = cast<MCSectionMachO>(Sec); in writeSection() 224 assert(Layout.getSectionFileSize(&Sec) == 0 && "Invalid file size!"); in writeSection() 250 W.write<uint32_t>(IndirectSymBase.lookup(&Sec)); // reserved1 in writeSection() 645 for (const MCSection *Sec : Layout.getSectionOrder()) { in computeSectionAddresses() local 646 StartAddress = alignTo(StartAddress, Sec->getAlignment()); in computeSectionAddresses() [all …]
|
D | XCOFFObjectWriter.cpp | 234 for (auto *Sec : Sections) in reset() local 235 Sec->reset(); in reset() 523 for (const auto *Sec : Sections) { in writeSectionHeaderTable() local 525 if (Sec->Index == Section::UninitializedIndex) in writeSectionHeaderTable() 529 ArrayRef<char> NameRef(Sec->Name, XCOFF::NameSize); in writeSectionHeaderTable() 534 W.write<uint32_t>(Sec->Address); in writeSectionHeaderTable() 535 W.write<uint32_t>(Sec->Address); in writeSectionHeaderTable() 537 W.write<uint32_t>(Sec->Size); in writeSectionHeaderTable() 538 W.write<uint32_t>(Sec->FileOffsetToData); in writeSectionHeaderTable() 548 W.write<int32_t>(Sec->Flags); in writeSectionHeaderTable() [all …]
|
D | MCAssembler.cpp | 668 void MCAssembler::writeSectionData(raw_ostream &OS, const MCSection *Sec, in writeSectionData() argument 673 if (Sec->isVirtualSection()) { in writeSectionData() 674 assert(Layout.getSectionFileSize(Sec) == 0 && "Invalid size for section!"); in writeSectionData() 677 for (const MCFragment &F : *Sec) { in writeSectionData() 689 if (auto *ELFSec = dyn_cast<const MCSectionELF>(Sec)) in writeSectionData() 717 for (const MCFragment &F : *Sec) in writeSectionData() 720 assert(OS.tell() - Start == Layout.getSectionAddressSize(Sec)); in writeSectionData() 768 for (MCSection &Sec : *this) { in layout() 771 if (Sec.getFragmentList().empty()) in layout() 772 new MCDataFragment(&Sec); in layout() [all …]
|
D | ELFObjectWriter.cpp | 75 bool isDwoSection(const MCSectionELF &Sec) { in isDwoSection() argument 76 return Sec.getSectionName().endswith(".dwo"); in isDwoSection() 153 unsigned addToSectionTable(const MCSectionELF *Sec); 207 const MCSectionELF &Sec); 215 void writeSectionData(const MCAssembler &Asm, MCSection &Sec, 223 void writeRelocations(const MCAssembler &Asm, const MCSectionELF &Sec); 344 unsigned ELFWriter::addToSectionTable(const MCSectionELF *Sec) { in addToSectionTable() argument 345 SectionTable.push_back(Sec); in addToSectionTable() 346 StrTabBuilder.add(Sec->getSectionName()); in addToSectionTable() 783 const MCSectionELF &Sec) { in createRelocationSection() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/MCTargetDesc/ |
D | MipsOptionRecord.cpp | 36 MCSectionELF *Sec = in EmitMipsOptionRecord() local 39 MCA.registerSection(*Sec); in EmitMipsOptionRecord() 40 Sec->setAlignment(Align(8)); in EmitMipsOptionRecord() 41 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord() 55 MCSectionELF *Sec = Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, in EmitMipsOptionRecord() local 57 MCA.registerSection(*Sec); in EmitMipsOptionRecord() 58 Sec->setAlignment(MTS->getABI().IsN32() ? Align(8) : Align(4)); in EmitMipsOptionRecord() 59 Streamer->SwitchSection(Sec); in EmitMipsOptionRecord()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/Symbolize/ |
D | SymbolizableObjectFile.cpp | 166 Expected<section_iterator> Sec = Symbol.getSection(); in addSymbol() local 167 if (!Sec || (Obj && Obj->section_end() == *Sec)) in addSymbol() 321 for (SectionRef Sec : Module->sections()) { in getModuleSectionIndexForAddress() local 322 if (!Sec.isText() || Sec.isVirtual()) in getModuleSectionIndexForAddress() 325 if (Address >= Sec.getAddress() && in getModuleSectionIndexForAddress() 326 Address < Sec.getAddress() + Sec.getSize()) in getModuleSectionIndexForAddress() 327 return Sec.getIndex(); in getModuleSectionIndexForAddress()
|
/third_party/ltp/testcases/kernel/fs/fs_maim/ |
D | maimparts | 54 ($Cyl,$Heads,$Sec) = split(/\, /,$Temp1,3); 57 ($Sec,$Junk) = split(/ /,$Sec,2);
|