LLVM  3.7.0
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 <SectionKind.h>

Public Member Functions

bool isMetadata () const
 
bool isText () 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 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 isDataRel () const
 
bool isDataRelLocal () const
 
bool isDataNoRel () const
 
bool isReadOnlyWithRel () const
 
bool isReadOnlyWithRelLocal () const
 

Static Public Member Functions

static SectionKind getMetadata ()
 
static SectionKind getText ()
 
static SectionKind getReadOnly ()
 
static SectionKind getMergeable1ByteCString ()
 
static SectionKind getMergeable2ByteCString ()
 
static SectionKind getMergeable4ByteCString ()
 
static SectionKind getMergeableConst4 ()
 
static SectionKind getMergeableConst8 ()
 
static SectionKind getMergeableConst16 ()
 
static SectionKind getThreadBSS ()
 
static SectionKind getThreadData ()
 
static SectionKind getBSS ()
 
static SectionKind getBSSLocal ()
 
static SectionKind getBSSExtern ()
 
static SectionKind getCommon ()
 
static SectionKind getDataRel ()
 
static SectionKind getDataRelLocal ()
 
static SectionKind getDataNoRel ()
 
static SectionKind getReadOnlyWithRel ()
 
static SectionKind getReadOnlyWithRelLocal ()
 

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

Member Function Documentation

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

Definition at line 225 of file SectionKind.h.

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

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

Definition at line 224 of file SectionKind.h.

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

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

Definition at line 226 of file SectionKind.h.

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

static SectionKind llvm::SectionKind::getDataNoRel ( )
inlinestatic
static SectionKind llvm::SectionKind::getDataRel ( )
inlinestatic
static SectionKind llvm::SectionKind::getDataRelLocal ( )
inlinestatic

Definition at line 228 of file SectionKind.h.

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

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

Definition at line 209 of file SectionKind.h.

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

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

Definition at line 212 of file SectionKind.h.

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

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

Definition at line 215 of file SectionKind.h.

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

static SectionKind llvm::SectionKind::getMergeableConst16 ( )
inlinestatic
static SectionKind llvm::SectionKind::getMergeableConst4 ( )
inlinestatic
static SectionKind llvm::SectionKind::getMergeableConst8 ( )
inlinestatic
static SectionKind llvm::SectionKind::getMetadata ( )
inlinestatic
static SectionKind llvm::SectionKind::getReadOnly ( )
inlinestatic
static SectionKind llvm::SectionKind::getReadOnlyWithRel ( )
inlinestatic
static SectionKind llvm::SectionKind::getReadOnlyWithRelLocal ( )
inlinestatic
static SectionKind llvm::SectionKind::getText ( )
inlinestatic
static SectionKind llvm::SectionKind::getThreadBSS ( )
inlinestatic
static SectionKind llvm::SectionKind::getThreadData ( )
inlinestatic
bool llvm::SectionKind::isBSS ( ) const
inline
bool llvm::SectionKind::isBSSExtern ( ) const
inline
bool llvm::SectionKind::isBSSLocal ( ) const
inline
bool llvm::SectionKind::isCommon ( ) const
inline
bool llvm::SectionKind::isDataNoRel ( ) const
inline
bool llvm::SectionKind::isDataRel ( ) const
inline
bool llvm::SectionKind::isDataRelLocal ( ) const
inline

Definition at line 185 of file SectionKind.h.

Referenced by getSectionPrefixForGlobal().

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

Definition at line 171 of file SectionKind.h.

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

Referenced by isWriteable().

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

Definition at line 150 of file SectionKind.h.

Referenced by selectELFSectionForGlobal().

bool llvm::SectionKind::isMergeableConst ( ) const
inline
bool llvm::SectionKind::isMergeableConst16 ( ) const
inline
bool llvm::SectionKind::isMergeableConst4 ( ) const
inline
bool llvm::SectionKind::isMergeableConst8 ( ) const
inline
bool llvm::SectionKind::isMergeableCString ( ) const
inline
bool llvm::SectionKind::isMetadata ( ) const
inline

Definition at line 136 of file SectionKind.h.

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

bool llvm::SectionKind::isReadOnly ( ) const
inline
bool llvm::SectionKind::isReadOnlyWithRel ( ) const
inline
bool llvm::SectionKind::isReadOnlyWithRelLocal ( ) const
inline
bool llvm::SectionKind::isText ( ) const
inline
bool llvm::SectionKind::isThreadBSS ( ) const
inline
bool llvm::SectionKind::isThreadData ( ) const
inline
bool llvm::SectionKind::isThreadLocal ( ) const
inline
bool llvm::SectionKind::isWriteable ( ) const
inline

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