14 #ifndef LLVM_MC_MCSECTION_H
15 #define LLVM_MC_MCSECTION_H
62 unsigned Alignment = 1;
72 unsigned BundleLockNestingDepth = 0;
76 bool BundleGroupBeforeFirstInst : 1;
79 bool HasInstructions : 1;
81 bool IsRegistered : 1;
131 return BundleGroupBeforeFirstInst;
134 BundleGroupBeforeFirstInst = IsFirst;
150 return &MCSection::Fragments;
174 const MCExpr *Subsection)
const = 0;
187 #endif // LLVM_MC_MCSECTION_H
Instances of this class represent a uniqued identifier for a section in the current translation unit...
base_list_type::const_iterator const_iterator
bool hasInstructions() const
base_list_type::const_reverse_iterator const_reverse_iterator
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
SectionVariant getVariant() const
void setLayoutOrder(unsigned Value)
const MCDummyFragment & getDummyFragment() const
void setAlignment(unsigned Value)
MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin)
void setBundleLockState(BundleLockStateType NewState)
unsigned getAlignment() const
BundleLockStateType
Express the state of bundle locked groups while emitting code.
void setHasInstructions(bool Value)
const MCSection::FragmentListType & getFragmentList() const
Base class for the full range of assembler expressions which are needed for parsing.
const MCSymbol * getBeginSymbol() const
MCSymbol * getEndSymbol(MCContext &Ctx)
Context object for machine code objects.
reverse_iterator rbegin()
const_reverse_iterator rend() const
const_iterator begin() const
This class is intended to be used as a base class for asm properties and features specific to the tar...
Use delete by default for iplist and ilist.
SectionKind - This is a simple POD value that classifies the properties of a section.
unsigned getOrdinal() const
void setIsRegistered(bool Value)
bool isRegistered() const
virtual bool UseCodeAlign() const =0
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
virtual void PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, const MCExpr *Subsection) const =0
Triple - Helper class for working with autoconf configuration names.
void setOrdinal(unsigned Value)
Iterator for intrusive lists based on ilist_node.
base_list_type::iterator iterator
SectionKind getKind() const
virtual bool isVirtualSection() const =0
Check whether this section is "virtual", that is has no actual object file contents.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
MCSymbol * getBeginSymbol()
static void deleteNode(NodeTy *V)
static FragmentListType MCSection::* getSublistAccess(MCFragment *)
Support for MCFragment::getNextNode().
unsigned getLayoutOrder() const
bool isBundleGroupBeforeFirstInst() const
const_reverse_iterator rbegin() const
BundleLockStateType getBundleLockState() const
void setBundleGroupBeforeFirstInst(bool IsFirst)
MCSection & operator=(const MCSection &)=delete
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const_iterator end() const
MCSection::iterator getSubsectionInsertionPoint(unsigned Subsection)
LLVM Value Representation.
bool isBundleLocked() const
MCDummyFragment & getDummyFragment()
This class implements an extremely fast bulk output stream that can only output to a stream...
MCSection::FragmentListType & getFragmentList()
base_list_type::reverse_iterator reverse_iterator
void setBeginSymbol(MCSymbol *Sym)