Home
last modified time | relevance | path

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

12345678910>>...19

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp49 if (!Section || Section->getKind().isText() || in isDwarfSection()
50 Section->getKind().isWriteable()) in isDwarfSection()
52 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection()
53 Section == FI->getDwarfInfoSection() || in isDwarfSection()
55 Section == FI->getDwarfFrameSection() || in isDwarfSection()
56 Section == FI->getDwarfAddrSection() || in isDwarfSection()
57 Section == FI->getDwarfRangesSection() || in isDwarfSection()
59 Section == FI->getDwarfLocSection() || in isDwarfSection()
60 Section == FI->getDwarfStrSection() || in isDwarfSection()
61 Section == FI->getDwarfLineSection() || in isDwarfSection()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDebugLineSectionEmitter.h113 Section.emitOffset(0xBADDEF); in emitLineTablePrologue()
140 Section.emitIntVal(0, 1); in emitLineTablePrologueV2IncludeAndFileTable()
165 Section.emitIntVal(0, 1); in emitLineTablePrologueV2IncludeAndFileTable()
173 Section.emitIntVal(0, 1); in emitLineTablePrologueV5IncludeAndFileTable()
176 Section.emitIntVal(1, 1); in emitLineTablePrologueV5IncludeAndFileTable()
204 Section.emitIntVal(0, 1); in emitLineTablePrologueV5IncludeAndFileTable()
210 Section.emitIntVal( in emitLineTablePrologueV5IncludeAndFileTable()
250 Section.emitBinaryData( in emitLineTablePrologueV5IncludeAndFileTable()
279 Section.emitIntVal(P.LineBase, 1); in emitLineTableProloguePayload()
287 Section.emitIntVal(Length, 1); in emitLineTableProloguePayload()
[all …]
H A DOutputSections.cpp304 SectionDescriptor &Section, in applyPatches() argument
308 Section.ListDebugStrPatch.forEach([&](DebugStrPatch &Patch) { in applyPatches()
371 Section.ListDebugRangePatch.forEach([&](DebugRangePatch &Patch) { in applyPatches()
387 Section.ListDebugLocPatch.forEach([&](DebugLocPatch &Patch) { in applyPatches()
396 Section.ListDebugDieRefPatch.forEach([&](DebugDieRefPatch &Patch) { in applyPatches()
410 Section.apply(Patch.PatchOffset, FinalForm, FinalOffset); in applyPatches()
413 Section.ListDebugULEB128DieRefPatch.forEach( in applyPatches()
416 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_udata, in applyPatches()
430 Section.apply(Patch.PatchOffset, dwarf::DW_FORM_ref_addr, in applyPatches()
434 Section.ListDebugType2TypeDieRefPatch.forEach( in applyPatches()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp25 Section::~Section() = default;
45 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument
52 commonSectionMapping(IO, Section); in sectionMapping()
64 commonSectionMapping(IO, Section); in sectionMapping()
72 commonSectionMapping(IO, Section); in sectionMapping()
82 commonSectionMapping(IO, Section); in sectionMapping()
90 commonSectionMapping(IO, Section); in sectionMapping()
96 commonSectionMapping(IO, Section); in sectionMapping()
102 commonSectionMapping(IO, Section); in sectionMapping()
167 IO &IO, std::unique_ptr<WasmYAML::Section> &Section) { in mapping() argument
[all …]
H A DWasmEmitter.cpp164 writeStringRef(Section.Name, OS); in writeSectionContent()
175 if (Section.Needed.size()) { in writeSectionContent()
187 writeStringRef(Section.Name, OS); in writeSectionContent()
193 if (Section.SymbolTable.size()) { in writeSectionContent()
231 if (Section.SegmentInfos.size()) { in writeSectionContent()
254 if (Section.Comdats.size()) { in writeSectionContent()
272 writeStringRef(Section.Name, OS); in writeSectionContent()
286 if (Section.GlobalNames.size()) { in writeSectionContent()
316 writeStringRef(Section.Name, OS); in writeSectionContent()
317 int Fields = int(!Section.Languages.empty()) + int(!Section.Tools.empty()) + in writeSectionContent()
[all …]
H A DELFEmitter.cpp792 ELFYAML::Section *Sec = cast<ELFYAML::Section>(D.get()); in initSectionHeaders()
957 if (Sym.Section) in toELFSymbols()
1158 const ELFYAML::Section *S = cast<ELFYAML::Section>(C); in getPhdrFragments()
1257 if (Section.Info) in writeSectionContent()
1283 const bool IsDynamic = Section.Link && (*Section.Link == ".dynsym"); in writeSectionContent()
1404 if (Section.Entries->size() != Section.PGOAnalyses->size()) in writeSectionContent()
1499 if (!Section.Libs) in writeSectionContent()
1557 Section.NChain.value_or(llvm::yaml::Hex64(Section.Chain->size())), in writeSectionContent()
1573 if (Section.Info) in writeSectionContent()
1618 if (Section.Info) in writeSectionContent()
[all …]
H A DELFYAML.cpp1341 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument
1358 (!Section.ShOffset && !Section.ShSize && !Section.ShName && in commonSectionMapping()
1359 !Section.ShFlags && !Section.ShType && !Section.ShAddrAlign)); in commonSectionMapping()
1369 commonSectionMapping(IO, Section); in sectionMapping()
1374 commonSectionMapping(IO, Section); in sectionMapping()
1380 if (Section.ContentBuf) { in sectionMapping()
1381 if (Section.Content) in sectionMapping()
1383 Section.Content = yaml::BinaryRef(*Section.ContentBuf); in sectionMapping()
1408 assert(!IO.outputting() || (!Section.NBucket && !Section.NChain)); in sectionMapping()
1555 if (auto *S = dyn_cast<ELFYAML::Section>(Section.get())) in mapping()
[all …]
H A DMachOYAML.cpp331 MachOYAML::Section &Section) { in mapping() argument
334 IO.mapRequired("addr", Section.addr); in mapping()
335 IO.mapRequired("size", Section.size); in mapping()
337 IO.mapRequired("align", Section.align); in mapping()
340 IO.mapRequired("flags", Section.flags); in mapping()
350 MachOYAML::Section &Section) { in validate() argument
351 if (Section.content && Section.size < Section.content->binary_size()) in validate()
500 IO.mapRequired("addr", Section.addr); in mapping()
501 IO.mapRequired("size", Section.size); in mapping()
515 IO.mapRequired("addr", Section.addr); in mapping()
[all …]
/freebsd-14.2/contrib/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()
54 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress()
59 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength()
67 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_code); in hasCode()
79 return PrivateGetDIAValue(Section, in hasUninitializedData()
100 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_share); in isShared()
108 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_read); in isReadable()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugSubsectionVisitor.cpp56 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
62 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
67 DebugSymbolsSubsectionRef Section; in visitDebugSubsection() local
68 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
70 return V.visitSymbols(Section, State); in visitDebugSubsection()
73 DebugStringTableSubsectionRef Section; in visitDebugSubsection() local
74 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
79 DebugFrameDataSubsectionRef Section; in visitDebugSubsection() local
80 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
82 return V.visitFrameData(Section, State); in visitDebugSubsection()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local
44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local
78 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
82 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
86 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
90 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
94 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS32Relocation()
269 Section, Offset, Value, Type, Addend, SymOffset, SectionID); in resolveMIPSN32Relocation()
307 uint8_t *TargetPtr = Section.getAddressWithOffset(Offset); in resolveMIPSO32Relocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h186 struct Section { struct
188 virtual ~Section();
195 struct CustomSection : Section { argument
287 struct TypeSection : Section {
317 struct TableSection : Section {
337 struct TagSection : Section {
367 struct StartSection : Section {
377 struct ElemSection : Section {
387 struct CodeSection : Section {
397 struct DataSection : Section {
[all …]
H A DELFYAML.h239 struct Section : public Chunk { struct
364 struct DynamicSection : Section {
389 struct NoBitsSection : Section {
395 struct NoteSection : Section {
407 struct HashSection : Section {
556 struct SymverSection : Section {
576 struct VerdefSection : Section {
589 struct GroupSection : Section {
626 struct RelrSection : Section {
674 struct MipsABIFlags : Section {
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp437 ExportSection Section; in NormalizedTBD() local
485 llvm::sort(Section.Symbols); in NormalizedTBD()
486 llvm::sort(Section.Classes); in NormalizedTBD()
487 llvm::sort(Section.ClassEHs); in NormalizedTBD()
488 llvm::sort(Section.IVars); in NormalizedTBD()
490 llvm::sort(Section.TLVSymbols); in NormalizedTBD()
504 UndefinedSection Section; in NormalizedTBD() local
542 llvm::sort(Section.Symbols); in NormalizedTBD()
543 llvm::sort(Section.Classes); in NormalizedTBD()
544 llvm::sort(Section.ClassEHs); in NormalizedTBD()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DConstantPools.cpp80 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool()
89 return ConstantPools[Section]; in getOrCreateConstantPool()
95 Streamer.switchSection(Section); in emitConstantPool()
103 MCSection *Section = CPI.first; in emitAll() local
106 emitConstantPool(Streamer, Section, CP); in emitAll()
111 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local
112 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection()
113 emitConstantPool(Streamer, Section, *CP); in emitForCurrentSection()
117 MCSection *Section = Streamer.getCurrentSectionOnly(); in clearCacheForCurrentSection() local
118 if (ConstantPool *CP = getConstantPool(Section)) in clearCacheForCurrentSection()
[all …]
H A DWasmObjectWriter.cpp63 MCSectionWasm *Section; member
75 MCSection *Section; member
124 MCSectionWasm *Section; member
130 : Name(Name), Section(Section) {} in WasmCustomSection()
846 endSection(Section); in writeTypeSection()
892 endSection(Section); in writeImportSection()
906 endSection(Section); in writeFunctionSection()
922 endSection(Section); in writeTagSection()
963 endSection(Section); in writeGlobalSection()
981 endSection(Section); in writeTableSection()
[all …]
H A DWinCOFFObjectWriter.cpp329 Section->Symbol = Symbol; in defineSection()
330 Symbol->Section = Section; in defineSection()
339 COMDATSymbol->Section = Section; in defineSection()
364 Label->Section = Section; in defineSection()
409 if (Sym->Section && Sym->Section != Sec) in DefineSymbol()
416 Sym->Section = nullptr; in DefineSymbol()
443 Sym->Section = Sec; in DefineSymbol()
748 Section.Number = I; in assignSectionNumbers()
759 Assign(*Section); in assignSectionNumbers()
762 Assign(*Section); in assignSectionNumbers()
[all …]
/freebsd-14.2/contrib/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()
113 if (SCL->inSection(Section, Prefix, Query)) in inSection()
121 StringRef Section = getSectionName(Kind); in isFunctionExcluded() local
125 if (SCL->inSection(Section, "!fun", FunctionName)) in isFunctionExcluded()
127 if (SCL->inSection(Section, "fun", FunctionName)) in isFunctionExcluded()
141 StringRef Section = getSectionName(Kind); in isFileExcluded() local
145 if (SCL->inSection(Section, "!src", FileName)) in isFileExcluded()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp339 if (Section.getName() == ".got") { in resolveX86_64Relocation()
1175 resolveRelocation(Section, Offset, in resolveAArch64Branch()
1184 Section.getAddressWithOffset(Section.getStubOffset())); in resolveAArch64Branch()
1209 resolveRelocation(Section, Offset, in resolveAArch64Branch()
1343 Section, Offset, in processRelocationRef()
1352 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef()
1408 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef()
1503 Section.getAddressWithOffset(Section.getStubOffset()), AbiVariant); in processRelocationRef()
1611 Section.getAddressWithOffset(Section.getStubOffset()), in processRelocationRef()
1962 Section.getSize()) { in processX86_64GOTTPOFFRelocation()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp22 using SectionPred = std::function<bool(const Section &Sec)>;
24 static bool isDebugSection(const Section &Sec) { in isDebugSection()
28 static bool isLinkerSection(const Section &Sec) { in isLinkerSection()
36 static bool isCommentSection(const Section &Sec) { in isCommentSection()
42 for (const Section &Sec : Obj.Sections) { in dumpSectionToFile()
65 RemovePred = [&Config](const Section &Sec) { in removeSections()
71 RemovePred = [RemovePred](const Section &Sec) { in removeSections()
77 RemovePred = [RemovePred](const Section &Sec) { in removeSections()
84 RemovePred = [&Config](const Section &Sec) { in removeSections()
92 RemovePred = [&Config](const Section &Sec) { in removeSections()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.cpp56 for (const Section &Sec : Sections) { in markSymbols()
68 void Object::addSections(ArrayRef<Section> NewSections) { in addSections()
69 for (Section S : NewSections) { in addSections()
77 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections()
79 for (Section &S : Sections) { in updateSections()
85 const Section *Object::findSection(ssize_t UniqueId) const { in findSection()
89 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections()
91 auto RemoveAssociated = [&AssociatedSections](const Section &Sec) { in removeSections()
96 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
120 void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) { in truncateSections()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBSymbolData.cpp26 if (auto Section = RawSymbol->getAddressSection()) in getLineNumbers() local
28 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers()
48 while (auto Section = SecContribs->getNext()) { in getCompilandId() local
49 if (Section->getAddressSection() == DataSection && in getCompilandId()
50 Section->getAddressOffset() <= DataOffset && in getCompilandId()
51 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId()
52 return Section->getCompilandId(); in getCompilandId()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DWin64EHDumper.cpp167 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol()
229 for (const auto &Section : COFF.sections()) { in getSectionContaining() local
230 uint64_t Address = Section.getAddress(); in getSectionContaining()
231 uint64_t Size = Section.getSize(); in getSectionContaining()
234 return COFF.getCOFFSection(Section); in getSectionContaining()
348 formatSymbol(Ctx, Section, LSDAOffset, in printUnwindInfo()
359 const coff_section *Section, in printRuntimeFunction() argument
363 printRuntimeFunctionEntry(Ctx, Section, SectionOffset, RF); in printRuntimeFunction()
393 for (const auto &Section : Ctx.COFF.sections()) { in printData() local
395 if (Expected<StringRef> NameOrErr = Section.getName()) in printData()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Core/
H A DSection.cpp28 const char *Section::GetTypeAsCString() const { in GetTypeAsCString()
158 Section::Section(const ModuleSP &module_sp, ObjectFile *obj_file, in Section() function in Section
173 Section::Section(const lldb::SectionSP &parent_section_sp, in Section() function in Section
191 Section::~Section() = default;
193 addr_t Section::GetFileAddress() const { in GetFileAddress()
218 lldb::addr_t Section::GetOffset() const { in GetOffset()
333 bool Section::IsDescendant(const Section *section) { in IsDescendant()
358 uint32_t Section::GetPermissions() const { in GetPermissions()
389 bool Section::ContainsOnlyDebugInfo() const { in ContainsOnlyDebugInfo()
560 Section *child_section = sect_iter->get(); in FindSectionByName()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp149 if (!Section.isText() || Section.isVirtual() || !Section.getSize()) in mapVirtualAddress()
154 Sections.emplace(Section.getIndex(), Section); in mapVirtualAddress()
155 addSectionAddress(Section); in mapVirtualAddress()
165 DotTextSectionIndex = Section.getIndex(); in mapVirtualAddress()
205 if (!Section.isText() || Section.isVirtual() || !Section.getSize()) in mapVirtualAddress()
214 Sections.emplace(Section.getIndex() + 1, Section); in mapVirtualAddress()
215 addSectionAddress(Section); in mapVirtualAddress()
218 mapRangeAddress(COFFObj, Section, IsComdat); in mapVirtualAddress()
323 return std::make_pair(Section.getAddress(), Section); in getSection()
417 << hexValue((uint64_t)Section.getAddress() + Section.getSize(), 10) in createInstructions()
[all …]

12345678910>>...19