LLVM  14.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 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 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 204 of file SectionKind.h.

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

◆ getBSSLocal()

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

Definition at line 203 of file SectionKind.h.

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

◆ getCommon()

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

Definition at line 205 of file SectionKind.h.

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

◆ getData()

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

◆ getExecuteOnly()

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

◆ getMergeable1ByteCString()

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

Definition at line 186 of file SectionKind.h.

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

◆ getMergeable2ByteCString()

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

Definition at line 189 of file SectionKind.h.

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

◆ getMergeable4ByteCString()

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

Definition at line 192 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 201 of file SectionKind.h.

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

◆ getThreadData()

static SectionKind llvm::SectionKind::getThreadData ( )
inlinestatic

◆ isBSS()

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

◆ isBSSExtern()

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

Definition at line 165 of file SectionKind.h.

◆ isBSSLocal()

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

◆ isCommon()

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

Definition at line 167 of file SectionKind.h.

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

◆ isData()

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

Definition at line 169 of file SectionKind.h.

Referenced by isGlobalWriteableData().

◆ isExecuteOnly()

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

Definition at line 123 of file SectionKind.h.

Referenced by getELFSectionFlags().

◆ isGlobalWriteableData()

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

Definition at line 159 of file SectionKind.h.

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

Referenced by llvm::MCSectionWasm::isWasmData(), and isWriteable().

◆ isMergeable1ByteCString()

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

Definition at line 134 of file SectionKind.h.

◆ isMergeable2ByteCString()

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

Definition at line 135 of file SectionKind.h.

◆ isMergeable4ByteCString()

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

Definition at line 136 of file SectionKind.h.

◆ isMergeableConst()

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

Definition at line 138 of file SectionKind.h.

Referenced by getELFSectionFlags(), and isReadOnly().

◆ isMergeableConst16()

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

Definition at line 144 of file SectionKind.h.

Referenced by getXCoreSectionFlags().

◆ isMergeableConst32()

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

Definition at line 145 of file SectionKind.h.

◆ isMergeableConst4()

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

Definition at line 142 of file SectionKind.h.

Referenced by getXCoreSectionFlags().

◆ isMergeableConst8()

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

Definition at line 143 of file SectionKind.h.

Referenced by getXCoreSectionFlags().

◆ isMergeableCString()

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

◆ isMetadata()

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

Definition at line 119 of file SectionKind.h.

Referenced by getCOFFSectionFlags(), getELFSectionFlags(), and getXCoreSectionFlags().

◆ isReadOnly()

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

Definition at line 125 of file SectionKind.h.

References isMergeableConst(), and isMergeableCString().

Referenced by getCOFFSectionFlags(), and llvm::MCSectionWasm::isWasmData().

◆ isReadOnlyWithRel()

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

Definition at line 171 of file SectionKind.h.

Referenced by getCOFFSectionFlags(), and isGlobalWriteableData().

◆ isText()

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

◆ isThreadBSS()

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

Definition at line 155 of file SectionKind.h.

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

◆ isThreadBSSLocal()

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

Definition at line 157 of file SectionKind.h.

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

◆ isThreadData()

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

Definition at line 156 of file SectionKind.h.

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

◆ isThreadLocal()

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

◆ isWriteable()

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

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