Home
last modified time | relevance | path

Searched refs:SectionKind (Results 1 – 25 of 65) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCObjectFileInfo.cpp70 SectionKind::getReadOnly()); in initMachOMCObjectFileInfo()
95 SectionKind::getText()); in initMachOMCObjectFileInfo()
97 = Ctx->getMachOSection("__DATA", "__data", 0, SectionKind::getData()); in initMachOMCObjectFileInfo()
105 SectionKind::getData()); in initMachOMCObjectFileInfo()
109 SectionKind::getThreadBSS()); in initMachOMCObjectFileInfo()
115 SectionKind::getData()); in initMachOMCObjectFileInfo()
119 SectionKind::getData()); in initMachOMCObjectFileInfo()
124 SectionKind::getMergeable1ByteCString()); in initMachOMCObjectFileInfo()
127 SectionKind::getMergeable2ByteCString()); in initMachOMCObjectFileInfo()
131 SectionKind::getMergeableConst4()); in initMachOMCObjectFileInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DSectionKind.h22 class SectionKind {
181 static SectionKind get(Kind K) { in get()
182 SectionKind Res; in get()
188 static SectionKind getMetadata() { return get(Metadata); } in getMetadata()
189 static SectionKind getExclude() { return get(Exclude); } in getExclude()
190 static SectionKind getText() { return get(Text); } in getText()
191 static SectionKind getExecuteOnly() { return get(ExecuteOnly); } in getExecuteOnly()
192 static SectionKind getReadOnly() { return get(ReadOnly); } in getReadOnly()
193 static SectionKind getMergeable1ByteCString() { in getMergeable1ByteCString()
196 static SectionKind getMergeable2ByteCString() { in getMergeable2ByteCString()
[all …]
H A DMCSectionXCOFF.h40 SectionKind Kind;
46 XCOFF::SymbolType ST, SectionKind K, MCSymbolXCOFF *QualName, in MCSectionXCOFF()
76 MCSectionXCOFF(StringRef Name, SectionKind K, MCSymbolXCOFF *QualName, in MCSectionXCOFF()
133 SectionKind getKind() const { return Kind; } in getKind()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp200 SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalObject *GO, in getKindForGlobal()
207 return SectionKind::getText(); in getKindForGlobal()
211 return SectionKind::getText(); in getKindForGlobal()
222 return SectionKind::getThreadBSSLocal(); in getKindForGlobal()
224 return SectionKind::getThreadBSS(); in getKindForGlobal()
226 return SectionKind::getThreadData(); in getKindForGlobal()
231 return SectionKind::getCommon(); in getKindForGlobal()
237 return SectionKind::getBSSLocal(); in getKindForGlobal()
239 return SectionKind::getBSSExtern(); in getKindForGlobal()
240 return SectionKind::getBSS(); in getKindForGlobal()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLoweringObjectFileImpl.h59 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
63 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
66 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
128 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
131 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
134 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
171 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
174 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
200 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
218 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DOutputSections.h155 SectionDescriptor(DebugSectionKind SectionKind, LinkingGlobalData &GlobalData, in SectionDescriptor()
157 : SectionDescriptorBase(SectionKind, Format, Endianess), OS(Contents), in SectionDescriptor()
317 getSectionDescriptor(DebugSectionKind SectionKind) const { in getSectionDescriptor() argument
318 SectionsSetTy::const_iterator It = SectionDescriptors.find(SectionKind); in getSectionDescriptor()
322 formatv("Section {0} does not exist", getSectionName(SectionKind)) in getSectionDescriptor()
332 SectionDescriptor &getSectionDescriptor(DebugSectionKind SectionKind) { in getSectionDescriptor() argument
333 SectionsSetTy::iterator It = SectionDescriptors.find(SectionKind); in getSectionDescriptor()
337 formatv("Section {0} does not exist", getSectionName(SectionKind)) in getSectionDescriptor()
349 tryGetSectionDescriptor(DebugSectionKind SectionKind) const { in tryGetSectionDescriptor() argument
350 SectionsSetTy::const_iterator It = SectionDescriptors.find(SectionKind); in tryGetSectionDescriptor()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinker/Parallel/
H A DDWARFLinker.h94 SectionDescriptorBase(DebugSectionKind SectionKind, dwarf::FormParams Format, in SectionDescriptorBase()
96 : SectionKind(SectionKind), Format(Format), Endianess(Endianess) {} in SectionDescriptorBase()
101 DebugSectionKind getKind() { return SectionKind; } in getKind()
103 const StringLiteral &getName() const { return getSectionName(SectionKind); } in getName()
111 DebugSectionKind SectionKind = DebugSectionKind::NumberOfEnumEntries;
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DWasmAsmParser.cpp160 auto Kind = StringSwitch<std::optional<SectionKind>>(Name) in parseSectionDirective()
161 .StartsWith(".data", SectionKind::getData()) in parseSectionDirective()
162 .StartsWith(".tdata", SectionKind::getThreadData()) in parseSectionDirective()
163 .StartsWith(".tbss", SectionKind::getThreadBSS()) in parseSectionDirective()
164 .StartsWith(".rodata", SectionKind::getReadOnly()) in parseSectionDirective()
165 .StartsWith(".text", SectionKind::getText()) in parseSectionDirective()
166 .StartsWith(".custom_section", SectionKind::getMetadata()) in parseSectionDirective()
167 .StartsWith(".bss", SectionKind::getBSS()) in parseSectionDirective()
170 .StartsWith(".init_array", SectionKind::getData()) in parseSectionDirective()
171 .StartsWith(".debug_", SectionKind::getMetadata()) in parseSectionDirective()
[all …]
H A DELFAsmParser.cpp45 SectionKind Kind);
94 SectionKind::getData()); in ParseSectionDirectiveData()
99 ELF::SHF_ALLOC, SectionKind::getText()); in ParseSectionDirectiveText()
104 ELF::SHF_ALLOC, SectionKind::getBSS()); in ParseSectionDirectiveBSS()
109 SectionKind::getReadOnly()); in ParseSectionDirectiveRoData()
115 SectionKind::getThreadData()); in ParseSectionDirectiveTData()
121 SectionKind::getThreadBSS()); in ParseSectionDirectiveTBSS()
126 SectionKind::getData()); in ParseSectionDirectiveDataRel()
132 SectionKind::getReadOnlyWithRel()); in ParseSectionDirectiveDataRelRo()
137 SectionKind::getData()); in ParseSectionDirectiveEhFrame()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp462 static SectionKind getELFKindForNamedSection(StringRef Name, SectionKind K) { in getELFKindForNamedSection()
479 return SectionKind::getMetadata(); in getELFKindForNamedSection()
489 return SectionKind::getBSS(); in getELFKindForNamedSection()
494 return SectionKind::getThreadData(); in getELFKindForNamedSection()
499 return SectionKind::getThreadBSS(); in getELFKindForNamedSection()
509 static unsigned getELFSectionType(StringRef Name, SectionKind K) { in getELFSectionType()
536 static unsigned getELFSectionFlags(SectionKind K) { in getELFSectionFlags()
591 static unsigned getEntrySizeForKind(SectionKind Kind) { in getEntrySizeForKind()
617 static StringRef getSectionPrefixForGlobal(SectionKind Kind, bool IsLarge) { in getSectionPrefixForGlobal()
636 getELFSectionNameForGlobal(const GlobalObject *GO, SectionKind Kind, in getELFSectionNameForGlobal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinkerParallel/
H A DOutputSections.h
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp95 static bool isExecuteOnlyFunction(const GlobalObject *GO, SectionKind SK, in isExecuteOnlyFunction()
104 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in getExplicitSectionGlobal()
107 SK = SectionKind::getExecuteOnly(); in getExplicitSectionGlobal()
113 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in SelectSectionForGlobal()
116 SK = SectionKind::getExecuteOnly(); in SelectSectionForGlobal()
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetLoweringObjectFile.h40 class SectionKind; variable
99 SectionKind Kind, const Constant *C,
113 static SectionKind getKindForGlobal(const GlobalObject *GO,
119 MCSection *SectionForGlobal(const GlobalObject *GO, SectionKind Kind,
146 getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
289 SectionKind Kind,
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetObjectFile.h24 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind, in getSectionForConstant()
30 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, in getExplicitSectionGlobal()
35 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetObjectFile.cpp12 #include "llvm/MC/SectionKind.h"
21 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
30 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in getExplicitSectionGlobal()
34 SK = SectionKind::getMetadata(); in getExplicitSectionGlobal()
H A DAMDGPUTargetObjectFile.h24 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
26 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.h27 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
30 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
33 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
H A DXCoreTargetObjectFile.cpp65 static unsigned getXCoreSectionType(SectionKind K) { in getXCoreSectionType()
71 static unsigned getXCoreSectionFlags(SectionKind K, bool IsCPRel) { in getXCoreSectionFlags()
98 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
109 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
144 const DataLayout &DL, SectionKind Kind, const Constant *C, in getSectionForConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVTargetObjectFile.h28 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind, in getSectionForConstant()
33 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, in getExplicitSectionGlobal()
37 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, in SelectSectionForGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetObjectFile.h20 SectionKind Kind) const;
32 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
38 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
H A DLanaiTargetObjectFile.cpp66 SectionKind Kind) const { in isGlobalInSmallSection()
102 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
120 const DataLayout &DL, SectionKind Kind, const Constant *C, in getSectionForConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetObjectFile.h22 SectionKind Kind) const;
34 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
41 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.h22 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
26 SectionKind Kind,
49 SectionKind Kind,
H A DHexagonTargetObjectFile.cpp127 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
165 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in getExplicitSectionGlobal()
344 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in selectSmallSectionForGlobal()
401 Kind = SectionKind::getData(); in selectSmallSectionForGlobal()
454 SectionKind Kind = SectionKind::getText(); in selectSectionForLookupTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetObjectFile.cpp25 const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const { in SelectSectionForGlobal()
45 Kind = SectionKind::getReadOnlyWithRel(); in SelectSectionForGlobal()

123