Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/llvm/lib/MC/
H A DMCObjectFileInfo.cpp62 SectionKind::getReadOnly()); in initMachOMCObjectFileInfo()
114 SectionKind::getData()); in initMachOMCObjectFileInfo()
563 SectionKind::getBSS()); in initCOFFMCObjectFileInfo()
569 SectionKind::getText()); in initCOFFMCObjectFileInfo()
573 SectionKind::getData()); in initCOFFMCObjectFileInfo()
576 SectionKind::getReadOnly()); in initCOFFMCObjectFileInfo()
604 SectionKind::getMetadata()); in initCOFFMCObjectFileInfo()
630 SectionKind::getMetadata()); in initCOFFMCObjectFileInfo()
788 SectionKind::getData()); in initCOFFMCObjectFileInfo()
792 SectionKind::getData()); in initCOFFMCObjectFileInfo()
[all …]
H A DMCContext.cpp472 unsigned Flags, SectionKind K, in createELFSectionImpl()
517 I->getKey(), Type, Flags, SectionKind::getReadOnly(), EntrySize, Group, in createELFRelSection()
562 SectionKind Kind; in getELFSection()
564 Kind = SectionKind::getExecuteOnly(); in getELFSection()
566 Kind = SectionKind::getText(); in getELFSection()
568 Kind = SectionKind::getReadOnly(); in getELFSection()
636 SectionKind Kind, in getCOFFSection()
668 SectionKind Kind, in getCOFFSection()
748 StringRef Section, SectionKind Kind, in getXCOFFSection()
814 MCSectionSPIRV(SectionKind::getText(), Begin); in getSPIRVSection()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DSectionKind.h22 class SectionKind {
181 static SectionKind get(Kind K) { in get()
182 SectionKind Res; in get()
189 static SectionKind getExclude() { return get(Exclude); } in getExclude()
190 static SectionKind getText() { return get(Text); } in getText()
193 static SectionKind getMergeable1ByteCString() { in getMergeable1ByteCString()
196 static SectionKind getMergeable2ByteCString() { in getMergeable2ByteCString()
199 static SectionKind getMergeable4ByteCString() { in getMergeable4ByteCString()
209 static SectionKind getBSS() { return get(BSS); } in getBSS()
212 static SectionKind getCommon() { return get(Common); } in getCommon()
[all …]
H A DMCContext.h376 unsigned Flags, SectionKind K,
554 unsigned Reserved2, SectionKind K,
622 MCSectionGOFF *getGOFFSection(StringRef Section, SectionKind Kind,
626 SectionKind Kind, StringRef COMDATSymName,
632 SectionKind Kind,
645 MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K,
650 MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K, in getWasmSection()
655 MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K, in getWasmSection()
661 MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K,
665 MCSectionWasm *getWasmSection(const Twine &Section, SectionKind K,
[all …]
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp207 return SectionKind::getText(); in getKindForGlobal()
211 return SectionKind::getText(); 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()
248 return SectionKind::getExclude(); in getKindForGlobal()
262 return SectionKind::getReadOnly(); in getKindForGlobal()
[all …]
/llvm-project-15.0.7/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,
172 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
195 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
213 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
257 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
[all …]
/llvm-project-15.0.7/llvm/lib/MC/MCParser/
H A DWasmAsmParser.cpp155 auto Kind = StringSwitch<Optional<SectionKind>>(Name) in parseSectionDirective()
156 .StartsWith(".data", SectionKind::getData()) in parseSectionDirective()
157 .StartsWith(".tdata", SectionKind::getThreadData()) in parseSectionDirective()
158 .StartsWith(".tbss", SectionKind::getThreadBSS()) in parseSectionDirective()
159 .StartsWith(".rodata", SectionKind::getReadOnly()) in parseSectionDirective()
160 .StartsWith(".text", SectionKind::getText()) in parseSectionDirective()
161 .StartsWith(".custom_section", SectionKind::getMetadata()) in parseSectionDirective()
162 .StartsWith(".bss", SectionKind::getBSS()) in parseSectionDirective()
165 .StartsWith(".init_array", SectionKind::getData()) in parseSectionDirective()
166 .StartsWith(".debug_", SectionKind::getMetadata()) in parseSectionDirective()
[all …]
H A DCOFFMasmParser.cpp37 SectionKind Kind);
188 SectionKind::getText()); in ParseSectionDirectiveCode()
196 SectionKind::getData()); in ParseSectionDirectiveInitializedData()
204 SectionKind::getBSS()); in ParseSectionDirectiveUninitializedData()
216 static SectionKind computeSectionKind(unsigned Flags) { in computeSectionKind()
218 return SectionKind::getText(); in computeSectionKind()
221 return SectionKind::getReadOnly(); in computeSectionKind()
222 return SectionKind::getData(); in computeSectionKind()
234 SectionKind Kind, in ParseSectionSwitch()
268 SectionKind Kind = computeSectionKind(Flags); in ParseDirectiveSegment()
[all …]
H A DCOFFAsmParser.cpp41 SectionKind Kind);
98 SectionKind::getText()); in ParseSectionDirectiveText()
105 SectionKind::getData()); in ParseSectionDirectiveData()
113 SectionKind::getBSS()); in ParseSectionDirectiveBSS()
150 static SectionKind computeSectionKind(unsigned Flags) { in computeSectionKind()
152 return SectionKind::getText(); in computeSectionKind()
155 return SectionKind::getReadOnly(); in computeSectionKind()
156 return SectionKind::getData(); in computeSectionKind()
309 SectionKind Kind) { in ParseSectionSwitch()
315 SectionKind Kind, in ParseSectionSwitch()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp437 static SectionKind getELFKindForNamedSection(StringRef Name, SectionKind K) { in getELFKindForNamedSection()
450 return SectionKind::getMetadata(); in getELFKindForNamedSection()
463 return SectionKind::getBSS(); in getELFKindForNamedSection()
469 return SectionKind::getThreadData(); in getELFKindForNamedSection()
475 return SectionKind::getThreadBSS(); in getELFKindForNamedSection()
909 SectionKind Kind = SectionKind::getText(); in getUniqueSectionForFunction()
1754 SectionKind Kind = SectionKind::getReadOnly(); in getSectionForJumpTable()
1869 SectionKind::getData()); in Initialize()
1873 SectionKind::getData()); in Initialize()
1899 SectionKind::getReadOnly()); in getCOFFStaticStructorSection()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp84 static bool isExecuteOnlyFunction(const GlobalObject *GO, SectionKind SK, in isExecuteOnlyFunction()
93 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in getExplicitSectionGlobal()
96 SK = SectionKind::getExecuteOnly(); in getExplicitSectionGlobal()
102 const GlobalObject *GO, SectionKind SK, const TargetMachine &TM) const { in SelectSectionForGlobal()
105 SK = SectionKind::getExecuteOnly(); in SelectSectionForGlobal()
H A DARMTargetObjectFile.h39 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind,
42 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetObjectFile.cpp21 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,
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXTargetObjectFile.h28 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind, in getSectionForConstant()
34 MCSection *getExplicitSectionGlobal(const GlobalObject *GO, SectionKind Kind, in getExplicitSectionGlobal()
39 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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,
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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,
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.h22 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
26 SectionKind Kind,
49 SectionKind Kind,
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVTargetObjectFile.h30 MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind,
36 MCSection *getSectionForConstant(const DataLayout &DL, SectionKind Kind,
/llvm-project-15.0.7/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