LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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()

static SectionKind llvm::SectionKind::getBSS ( )
inlinestatic

◆ getBSSExtern()

static SectionKind llvm::SectionKind::getBSSExtern ( )
inlinestatic

Definition at line 211 of file SectionKind.h.

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

◆ getBSSLocal()

static SectionKind llvm::SectionKind::getBSSLocal ( )
inlinestatic

Definition at line 210 of file SectionKind.h.

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

◆ getCommon()

static SectionKind llvm::SectionKind::getCommon ( )
inlinestatic

Definition at line 212 of file SectionKind.h.

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

◆ getData()

static SectionKind llvm::SectionKind::getData ( )
inlinestatic

◆ getExclude()

static SectionKind llvm::SectionKind::getExclude ( )
inlinestatic

Definition at line 189 of file SectionKind.h.

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

◆ getExecuteOnly()

static SectionKind llvm::SectionKind::getExecuteOnly ( )
inlinestatic

◆ getMergeable1ByteCString()

static SectionKind llvm::SectionKind::getMergeable1ByteCString ( )
inlinestatic

Definition at line 193 of file SectionKind.h.

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

◆ getMergeable2ByteCString()

static SectionKind llvm::SectionKind::getMergeable2ByteCString ( )
inlinestatic

Definition at line 196 of file SectionKind.h.

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

◆ getMergeable4ByteCString()

static SectionKind llvm::SectionKind::getMergeable4ByteCString ( )
inlinestatic

Definition at line 199 of file SectionKind.h.

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

◆ getMergeableConst16()

static SectionKind llvm::SectionKind::getMergeableConst16 ( )
inlinestatic

◆ getMergeableConst32()

static SectionKind llvm::SectionKind::getMergeableConst32 ( )
inlinestatic

◆ getMergeableConst4()

static SectionKind llvm::SectionKind::getMergeableConst4 ( )
inlinestatic

◆ getMergeableConst8()

static SectionKind llvm::SectionKind::getMergeableConst8 ( )
inlinestatic

◆ getMetadata()

static SectionKind llvm::SectionKind::getMetadata ( )
inlinestatic

◆ getReadOnly()

static SectionKind llvm::SectionKind::getReadOnly ( )
inlinestatic

◆ getReadOnlyWithRel()

static SectionKind llvm::SectionKind::getReadOnlyWithRel ( )
inlinestatic

◆ getText()

static SectionKind llvm::SectionKind::getText ( )
inlinestatic

◆ getThreadBSS()

static SectionKind llvm::SectionKind::getThreadBSS ( )
inlinestatic

◆ getThreadBSSLocal()

static SectionKind llvm::SectionKind::getThreadBSSLocal ( )
inlinestatic

Definition at line 208 of file SectionKind.h.

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

◆ getThreadData()

static 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

◆ 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: