LLVM 22.0.0git
llvm::SectionKind Class Reference

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 isExclude () 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 isThreadBSSLocal () 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 getExclude ()
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 getThreadBSSLocal ()
static SectionKind getBSS ()
static SectionKind getBSSLocal ()
static SectionKind getBSSExtern ()
static SectionKind getCommon ()
static SectionKind getData ()
static SectionKind getReadOnlyWithRel ()

Detailed Description

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 22 of file SectionKind.h.

Member Function Documentation

◆ getBSS()

SectionKind llvm::SectionKind::getBSS ( )
inlinestatic

◆ getBSSExtern()

SectionKind llvm::SectionKind::getBSSExtern ( )
inlinestatic

Definition at line 211 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getBSSLocal()

SectionKind llvm::SectionKind::getBSSLocal ( )
inlinestatic

Definition at line 210 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getCommon()

SectionKind llvm::SectionKind::getCommon ( )
inlinestatic

Definition at line 212 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getData()

◆ getExclude()

SectionKind llvm::SectionKind::getExclude ( )
inlinestatic

Definition at line 189 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getExecuteOnly()

◆ getMergeable1ByteCString()

SectionKind llvm::SectionKind::getMergeable1ByteCString ( )
inlinestatic

Definition at line 193 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getMergeable2ByteCString()

SectionKind llvm::SectionKind::getMergeable2ByteCString ( )
inlinestatic

Definition at line 196 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getMergeable4ByteCString()

SectionKind llvm::SectionKind::getMergeable4ByteCString ( )
inlinestatic

Definition at line 199 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getMergeableConst16()

SectionKind llvm::SectionKind::getMergeableConst16 ( )
inlinestatic

◆ getMergeableConst32()

SectionKind llvm::SectionKind::getMergeableConst32 ( )
inlinestatic

◆ getMergeableConst4()

SectionKind llvm::SectionKind::getMergeableConst4 ( )
inlinestatic

◆ getMergeableConst8()

SectionKind llvm::SectionKind::getMergeableConst8 ( )
inlinestatic

◆ getMetadata()

◆ getReadOnly()

◆ getReadOnlyWithRel()

SectionKind llvm::SectionKind::getReadOnlyWithRel ( )
inlinestatic

◆ getText()

◆ getThreadBSS()

SectionKind llvm::SectionKind::getThreadBSS ( )
inlinestatic

◆ getThreadBSSLocal()

SectionKind llvm::SectionKind::getThreadBSSLocal ( )
inlinestatic

Definition at line 208 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

◆ getThreadData()

SectionKind llvm::SectionKind::getThreadData ( )
inlinestatic

◆ isBSS()

bool llvm::SectionKind::isBSS ( ) const
inline

Definition at line 169 of file SectionKind.h.

Referenced by llvm::AsmPrinter::emitGlobalVariable(), and isGlobalWriteableData().

◆ isBSSExtern()

bool llvm::SectionKind::isBSSExtern ( ) const
inline

Definition at line 171 of file SectionKind.h.

◆ isBSSLocal()

bool llvm::SectionKind::isBSSLocal ( ) const
inline

◆ isCommon()

bool llvm::SectionKind::isCommon ( ) const
inline

Definition at line 173 of file SectionKind.h.

Referenced by llvm::AsmPrinter::emitGlobalVariable(), and isGlobalWriteableData().

◆ isData()

bool llvm::SectionKind::isData ( ) const
inline

Definition at line 175 of file SectionKind.h.

Referenced by isGlobalWriteableData().

◆ isExclude()

bool llvm::SectionKind::isExclude ( ) const
inline

Definition at line 125 of file SectionKind.h.

◆ isExecuteOnly()

bool llvm::SectionKind::isExecuteOnly ( ) const
inline

Definition at line 129 of file SectionKind.h.

◆ isGlobalWriteableData()

bool llvm::SectionKind::isGlobalWriteableData ( ) const
inline

Definition at line 165 of file SectionKind.h.

References isBSS(), isCommon(), isData(), and isReadOnlyWithRel().

Referenced by isWriteable().

◆ isMergeable1ByteCString()

bool llvm::SectionKind::isMergeable1ByteCString ( ) const
inline

Definition at line 140 of file SectionKind.h.

◆ isMergeable2ByteCString()

bool llvm::SectionKind::isMergeable2ByteCString ( ) const
inline

Definition at line 141 of file SectionKind.h.

◆ isMergeable4ByteCString()

bool llvm::SectionKind::isMergeable4ByteCString ( ) const
inline

Definition at line 142 of file SectionKind.h.

◆ isMergeableConst()

bool llvm::SectionKind::isMergeableConst ( ) const
inline

Definition at line 144 of file SectionKind.h.

Referenced by isReadOnly().

◆ isMergeableConst16()

bool llvm::SectionKind::isMergeableConst16 ( ) const
inline

Definition at line 150 of file SectionKind.h.

◆ isMergeableConst32()

bool llvm::SectionKind::isMergeableConst32 ( ) const
inline

Definition at line 151 of file SectionKind.h.

◆ isMergeableConst4()

bool llvm::SectionKind::isMergeableConst4 ( ) const
inline

Definition at line 148 of file SectionKind.h.

◆ isMergeableConst8()

bool llvm::SectionKind::isMergeableConst8 ( ) const
inline

Definition at line 149 of file SectionKind.h.

◆ isMergeableCString()

bool llvm::SectionKind::isMergeableCString ( ) const
inline

Definition at line 136 of file SectionKind.h.

Referenced by isReadOnly().

◆ isMetadata()

bool llvm::SectionKind::isMetadata ( ) const
inline

Definition at line 123 of file SectionKind.h.

◆ isReadOnly()

bool llvm::SectionKind::isReadOnly ( ) const
inline

Definition at line 131 of file SectionKind.h.

References isMergeableConst(), and isMergeableCString().

Referenced by llvm::SystemZSubtarget::isAddressedViaADA().

◆ isReadOnlyWithRel()

bool llvm::SectionKind::isReadOnlyWithRel ( ) const
inline

Definition at line 177 of file SectionKind.h.

Referenced by isGlobalWriteableData().

◆ isText()

bool llvm::SectionKind::isText ( ) const
inline

◆ isThreadBSS()

bool llvm::SectionKind::isThreadBSS ( ) const
inline

Definition at line 161 of file SectionKind.h.

Referenced by llvm::AsmPrinter::emitGlobalVariable().

◆ isThreadBSSLocal()

bool llvm::SectionKind::isThreadBSSLocal ( ) const
inline

Definition at line 163 of file SectionKind.h.

Referenced by llvm::TargetLoweringObjectFileXCOFF::getTargetSymbol().

◆ isThreadData()

bool llvm::SectionKind::isThreadData ( ) const
inline

Definition at line 162 of file SectionKind.h.

Referenced by llvm::AsmPrinter::emitGlobalVariable().

◆ isThreadLocal()

bool llvm::SectionKind::isThreadLocal ( ) const
inline

Definition at line 157 of file SectionKind.h.

Referenced by llvm::AsmPrinter::emitGlobalVariable(), and isWriteable().

◆ isWriteable()

bool llvm::SectionKind::isWriteable ( ) const
inline

Definition at line 153 of file SectionKind.h.

References isGlobalWriteableData(), and isThreadLocal().


The documentation for this class was generated from the following file: