9#ifndef LLVM_MC_SECTIONKIND_H
10#define LLVM_MC_SECTIONKIND_H
48 Mergeable1ByteCString,
51 Mergeable2ByteCString,
54 Mergeable4ByteCString,
127 bool isText()
const {
return K == Text || K == ExecuteOnly; }
137 return K == Mergeable1ByteCString || K == Mergeable2ByteCString ||
138 K == Mergeable4ByteCString;
145 return K == MergeableConst4 || K == MergeableConst8 ||
146 K == MergeableConst16 || K == MergeableConst32;
158 return K == ThreadData || K == ThreadBSS || K == ThreadBSSLocal;
161 bool isThreadBSS()
const {
return K == ThreadBSS || K == ThreadBSSLocal; }
169 bool isBSS()
const {
return K == BSS || K == BSSLocal || K == BSSExtern; }
175 bool isData()
const {
return K == Data; }
178 return K == ReadOnlyWithRel;
194 return get(Mergeable1ByteCString);
197 return get(Mergeable2ByteCString);
200 return get(Mergeable4ByteCString);
SectionKind - This is a simple POD value that classifies the properties of a section.
static SectionKind getThreadData()
static SectionKind getBSSExtern()
bool isMergeable2ByteCString() const
static SectionKind getMetadata()
bool isThreadBSSLocal() const
bool isReadOnlyWithRel() const
static SectionKind getMergeable2ByteCString()
bool isMergeableConst4() const
static SectionKind getExclude()
static SectionKind getBSSLocal()
static SectionKind getMergeableConst4()
static SectionKind getCommon()
static SectionKind getText()
static SectionKind getThreadBSSLocal()
static SectionKind getReadOnlyWithRel()
bool isMergeableConst() const
bool isMergeableConst8() const
static SectionKind getData()
static SectionKind getMergeableConst8()
bool isMergeable1ByteCString() const
bool isThreadLocal() const
static SectionKind getBSS()
static SectionKind getThreadBSS()
bool isMergeableConst32() const
bool isExecuteOnly() const
bool isThreadData() const
bool isMergeableCString() const
static SectionKind getMergeableConst16()
bool isGlobalWriteableData() const
bool isMergeable4ByteCString() const
static SectionKind getMergeable4ByteCString()
static SectionKind getExecuteOnly()
bool isMergeableConst16() const
static SectionKind getMergeable1ByteCString()
static SectionKind getReadOnly()
static SectionKind getMergeableConst32()
This is an optimization pass for GlobalISel generic memory operations.