LLVM  6.0.0svn
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 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 ()
 

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

Member Function Documentation

◆ getBSS()

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

◆ getBSSExtern()

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

Definition at line 200 of file SectionKind.h.

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

◆ getBSSLocal()

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

Definition at line 199 of file SectionKind.h.

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

◆ getCommon()

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

Definition at line 201 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

◆ getMergeable2ByteCString()

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

◆ getMergeable4ByteCString()

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

Definition at line 189 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

◆ getThreadData()

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

◆ isBSS()

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

◆ isBSSExtern()

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

◆ isBSSLocal()

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

◆ isCommon()

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

◆ isData()

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

◆ isExecuteOnly()

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

Definition at line 121 of file SectionKind.h.

Referenced by getELFSectionFlags(), and selectELFSectionForGlobal().

◆ isGlobalWriteableData()

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

Definition at line 156 of file SectionKind.h.

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

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

◆ isMergeable1ByteCString()

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

◆ isMergeable2ByteCString()

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

◆ isMergeable4ByteCString()

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

Definition at line 134 of file SectionKind.h.

Referenced by selectELFSectionForGlobal().

◆ isMergeableConst()

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

◆ isMergeableConst16()

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

◆ isMergeableConst32()

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

◆ isMergeableConst4()

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

◆ isMergeableConst8()

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

◆ isMergeableCString()

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

◆ isMetadata()

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

Definition at line 117 of file SectionKind.h.

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

◆ isReadOnly()

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

◆ isReadOnlyWithRel()

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

◆ isText()

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

◆ isThreadBSS()

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

◆ isThreadData()

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

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