LLVM
8.0.1
|
SectionKind - This is a simple POD value that classifies the properties of a section. More...
#include "llvm/MC/SectionKind.h"
Public Member Functions | |
bool | isMetadata () const |
bool | isText () const |
bool | isExecuteOnly () const |
bool | isReadOnly () const |
bool | isMergeableCString () const |
bool | isMergeable1ByteCString () const |
bool | isMergeable2ByteCString () const |
bool | isMergeable4ByteCString () const |
bool | isMergeableConst () const |
bool | isMergeableConst4 () const |
bool | isMergeableConst8 () const |
bool | isMergeableConst16 () const |
bool | isMergeableConst32 () const |
bool | isWriteable () const |
bool | isThreadLocal () const |
bool | isThreadBSS () const |
bool | isThreadData () const |
bool | isGlobalWriteableData () const |
bool | isBSS () const |
bool | isBSSLocal () const |
bool | isBSSExtern () const |
bool | isCommon () const |
bool | isData () const |
bool | isReadOnlyWithRel () const |
Static Public Member Functions | |
static SectionKind | getMetadata () |
static SectionKind | getText () |
static SectionKind | getExecuteOnly () |
static SectionKind | getReadOnly () |
static SectionKind | getMergeable1ByteCString () |
static SectionKind | getMergeable2ByteCString () |
static SectionKind | getMergeable4ByteCString () |
static SectionKind | getMergeableConst4 () |
static SectionKind | getMergeableConst8 () |
static SectionKind | getMergeableConst16 () |
static SectionKind | getMergeableConst32 () |
static SectionKind | getThreadBSS () |
static SectionKind | getThreadData () |
static SectionKind | getBSS () |
static SectionKind | getBSSLocal () |
static SectionKind | getBSSExtern () |
static SectionKind | getCommon () |
static SectionKind | getData () |
static SectionKind | getReadOnlyWithRel () |
SectionKind - This is a simple POD value that classifies the properties of a section.
A section is classified into the deepest possible classification, and then the target maps them onto their sections based on what capabilities they have.
The comments below describe these as if they were an inheritance hierarchy in order to explain the predicates below.
Definition at line 23 of file SectionKind.h.
|
inlinestatic |
Definition at line 198 of file SectionKind.h.
Referenced by getELFKindForNamedSection(), llvm::TargetLoweringObjectFile::getKindForGlobal(), and useCompactUnwind().
|
inlinestatic |
Definition at line 200 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().
|
inlinestatic |
Definition at line 199 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().
|
inlinestatic |
Definition at line 201 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().
|
inlinestatic |
Definition at line 202 of file SectionKind.h.
Referenced by computeSectionKind(), llvm::TargetLoweringObjectFileMachO::emitModuleMetadata(), GetAEABIUnwindPersonalityName(), getCOFFStaticStructorSection(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::TargetLoweringObjectFileWasm::getStaticCtorSection(), getWasmKindForNamedSection(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileWasm::InitializeWasm(), llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection(), and useCompactUnwind().
|
inlinestatic |
Definition at line 181 of file SectionKind.h.
Referenced by llvm::MCContext::getELFSection(), llvm::ARMElfTargetObjectFile::getExplicitSectionGlobal(), and llvm::ARMElfTargetObjectFile::SelectSectionForGlobal().
|
inlinestatic |
Definition at line 183 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), and useCompactUnwind().
|
inlinestatic |
Definition at line 186 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), and useCompactUnwind().
|
inlinestatic |
Definition at line 189 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().
|
inlinestatic |
Definition at line 194 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MachineConstantPoolEntry::getSectionKind(), and useCompactUnwind().
|
inlinestatic |
Definition at line 195 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), and llvm::MachineConstantPoolEntry::getSectionKind().
|
inlinestatic |
Definition at line 192 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MachineConstantPoolEntry::getSectionKind(), and useCompactUnwind().
|
inlinestatic |
Definition at line 193 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MachineConstantPoolEntry::getSectionKind(), and useCompactUnwind().
|
inlinestatic |
Definition at line 179 of file SectionKind.h.
Referenced by llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), emitNonLazyStubs(), encodeBase64StringEntry(), getELFKindForNamedSection(), llvm::AMDGPUTargetObjectFile::getExplicitSectionGlobal(), and useCompactUnwind().
|
inlinestatic |
Definition at line 182 of file SectionKind.h.
Referenced by computeSectionKind(), llvm::MCContext::createELFGroupSection(), llvm::MCContext::createELFRelSection(), llvm::AsmPrinter::doFinalization(), llvm::TargetLoweringObjectFileCOFF::emitModuleMetadata(), getCOFFStaticStructorSection(), llvm::MCContext::getELFSection(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::TargetLoweringObjectFileELF::getSectionForJumpTable(), llvm::TargetLoweringObjectFile::getSectionForJumpTable(), llvm::TargetLoweringObjectFileCOFF::getSectionForJumpTable(), llvm::MachineConstantPoolEntry::getSectionKind(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and useCompactUnwind().
|
inlinestatic |
Definition at line 203 of file SectionKind.h.
Referenced by llvm::AsmPrinter::emitXRayTable(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MachineConstantPoolEntry::getSectionKind(), and useCompactUnwind().
|
inlinestatic |
Definition at line 180 of file SectionKind.h.
Referenced by computeSectionKind(), llvm::MCContext::getELFSection(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::HexagonTargetObjectFile::getLutUsedFunction(), getWasmKindForNamedSection(), and useCompactUnwind().
|
inlinestatic |
Definition at line 196 of file SectionKind.h.
Referenced by getELFKindForNamedSection(), llvm::TargetLoweringObjectFile::getKindForGlobal(), and useCompactUnwind().
|
inlinestatic |
Definition at line 197 of file SectionKind.h.
Referenced by getELFKindForNamedSection(), and llvm::TargetLoweringObjectFile::getKindForGlobal().
|
inline |
Definition at line 160 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getELFSectionType(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), getSectionPrefixForGlobal(), getXCoreSectionType(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isGlobalWriteableData(), llvm::TargetLoweringObjectFile::SectionForGlobal(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::LanaiTargetObjectFile::SelectSectionForGlobal(), llvm::MipsTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
inline |
Definition at line 162 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 161 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
inline |
Definition at line 164 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isGlobalWriteableData(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileWasm::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
inline |
Definition at line 166 of file SectionKind.h.
Referenced by llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), getSectionPrefixForGlobal(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), isGlobalWriteableData(), llvm::TargetLoweringObjectFile::SectionForGlobal(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::LanaiTargetObjectFile::SelectSectionForGlobal(), llvm::MipsTargetObjectFile::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
inline |
Definition at line 121 of file SectionKind.h.
Referenced by getELFSectionFlags(), and selectELFSectionForGlobal().
|
inline |
Definition at line 156 of file SectionKind.h.
References isBSS(), isCommon(), isData(), and isReadOnlyWithRel().
Referenced by llvm::MCSectionWasm::isWasmData(), and isWriteable().
|
inline |
Definition at line 132 of file SectionKind.h.
Referenced by getEntrySizeForKind(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 133 of file SectionKind.h.
Referenced by getEntrySizeForKind(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 134 of file SectionKind.h.
Referenced by getEntrySizeForKind().
|
inline |
Definition at line 136 of file SectionKind.h.
Referenced by getELFSectionFlags(), getEntrySizeForKind(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), isReadOnly(), selectELFSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
inline |
Definition at line 142 of file SectionKind.h.
Referenced by getEntrySizeForKind(), llvm::XCoreTargetObjectFile::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), getXCoreSectionFlags(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 143 of file SectionKind.h.
Referenced by getEntrySizeForKind(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), and llvm::TargetLoweringObjectFileCOFF::getSectionForConstant().
|
inline |
Definition at line 140 of file SectionKind.h.
Referenced by getEntrySizeForKind(), llvm::XCoreTargetObjectFile::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), getXCoreSectionFlags(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 141 of file SectionKind.h.
Referenced by getEntrySizeForKind(), llvm::XCoreTargetObjectFile::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), getXCoreSectionFlags(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 128 of file SectionKind.h.
Referenced by getELFSectionFlags(), getEntrySizeForKind(), getXCoreSectionFlags(), isReadOnly(), and selectELFSectionForGlobal().
|
inline |
Definition at line 117 of file SectionKind.h.
Referenced by getCOFFSectionFlags(), getELFSectionFlags(), and getXCoreSectionFlags().
|
inline |
Definition at line 123 of file SectionKind.h.
References isMergeableConst(), and isMergeableCString().
Referenced by getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), llvm::XCoreTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), llvm::XCoreTargetObjectFile::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFile::getSectionForConstant(), getSectionPrefixForGlobal(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), llvm::MCSectionWasm::isWasmData(), llvm::TargetLoweringObjectFile::SectionForGlobal(), llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::MipsTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
inline |
Definition at line 168 of file SectionKind.h.
Referenced by getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), llvm::XCoreTargetObjectFile::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), getSectionPrefixForGlobal(), isGlobalWriteableData(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
inline |
Definition at line 119 of file SectionKind.h.
Referenced by getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getELFSectionFlags(), getSectionPrefixForGlobal(), getWasmKindForNamedSection(), getXCoreSectionFlags(), isDwarfSection(), isExecuteOnlyFunction(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileWasm::SelectSectionForGlobal(), and llvm::MCSectionCOFF::UseCodeAlign().
|
inline |
Definition at line 153 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), getELFSectionType(), getSectionPrefixForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 154 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), getSectionPrefixForGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
inline |
Definition at line 149 of file SectionKind.h.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getELFSectionFlags(), isWriteable(), llvm::XCoreTargetObjectFile::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
inline |
Definition at line 145 of file SectionKind.h.
References isGlobalWriteableData(), and isThreadLocal().
Referenced by getCOFFSectionFlags(), getELFSectionFlags(), getXCoreSectionFlags(), and isDwarfSection().