Home
last modified time | relevance | path

Searched refs:Section (Results 1 – 25 of 1811) sorted by relevance

12345678910>>...73

/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp50 const MCSection *Section) { in isDwarfSection()
53 if (!Section || Section->isText()) in isDwarfSection()
55 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection()
56 Section == FI->getDwarfInfoSection() || in isDwarfSection()
57 Section == FI->getDwarfMacinfoSection() || in isDwarfSection()
58 Section == FI->getDwarfFrameSection() || in isDwarfSection()
59 Section == FI->getDwarfAddrSection() || in isDwarfSection()
60 Section == FI->getDwarfRangesSection() || in isDwarfSection()
61 Section in isDwarfSection()
46 isDwarfSection(const MCObjectFileInfo * FI,const MCSection * Section) isDwarfSection() argument
86 changeSection(const MCSection * CurSection,MCSection * Section,uint32_t SubSection,raw_ostream & OS) changeSection() argument
[all...]
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDebugLineSectionEmitter.h101 SectionDescriptor &Section) { in emitLineTablePrologue() argument
103 Section.emitIntVal(P.getVersion(), 2); in emitLineTablePrologue()
106 Section.emitIntVal(P.getAddressSize(), 1); in emitLineTablePrologue()
109 Section.emitIntVal(P.SegSelectorSize, 1); in emitLineTablePrologue()
113 Section.emitOffset(0xBADDEF); in emitLineTablePrologue()
115 uint64_t OffsetAfterPrologueLength = Section.OS.tell(); in emitLineTablePrologue()
116 emitLineTableProloguePayload(P, Section); in emitLineTablePrologue()
117 uint64_t OffsetAfterPrologueEnd = Section.OS.tell(); in emitLineTablePrologue()
120 Section.apply(OffsetAfterPrologueLength - in emitLineTablePrologue()
121 Section in emitLineTablePrologue()
128 emitLineTablePrologueV2IncludeAndFileTable(const DWARFDebugLine::Prologue & P,SectionDescriptor & Section) emitLineTablePrologueV2IncludeAndFileTable() argument
170 emitLineTablePrologueV5IncludeAndFileTable(const DWARFDebugLine::Prologue & P,SectionDescriptor & Section) emitLineTablePrologueV5IncludeAndFileTable() argument
269 emitLineTableProloguePayload(const DWARFDebugLine::Prologue & P,SectionDescriptor & Section) emitLineTableProloguePayload() argument
296 emitLineTableRows(const DWARFDebugLine::LineTable & LineTable,SectionDescriptor & Section) emitLineTableRows() argument
[all...]
/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp26 Section::~Section() = default;
46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument
47 IO.mapRequired("Type", Section.Type); in commonSectionMapping()
48 IO.mapOptional("Relocations", Section.Relocations); in commonSectionMapping()
49 IO.mapOptional("HeaderSecSizeEncodingLen", Section.HeaderSecSizeEncodingLen); in commonSectionMapping()
52 static void sectionMapping(IO &IO, WasmYAML::DylinkSection &Section) { in sectionMapping() argument
53 commonSectionMapping(IO, Section); in sectionMapping()
54 IO.mapRequired("Name", Section in sectionMapping()
64 sectionMapping(IO & IO,WasmYAML::NameSection & Section) sectionMapping() argument
72 sectionMapping(IO & IO,WasmYAML::LinkingSection & Section) sectionMapping() argument
82 sectionMapping(IO & IO,WasmYAML::ProducersSection & Section) sectionMapping() argument
90 sectionMapping(IO & IO,WasmYAML::TargetFeaturesSection & Section) sectionMapping() argument
96 sectionMapping(IO & IO,WasmYAML::CustomSection & Section) sectionMapping() argument
102 sectionMapping(IO & IO,WasmYAML::TypeSection & Section) sectionMapping() argument
107 sectionMapping(IO & IO,WasmYAML::ImportSection & Section) sectionMapping() argument
112 sectionMapping(IO & IO,WasmYAML::FunctionSection & Section) sectionMapping() argument
117 sectionMapping(IO & IO,WasmYAML::TableSection & Section) sectionMapping() argument
122 sectionMapping(IO & IO,WasmYAML::MemorySection & Section) sectionMapping() argument
127 sectionMapping(IO & IO,WasmYAML::TagSection & Section) sectionMapping() argument
132 sectionMapping(IO & IO,WasmYAML::GlobalSection & Section) sectionMapping() argument
137 sectionMapping(IO & IO,WasmYAML::ExportSection & Section) sectionMapping() argument
142 sectionMapping(IO & IO,WasmYAML::StartSection & Section) sectionMapping() argument
147 sectionMapping(IO & IO,WasmYAML::ElemSection & Section) sectionMapping() argument
152 sectionMapping(IO & IO,WasmYAML::CodeSection & Section) sectionMapping() argument
157 sectionMapping(IO & IO,WasmYAML::DataSection & Section) sectionMapping() argument
162 sectionMapping(IO & IO,WasmYAML::DataCountSection & Section) sectionMapping() argument
168 mapping(IO & IO,std::unique_ptr<WasmYAML::Section> & Section) mapping() argument
[all...]
H A DWasmEmitter.cpp33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);
39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section);
40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section);
41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section);
42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section);
43 void writeSectionContent(raw_ostream &OS, WasmYAML::MemorySection &Section);
44 void writeSectionContent(raw_ostream &OS, WasmYAML::TagSection &Section);
45 void writeSectionContent(raw_ostream &OS, WasmYAML::GlobalSection &Section);
46 void writeSectionContent(raw_ostream &OS, WasmYAML::ExportSection &Section);
163 writeSectionContent(raw_ostream & OS,WasmYAML::DylinkSection & Section) writeSectionContent() argument
186 writeSectionContent(raw_ostream & OS,WasmYAML::LinkingSection & Section) writeSectionContent() argument
271 writeSectionContent(raw_ostream & OS,WasmYAML::NameSection & Section) writeSectionContent() argument
315 writeSectionContent(raw_ostream & OS,WasmYAML::ProducersSection & Section) writeSectionContent() argument
337 writeSectionContent(raw_ostream & OS,WasmYAML::TargetFeaturesSection & Section) writeSectionContent() argument
347 writeSectionContent(raw_ostream & OS,WasmYAML::CustomSection & Section) writeSectionContent() argument
365 writeSectionContent(raw_ostream & OS,WasmYAML::TypeSection & Section) writeSectionContent() argument
385 writeSectionContent(raw_ostream & OS,WasmYAML::ImportSection & Section) writeSectionContent() argument
422 writeSectionContent(raw_ostream & OS,WasmYAML::FunctionSection & Section) writeSectionContent() argument
429 writeSectionContent(raw_ostream & OS,WasmYAML::ExportSection & Section) writeSectionContent() argument
439 writeSectionContent(raw_ostream & OS,WasmYAML::StartSection & Section) writeSectionContent() argument
444 writeSectionContent(raw_ostream & OS,WasmYAML::TableSection & Section) writeSectionContent() argument
459 writeSectionContent(raw_ostream & OS,WasmYAML::MemorySection & Section) writeSectionContent() argument
466 writeSectionContent(raw_ostream & OS,WasmYAML::TagSection & Section) writeSectionContent() argument
475 writeSectionContent(raw_ostream & OS,WasmYAML::GlobalSection & Section) writeSectionContent() argument
491 writeSectionContent(raw_ostream & OS,WasmYAML::ElemSection & Section) writeSectionContent() argument
519 writeSectionContent(raw_ostream & OS,WasmYAML::CodeSection & Section) writeSectionContent() argument
547 writeSectionContent(raw_ostream & OS,WasmYAML::DataSection & Section) writeSectionContent() argument
561 writeSectionContent(raw_ostream & OS,WasmYAML::DataCountSection & Section) writeSectionContent() argument
[all...]
H A DELFEmitter.cpp226 StringRef SecName, ELFYAML::Section *YAMLSec);
231 ELFYAML::Section *YAMLSec);
235 ELFYAML::Section *YAMLSec);
238 ELFYAML::Section *YAMLSec);
249 const ELFYAML::NoBitsSection &Section,
252 const ELFYAML::RawContentSection &Section,
255 const ELFYAML::RelocationSection &Section,
258 const ELFYAML::RelrSection &Section,
267 const ELFYAML::SymverSection &Section,
270 const ELFYAML::VerneedSection &Section,
1261 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::RawContentSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1275 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::RelocationSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1356 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::RelrSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1390 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::GroupSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1415 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::SymverSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1427 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::StackSizesSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1440 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::BBAddrMapSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1549 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::LinkerOptionsSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1565 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::DependentLibrariesSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1603 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::CallGraphProfileSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1616 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::HashSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1638 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::VerdefSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1684 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::VerneedSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1732 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::ARMIndexTableSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1746 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::MipsABIFlags & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1771 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::DynamicSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1788 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::AddrsigSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1800 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::NoteSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
1841 writeSectionContent(Elf_Shdr & SHeader,const ELFYAML::GnuHashSection & Section,ContiguousBlobAccumulator & CBA) writeSectionContent() argument
[all...]
H A DELFYAML.cpp1357 IO.mapOptional("Section", Symbol.Section); in validate()
1375 if (Symbol.Index && Symbol.Section) in commonSectionMapping()
1376 return "Index and Section cannot both be specified for Symbol"; in commonSectionMapping()
1380 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping()
1381 IO.mapOptional("Name", Section.Name, StringRef()); in commonSectionMapping()
1382 IO.mapRequired("Type", Section.Type); in commonSectionMapping()
1383 IO.mapOptional("Flags", Section.Flags); in commonSectionMapping()
1384 IO.mapOptional("Address", Section in commonSectionMapping()
1359 commonSectionMapping(IO & IO,ELFYAML::Section & Section) commonSectionMapping() argument
1386 sectionMapping(IO & IO,ELFYAML::DynamicSection & Section) sectionMapping() argument
1391 sectionMapping(IO & IO,ELFYAML::RawContentSection & Section) sectionMapping() argument
1407 sectionMapping(IO & IO,ELFYAML::BBAddrMapSection & Section) sectionMapping() argument
1414 sectionMapping(IO & IO,ELFYAML::StackSizesSection & Section) sectionMapping() argument
1419 sectionMapping(IO & IO,ELFYAML::HashSection & Section) sectionMapping() argument
1431 sectionMapping(IO & IO,ELFYAML::NoteSection & Section) sectionMapping() argument
1437 sectionMapping(IO & IO,ELFYAML::GnuHashSection & Section) sectionMapping() argument
1444 sectionMapping(IO & IO,ELFYAML::NoBitsSection & Section) sectionMapping() argument
1448 sectionMapping(IO & IO,ELFYAML::VerdefSection & Section) sectionMapping() argument
1454 sectionMapping(IO & IO,ELFYAML::SymverSection & Section) sectionMapping() argument
1459 sectionMapping(IO & IO,ELFYAML::VerneedSection & Section) sectionMapping() argument
1465 sectionMapping(IO & IO,ELFYAML::RelocationSection & Section) sectionMapping() argument
1471 sectionMapping(IO & IO,ELFYAML::RelrSection & Section) sectionMapping() argument
1482 sectionMapping(IO & IO,ELFYAML::SymtabShndxSection & Section) sectionMapping() argument
1487 sectionMapping(IO & IO,ELFYAML::AddrsigSection & Section) sectionMapping() argument
1507 sectionMapping(IO & IO,ELFYAML::LinkerOptionsSection & Section) sectionMapping() argument
1513 sectionMapping(IO & IO,ELFYAML::DependentLibrariesSection & Section) sectionMapping() argument
1518 sectionMapping(IO & IO,ELFYAML::CallGraphProfileSection & Section) sectionMapping() argument
1528 sectionMapping(IO & IO,ELFYAML::ARMIndexTableSection & Section) sectionMapping() argument
1533 sectionMapping(IO & IO,ELFYAML::MipsABIFlags & Section) sectionMapping() argument
1569 mapping(IO & IO,std::unique_ptr<ELFYAML::Chunk> & Section) mapping() argument
[all...]
/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIASectionContrib.cpp19 : Session(PDBSession), Section(DiaSection) {} in DIASectionContrib()
23 if (FAILED(Section->get_compiland(&Symbol))) in getCompiland()
32 PrivateGetDIAValue(IDiaSectionContrib *Section, in PrivateGetDIAValue() argument
35 if (S_OK == (Section->*Method)(&Value)) in PrivateGetDIAValue()
42 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection); in getAddressSection()
46 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressOffset); in getAddressOffset()
50 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_virtualAddress); in getVirtualAddress()
54 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress()
59 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength()
63 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_notPaged); in isNotPaged()
[all …]
/llvm-project/bolt/lib/Rewrite/
H A DExecutableFileMemoryManager.cpp28 SmallVector<jitlink::Section *> orderedSections(jitlink::LinkGraph &G) { in orderedSections()
29 SmallVector<jitlink::Section *> Sections( in orderedSections()
37 size_t sectionAlignment(const jitlink::Section &Section) { in sectionAlignment() argument
38 assert(!Section.empty() && "Cannot get alignment for empty section"); in sectionAlignment()
39 return JITLinkLinker::orderedBlocks(Section).front()->getAlignment(); in sectionAlignment()
42 StringRef sectionName(const jitlink::Section &Section, in sectionName() argument
44 auto Name = Section.getName(); in sectionName()
68 for (auto &Section : AllocatedSections) in ~AllocInfo() local
69 deallocate_buffer(Section.Address, Section.Size, Section.Alignment); in ~AllocInfo()
72 SectionAllocInfo allocateSection(const jitlink::Section &Section) { in allocateSection()
[all …]
H A DRewriteInstance.cpp300 bool refersToReorderedSection(ErrorOr<BinarySection &> Section) { in refersToReorderedSection()
302 return Section && Section->getName() == SectionName;
549 for (const SectionRef &Section : InputFile->sections()) { in discoverStorage()
550 Expected<StringRef> SectionNameOrErr = Section.getName(); in discoverStorage()
555 BC->OldTextSectionAddress = Section.getAddress(); in discoverStorage()
556 BC->OldTextSectionSize = Section.getSize(); in discoverStorage()
558 Expected<StringRef> SectionContentsOrErr = Section.getContents(); in discoverStorage()
798 BinarySection Section(*BC, *cantFail(Sym.getSection())); in discoverFileObjects()
799 return Section in discoverFileObjects()
297 refersToReorderedSection(ErrorOr<BinarySection &> Section) refersToReorderedSection() argument
546 for (const SectionRef &Section : InputFile->sections()) { discoverStorage() local
789 BinarySection Section(*BC, *cantFail(Sym.getSection())); discoverFileObjects() local
966 section_iterator Section = discoverFileObjects() local
1127 ErrorOr<BinarySection &> Section = discoverFileObjects() local
1199 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); discoverFileObjects() local
1239 for (const BinarySection &Section : BC->allocatableSections()) { discoverFileObjects() local
1540 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(EntryAddress); createPLTBinaryFunction() local
1551 disassemblePLTInstruction(const BinarySection & Section,uint64_t InstrOffset,MCInst & Instruction,uint64_t & InstrSize) disassemblePLTInstruction() argument
1572 disassemblePLTSectionAArch64(BinarySection & Section) disassemblePLTSectionAArch64() argument
1616 disassemblePLTSectionRISCV(BinarySection & Section) disassemblePLTSectionRISCV() argument
1661 disassemblePLTSectionX86(BinarySection & Section,uint64_t EntrySize) disassemblePLTSectionX86() argument
1701 __anon1ee742a10c02(BinarySection &Section, uint64_t EntrySize) disassemblePLT() argument
1871 for (const SectionRef &Section : InputFile->sections()) { readSpecialSections() local
2183 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(SymbolAddress); analyzeRelocation() local
2313 for (const SectionRef &Section : InputFile->sections()) { processRelocations() local
2328 readDynamicRelocations(const SectionRef & Section,bool IsJmpRel) readDynamicRelocations() argument
2377 readDynamicRelrRelocations(BinarySection & Section) readDynamicRelrRelocations() argument
2391 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); readDynamicRelrRelocations() local
2440 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(SymbolAddress); printRelocationInfo() local
2455 readRelocations(const SectionRef & Section) readRelocations() argument
2590 section_iterator Section = handleRelocation() local
3501 ErrorOr<BinarySection &> Section = Function->getCodeSection(); emitAndLink() local
3653 __anon1ee742a12002(BinarySection *Section) mapCodeSections() argument
3767 BinarySection &Section = JT->getOutputSection(); mapCodeSections() local
3826 BinarySection &Section = mapCodeSections() local
4095 for (const ELF64LE::Shdr &Section : cantFail(Obj.sections())) { rewriteNoteSections() local
4194 for (const BinarySection &Section : BC->sections()) finalizeSectionStringTable() local
4255 shouldStrip(const ELFShdrTy & Section,StringRef SectionName) shouldStrip() argument
4282 __anon1ee742a12702(const ELFShdrTy &Section, BinarySection &BinSec) getOutputSections() argument
4289 for (const ELFShdrTy &Section : Sections) { getOutputSections() local
4342 ELFShdrTy &Section = SectionKV.second; getOutputSections() local
4366 for (const ELFShdrTy &Section : Sections) { getOutputSections() local
4425 for (const ELFShdrTy &Section : Sections) { getOutputSections() local
4663 Expected<const typename ELFT::Shdr *> Section = updateELFSymbolTable() local
4954 for (const ELFShdrTy &Section : cantFail(Obj.sections())) { patchELFSymTabs() local
4981 for (const ELFShdrTy &Section : cantFail(Obj.sections())) { patchELFSymTabs() local
5062 for (const BinarySection &Section : BC->allocatableSections()) { patchELFAllocatableRelrSection() local
5082 ErrorOr<BinarySection &> Section = patchELFAllocatableRelrSection() local
5138 ErrorOr<BinarySection &> Section = BC->getSectionForAddress(Address); patchELFAllocatableRelaSections() local
5248 for (const SectionRef &Section : File->sections()) { patchELFGOT() local
5544 BinarySection &Section = JT->getOutputSection(); rewriteFile() local
5829 ErrorOr<BinarySection &> Section = BC->getUniqueSectionByName(SectionName); willOverwriteSection() local
[all...]
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local
45 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation()
53 RuntimeDyldELFMips::evaluateMIPS32Relocation(const SectionEntry &Section, in evaluateMIPS32Relocation() argument
58 << format("%llx", Section.getAddressWithOffset(Offset)) in evaluateMIPS32Relocation()
[all …]
/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugSubsectionVisitor.cpp54 DebugCrossModuleExportsSubsectionRef Section; in visitDebugSubsection()
55 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() local
57 return V.visitCrossModuleExports(Section, State); in visitDebugSubsection()
60 DebugCrossModuleImportsSubsectionRef Section; in visitDebugSubsection()
61 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() local
63 return V.visitCrossModuleImports(Section, State); in visitDebugSubsection()
66 DebugSymbolsSubsectionRef Section; in visitDebugSubsection()
67 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection() local
69 return V.visitSymbols(Section, State); in visitDebugSubsection()
72 DebugStringTableSubsectionRef Section; in visitDebugSubsection()
73 DebugStringTableSubsectionRef Section; visitDebugSubsection() local
79 DebugFrameDataSubsectionRef Section; visitDebugSubsection() local
85 DebugSymbolRVASubsectionRef Section; visitDebugSubsection() local
[all...]
/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h186 struct Section { struct
187 explicit Section(SectionType SecType) : Type(SecType) {} in Section() function
188 virtual ~Section();
195 struct CustomSection : Section { argument
197 : Section(wasm::WASM_SEC_CUSTOM), Name(Name) {} in CustomSection()
199 static bool classof(const Section *S) { in classof()
221 static bool classof(const Section *S) { in classof()
238 static bool classof(const Section *S) { in classof()
251 static bool classof(const Section *S) { in classof()
266 static bool classof(const Section *S) { in classof()
[all …]
/llvm-project/llvm/unittests/DebugInfo/PDB/
H A DNativeSessionTest.cpp60 uint32_t Section; in TEST() local
62 ASSERT_TRUE(S->addressForVA(LoadAddr + 5000, Section, Offset)); in TEST()
63 EXPECT_EQ(1U, Section); in TEST()
66 ASSERT_TRUE(S->addressForVA(-1, Section, Offset)); in TEST()
67 EXPECT_EQ(0U, Section); in TEST()
70 ASSERT_TRUE(S->addressForVA(4, Section, Offset)); in TEST()
71 EXPECT_EQ(0U, Section); in TEST()
74 ASSERT_TRUE(S->addressForVA(LoadAddr + 100000, Section, Offset)); in TEST()
75 EXPECT_EQ(3U, Section); in TEST()
84 uint32_t Section; in TEST() local
[all …]
/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp277 static void mapping(IO &IO, ExportSection &Section) { in mapping()
282 IO.mapRequired("archs", Section.Architectures); in mapping()
284 IO.mapOptional("allowed-clients", Section.AllowableClients); in mapping()
286 IO.mapOptional("allowable-clients", Section.AllowableClients); in mapping()
287 IO.mapOptional("re-exports", Section.ReexportedLibraries); in mapping()
288 IO.mapOptional("symbols", Section.Symbols); in mapping()
289 IO.mapOptional("objc-classes", Section.Classes); in mapping()
291 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping()
292 IO.mapOptional("objc-ivars", Section.IVars); in mapping()
293 IO.mapOptional("weak-def-symbols", Section.WeakDefSymbols); in mapping()
[all …]
/llvm-project/llvm/test/tools/llvm-objdump/ELF/RISCV/
H A Dextensions.test363 Section: .interp
367 Section: .note.ABI-tag
371 Section: .gnu.hash
375 Section: .dynsym
379 Section: .dynstr
383 Section: .gnu.version
387 Section: .gnu.version_r
391 Section: .rela.dyn
395 Section: .rela.plt
399 Section: .plt
[all …]
/llvm-project/lldb/unittests/SymbolFile/DWARF/
H A DDWARFIndexCachingTest.cpp43 EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugInfo, 0x11223344)); in TEST()
44 EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugTypes, 0x11223344)); in TEST()
45 EncodeDecode(DIERef(100, DIERef::Section::DebugInfo, 0x11223344)); in TEST()
46 EncodeDecode(DIERef(200, DIERef::Section::DebugTypes, 0x11223344)); in TEST()
51 EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugInfo, in TEST()
53 EncodeDecode(DIERef(std::nullopt, DIERef::Section::DebugTypes, in TEST()
56 DIERef(100, DIERef::Section::DebugInfo, DIERef::k_die_offset_mask - 1)); in TEST()
58 DIERef(200, DIERef::Section::DebugTypes, DIERef::k_die_offset_mask - 1)); in TEST()
59 EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugInfo, in TEST()
61 EncodeDecode(DIERef(DIERef::k_file_index_mask, DIERef::Section::DebugTypes, in TEST()
[all …]
/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp258 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section, in loadObject()
272 *Section.getAddressWithOffset(Offset) = TruncatedAddr; in resolveX86_64Relocation()
274 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
281 support::ulittle16_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
284 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
288 support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
291 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
301 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
304 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
308 uint64_t FinalAddress = Section in resolveX86_64Relocation()
260 resolveX86_64Relocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend,uint64_t SymOffset) resolveX86_64Relocation() argument
338 for (const auto &Section : Sections) { resolveX86_64Relocation() local
378 resolveX86Relocation(const SectionEntry & Section,uint64_t Offset,uint32_t Value,uint32_t Type,int32_t Addend) resolveX86Relocation() argument
406 resolveAArch64Relocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend) resolveAArch64Relocation() argument
592 resolveARMRelocation(const SectionEntry & Section,uint64_t Offset,uint32_t Value,uint32_t Type,int32_t Addend) resolveARMRelocation() argument
679 for (auto &Section : Obj.sections()) { findPPC64TOCSection() local
816 resolvePPC32Relocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend) resolvePPC32Relocation() argument
836 resolvePPC64Relocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend) resolvePPC64Relocation() argument
930 resolveSystemZRelocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend) resolveSystemZRelocation() argument
984 resolveBPFRelocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend) resolveBPFRelocation() argument
1037 const SectionEntry &Section = Sections[RE.SectionID]; resolveRelocation() local
1042 resolveRelocation(const SectionEntry & Section,uint64_t Offset,uint64_t Value,uint32_t Type,int64_t Addend,uint64_t SymOffset,SID SectionID) resolveRelocation() argument
1178 SectionEntry &Section = Sections[SectionID]; resolveAArch64Branch() local
1345 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
1392 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
1494 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
1570 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
1732 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
1786 SectionEntry *Section = &Sections[SectionID]; processRelocationRef() local
1961 auto &Section = Sections[SectionID]; processX86_64GOTTPOFFRelocation() local
2204 auto &Section = Sections[SectionID]; processX86_64TLSRelocation() local
2405 const SectionRef &Section = i->first; finalizeLoad() local
[all...]
/llvm-project/clang/lib/Basic/
H A DProfileList.cpp90 StringRef Section = getSectionName(Kind); in getDefault() local
92 if (SCL->inSection(Section, "default", "allow")) in getDefault()
94 if (SCL->inSection(Section, "default", "skip")) in getDefault()
96 if (SCL->inSection(Section, "default", "forbid")) in getDefault()
105 ProfileList::inSection(StringRef Section, StringRef Prefix, in inSection() argument
107 if (SCL->inSection(Section, Prefix, Query, "allow")) in inSection()
109 if (SCL->inSection(Section, Prefix, Query, "skip")) in inSection()
111 if (SCL->inSection(Section, Prefix, Query, "forbid")) in inSection()
113 if (SCL->inSection(Section, Prefix, Query)) in inSection()
121 StringRef Section = getSectionName(Kind); in isFunctionExcluded() local
[all …]
/llvm-project/bolt/include/bolt/Core/
H A DBinarySection.h1 //===- bolt/Core/BinarySection.h - Section in a binary file -----*- C++ -*-===//
49 std::string Name; // Section name
50 const SectionRef Section; // SectionRef for input binary sections. variable
88 uint64_t OutputAddress{0}; // Section address for the rewritten binary.
89 uint64_t OutputSize{0}; // Section size in the rewritten binary.
96 uint32_t Index{0}; // Section index in the output file.
112 static StringRef getName(SectionRef Section) { in getName()
113 return cantFail(Section.getName()); in getName()
115 static StringRef getContentsOrQuit(SectionRef Section) { in getContentsOrQuit()
116 if (Section in getContentsOrQuit()
111 getName(SectionRef Section) getName() argument
114 getContentsOrQuit(SectionRef Section) getContentsOrQuit() argument
147 BinarySection(BinaryContext & BC,const Twine & Name,const BinarySection & Section) BinarySection() argument
156 BinarySection(BinaryContext & BC,SectionRef Section) BinarySection() argument
[all...]
/llvm-project/llvm/lib/MC/
H A DConstantPools.cpp80 ConstantPool *AssemblerConstantPools::getConstantPool(MCSection *Section) { in getConstantPool() argument
81 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool()
89 AssemblerConstantPools::getOrCreateConstantPool(MCSection *Section) { in getOrCreateConstantPool() argument
90 return ConstantPools[Section]; in getOrCreateConstantPool()
93 static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, in emitConstantPool() argument
96 Streamer.switchSection(Section); in emitConstantPool()
104 MCSection *Section = CPI.first; in emitAll() local
107 emitConstantPool(Streamer, Section, CP); in emitAll()
112 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local
113 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection()
[all …]
/llvm-project/bolt/lib/Passes/
H A DReorderData.cpp136 void ReorderData::printOrder(BinaryContext &BC, const BinarySection &Section, in printOrder() argument
145 BC.outs() << "BOLT-INFO: Hot global symbols for " << Section.getName() in printOrder()
162 const BinarySection &Section) const { in baseOrder()
164 for (auto &Entry : BC.getBinaryDataForSection(Section)) { in baseOrder()
214 StringRef Section = KV.first; in assignMemData() local
216 BC.outs() << "BOLT-INFO: " << Section << " = " << Count in assignMemData()
218 if (JumpTableCounts.count(Section) != 0) { in assignMemData()
219 const uint64_t JTCount = JumpTableCounts[Section]; in assignMemData()
231 ReorderData::sortedByFunc(BinaryContext &BC, const BinarySection &Section, in sortedByFunc() argument
273 DataOrder Order = baseOrder(BC, Section); in sortedByFunc()
[all …]
/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp148 for (const object::SectionRef &Section : Obj.sections()) { in mapVirtualAddress() local
150 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
156 dbgs() << "Index: " << format_decimal(Section.getIndex(), 3) << ", " in mapVirtualAddress()
157 << "Address: " << hexValue(Section.getAddress()) << ", " in mapVirtualAddress()
158 << "Size: " << hexValue(Section.getSize()) << ", " in mapVirtualAddress()
160 dbgs() << "isCompressed: " << Section.isCompressed() << ", " in mapVirtualAddress()
161 << "isText: " << Section.isText() << ", " in mapVirtualAddress()
162 << "isData: " << Section.isData() << ", " in mapVirtualAddress()
163 << "isBSS: " << Section.isBSS() << ", " in mapVirtualAddress()
164 << "isVirtual: " << Section in mapVirtualAddress()
233 for (const object::SectionRef &Section : COFFObj.sections()) { mapVirtualAddress() local
351 const object::SectionRef Section = Iter->second; getSection() local
418 const object::SectionRef Section = (*SectionOrErr).second; createInstructions() local
862 const object::SectionRef Section = Entry.second; processLines() local
[all...]
/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
H A Ddiscard-locals.test32 - Name: .LLVM.Custom.Section
37 Section: .text
40 Section: .text
42 Section: .LLVM.Custom.Section
47 Section: .text
53 Section: .text
64 # CHECK-NEXT: Section: Undefined
73 # CHECK-NEXT: Section: .text
80 # CHECK-NEXT: Type: Section
82 # CHECK-NEXT: Section: .text
[all …]
/llvm-project/llvm/test/Object/
H A Dsize-trivial-macho.test34 m: Section (__TEXT, __text): 12
35 m: Section (__DATA, __data): 4
36 m: Section (__DATA, __bss): 4
37 m: Section (__LD, __compact_unwind): 32
38 m: Section (__TEXT, __eh_frame): 64
48 mAR: Section (__TEXT, __text): 6
49 mAR: Section (__LD, __compact_unwind): 32
50 mAR: Section (__TEXT, __eh_frame): 64
55 mAR: Section (__TEXT, __text): 0
56 mAR: Section (__DATA, __data): 4
[all …]
/llvm-project/llvm/test/tools/llvm-objcopy/MachO/
H A Dweaken-all.s12 # CHECK-NEXT: Type: Section (0xE)
13 # CHECK-NEXT: Section: __text (0x1)
23 # CHECK-NEXT: Type: Section (0xE)
24 # CHECK-NEXT: Section: __const (0x2)
33 # CHECK-NEXT: Type: Section (0xE)
34 # CHECK-NEXT: Section: __text (0x1)
42 # CHECK-NEXT: Type: Section (0xE)
43 # CHECK-NEXT: Section: __const (0x2)
51 # CHECK-NEXT: Type: Section (0xE)
52 # CHECK-NEXT: Section: __text (0x1)
[all …]

12345678910>>...73