|
LLVM
10.0.0
|
#include "llvm/MC/MCFragment.h"
Public Types | |
| enum | FragmentType : uint8_t { FT_Align, FT_Data, FT_CompactEncodedInst, FT_Fill, FT_Relaxable, FT_Org, FT_Dwarf, FT_DwarfFrame, FT_LEB, FT_BoundaryAlign, FT_SymbolId, FT_CVInlineLines, FT_CVDefRange, FT_Dummy } |
Protected Member Functions | |
| MCFragment (FragmentType Kind, bool HasInstructions, MCSection *Parent=nullptr) | |
Protected Member Functions inherited from llvm::ilist_node_with_parent< MCFragment, MCSection > | |
| ilist_node_with_parent ()=default | |
Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< MCFragment, Options... >::type > | |
| ilist_node_impl ()=default | |
Protected Attributes | |
| bool | HasInstructions |
Friends | |
| class | MCAsmLayout |
Additional Inherited Members | |
Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< MCFragment, Options... >::type > | |
| using | self_iterator = ilist_iterator< ilist_detail::compute_node_options< MCFragment, Options... >::type, false, false > |
| using | const_self_iterator = ilist_iterator< ilist_detail::compute_node_options< MCFragment, Options... >::type, false, true > |
| using | reverse_self_iterator = ilist_iterator< ilist_detail::compute_node_options< MCFragment, Options... >::type, true, false > |
| using | const_reverse_self_iterator = ilist_iterator< ilist_detail::compute_node_options< MCFragment, Options... >::type, true, true > |
Definition at line 31 of file MCFragment.h.
| enum llvm::MCFragment::FragmentType : uint8_t |
| Enumerator | |
|---|---|
| FT_Align | |
| FT_Data | |
| FT_CompactEncodedInst | |
| FT_Fill | |
| FT_Relaxable | |
| FT_Org | |
| FT_Dwarf | |
| FT_DwarfFrame | |
| FT_LEB | |
| FT_BoundaryAlign | |
| FT_SymbolId | |
| FT_CVInlineLines | |
| FT_CVDefRange | |
| FT_Dummy | |
Definition at line 35 of file MCFragment.h.
|
protected |
Definition at line 235 of file MCFragment.cpp.
References llvm::MCSection::getFragmentList(), and llvm::iplist_impl< IntrusiveListT, TraitsT >::push_back().
|
delete |
|
delete |
| void MCFragment::destroy | ( | ) |
Destroys the current fragment.
This must be used instead of delete as MCFragment is non-virtual. This method will dispatch to the appropriate subclass.
Definition at line 243 of file MCFragment.cpp.
References FT_Align, FT_BoundaryAlign, FT_CompactEncodedInst, FT_CVDefRange, FT_CVInlineLines, FT_Data, FT_Dummy, FT_Dwarf, FT_DwarfFrame, FT_Fill, FT_LEB, FT_Org, FT_Relaxable, and FT_SymbolId.
Referenced by llvm::computeBundlePadding().
| LLVM_DUMP_METHOD void MCFragment::dump | ( | ) | const |
Definition at line 310 of file MCFragment.cpp.
References DF, llvm::numbers::e, llvm::errs(), FT_Align, FT_BoundaryAlign, FT_CompactEncodedInst, FT_CVDefRange, FT_CVInlineLines, FT_Data, FT_Dummy, FT_Dwarf, FT_DwarfFrame, FT_Fill, FT_LEB, FT_Org, FT_Relaxable, FT_SymbolId, getKind(), hasInstructions(), llvm::hexdigit(), and llvm::SmallVectorBase::size().
Referenced by hasInstructions().
Definition at line 90 of file MCFragment.h.
Referenced by llvm::MCAssembler::getAtom(), and llvm::MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl().
|
inline |
Definition at line 85 of file MCFragment.h.
Referenced by llvm::MCDummyFragment::classof(), llvm::MCEncodedFragment::classof(), llvm::MCEncodedFragmentWithFixups< 8, 1 >::classof(), llvm::MCDataFragment::classof(), llvm::MCCompactEncodedInstFragment::classof(), llvm::MCRelaxableFragment::classof(), llvm::MCAlignFragment::classof(), llvm::MCFillFragment::classof(), llvm::MCOrgFragment::classof(), llvm::MCLEBFragment::classof(), llvm::MCDwarfLineAddrFragment::classof(), llvm::MCDwarfCallFrameFragment::classof(), llvm::MCSymbolIdFragment::classof(), llvm::MCCVInlineLineTableFragment::classof(), llvm::MCCVDefRangeFragment::classof(), llvm::MCBoundaryAlignFragment::classof(), llvm::MCAssembler::computeFragmentSize(), dump(), and isInSymtab().
|
inline |
Definition at line 93 of file MCFragment.h.
Referenced by llvm::MCAsmLayout::MCAsmLayout().
|
inline |
Definition at line 87 of file MCFragment.h.
Referenced by canUseLocalRelocation(), llvm::MCAssembler::computeFragmentSize(), llvm::MCObjectStreamer::EmitLabelAtPos(), getARMFixupKindMachOInfo(), llvm::MCAssembler::getAtom(), getFixupKindLog2Size(), getFixupOffset(), llvm::MachObjectWriter::getFragmentAddress(), llvm::MCSymbol::getSection(), llvm::MachObjectWriter::getSymbolAddress(), getSymbolValue(), llvm::MCAsmLayout::invalidateFragmentsFrom(), isIFunc(), llvm::MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), llvm::MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), llvm::MCAsmLayout::layoutFragment(), and llvm::MCAsmLayout::MCAsmLayout().
|
inline |
Does this fragment have instructions emitted into it? By default this is false, but specific fragment types may set it to true.
Definition at line 98 of file MCFragment.h.
References dump(), and HasInstructions.
Referenced by CanReuseDataFragment(), dump(), isInSymtab(), llvm::MCAsmLayout::layoutFragment(), and llvm::MCAssembler::writeFragmentPadding().
|
delete |
Definition at line 91 of file MCFragment.h.
|
inline |
Definition at line 94 of file MCFragment.h.
|
inline |
Definition at line 88 of file MCFragment.h.
Referenced by llvm::MCSection::flushPendingLabels(), llvm::MCSection::getSubsectionInsertionPoint(), and llvm::MCObjectStreamer::insert().
|
friend |
Definition at line 32 of file MCFragment.h.
|
protected |
Definition at line 69 of file MCFragment.h.
Referenced by hasInstructions(), and llvm::MCEncodedFragment::setHasInstructions().
1.8.13