|
LLVM 24.0.0git
|
#include "llvm/MC/MCSection.h"
Public Types | |
| enum | FragmentType : uint8_t { FT_Data , FT_Relaxable , FT_Align , FT_PrefAlign , FT_Fill , FT_LEB , FT_Nops , FT_Org , FT_Dwarf , FT_DwarfFrame , FT_SFrame , FT_BoundaryAlign , FT_SymbolId , FT_CVInlineLines , FT_CVDefRange } |
Protected Attributes | |
| const MCSubtargetInfo * | STI = nullptr |
Friends | |
| class | MCAssembler |
| class | MCStreamer |
| class | MCObjectStreamer |
| class | MCSection |
Definition at line 42 of file MCSection.h.
| Enumerator | |
|---|---|
| FT_Data | |
| FT_Relaxable | |
| FT_Align | |
| FT_PrefAlign | |
| FT_Fill | |
| FT_LEB | |
| FT_Nops | |
| FT_Org | |
| FT_Dwarf | |
| FT_DwarfFrame | |
| FT_SFrame | |
| FT_BoundaryAlign | |
| FT_SymbolId | |
| FT_CVInlineLines | |
| FT_CVDefRange | |
Definition at line 49 of file MCSection.h.
| MCFragment::MCFragment | ( | FragmentType | Kind = MCFragment::FT_Data, |
| bool | HasInstructions = false ) |
Definition at line 30 of file MCFragment.cpp.
Referenced by llvm::MCBoundaryAlignFragment::classof(), llvm::MCCVDefRangeFragment::classof(), llvm::MCCVInlineLineTableFragment::classof(), llvm::MCFillFragment::classof(), llvm::MCNopsFragment::classof(), llvm::MCOrgFragment::classof(), llvm::MCSymbolIdFragment::classof(), llvm::MCBoundaryAlignFragment::getLastFragment(), getNext(), getSFrameFDE(), llvm::MCBoundaryAlignFragment::MCBoundaryAlignFragment(), llvm::MCCVDefRangeFragment::MCCVDefRangeFragment(), llvm::MCCVInlineLineTableFragment::MCCVInlineLineTableFragment(), llvm::MCFillFragment::MCFillFragment(), MCFragment(), llvm::MCNopsFragment::MCNopsFragment(), llvm::MCOrgFragment::MCOrgFragment(), llvm::MCSymbolIdFragment::MCSymbolIdFragment(), operator=(), llvm::MCBoundaryAlignFragment::setLastFragment(), and setSFrameFDE().
|
delete |
References MCFragment().
| void MCFragment::addFixup | ( | MCFixup | Fixup | ) |
Definition at line 71 of file MCSection.cpp.
References appendFixups().
Definition at line 85 of file MCSection.cpp.
References getParent(), and moveFixupsToEnd().
Referenced by addFixup().
|
inline |
Definition at line 228 of file MCSection.h.
|
inline |
Definition at line 216 of file MCSection.h.
References setVarContents().
|
inline |
Definition at line 241 of file MCSection.h.
References setVarFixups().
| LLVM_DUMP_METHOD void MCFragment::dump | ( | ) | const |
Definition at line 42 of file MCFragment.cpp.
References llvm::cast(), llvm::MCInst::dump_pretty(), llvm::enumerate(), llvm::errs(), F, llvm::Fixed, llvm::format(), FT_Align, FT_BoundaryAlign, FT_CVDefRange, FT_CVInlineLines, FT_Data, FT_Dwarf, FT_DwarfFrame, FT_Fill, FT_LEB, FT_Nops, FT_Org, FT_PrefAlign, FT_Relaxable, FT_SFrame, FT_SymbolId, getAlignFill(), getAlignFillLen(), getAlignMaxBytesToEmit(), getAlignment(), getContents(), getDwarfAddrDelta(), getDwarfLineDelta(), getFixups(), getInst(), getKind(), getLEBValue(), llvm::MCSymbol::getName(), getPrefAlignComputed(), getPrefAlignEnd(), getPrefAlignPreferred(), getVarContents(), getVarFixups(), hasAlignEmitNops(), I, isLEBSigned(), isLinkerRelaxable(), LLVM_DUMP_METHOD, llvm_unreachable, and llvm::Align::value().
|
inline |
Definition at line 269 of file MCSection.h.
References assert(), and FT_Align.
Referenced by dump().
|
inline |
Definition at line 273 of file MCSection.h.
References assert(), and FT_Align.
Referenced by dump().
|
inline |
Definition at line 277 of file MCSection.h.
References assert(), and FT_Align.
Referenced by dump().
|
inline |
Definition at line 265 of file MCSection.h.
References assert(), and FT_Align.
Referenced by dump().
|
inline |
Definition at line 206 of file MCSection.h.
Definition at line 37 of file MCFragment.cpp.
References getAtom().
Referenced by llvm::MachObjectWriter::getAtom(), getAtom(), and llvm::MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl().
|
inline |
Definition at line 704 of file MCSection.h.
Referenced by dump().
Definition at line 707 of file MCSection.h.
Definition at line 346 of file MCSection.h.
References assert(), FT_Dwarf, and FT_DwarfFrame.
Referenced by dump().
|
inline |
Definition at line 354 of file MCSection.h.
References assert(), and FT_Dwarf.
Referenced by dump().
|
inline |
Definition at line 220 of file MCSection.h.
Referenced by llvm::AsmPrinter::emitFunctionBody(), and setVarFixups().
|
inline |
Definition at line 722 of file MCSection.h.
References getParent(), llvm::MutableArrayRef(), and llvm::MutableArrayRef< T >::slice().
Referenced by dump().
Definition at line 726 of file MCSection.h.
References llvm::ArrayRef(), getParent(), and llvm::ArrayRef< T >::slice().
|
inline |
Definition at line 745 of file MCSection.h.
References llvm::ArrayRef(), assert(), FT_Relaxable, getParent(), llvm::MCInst::setFlags(), llvm::MCInst::setOpcode(), and llvm::MCInst::setOperands().
Referenced by dump().
|
inline |
Definition at line 176 of file MCSection.h.
Referenced by dump().
|
inline |
Definition at line 183 of file MCSection.h.
Referenced by attemptToFoldSymbolOffsetDifference().
Definition at line 332 of file MCSection.h.
References assert(), and FT_LEB.
Referenced by dump(), and llvm::RISCVAsmBackend::relaxLEB128().
|
inline |
Definition at line 174 of file MCSection.h.
References MCFragment().
Referenced by computeBoundaryAlignSize(), llvm::AsmPrinter::emitFunctionBody(), and llvm::MCAssembler::layout().
|
inline |
Definition at line 246 of file MCSection.h.
References assert(), and FT_Relaxable.
Definition at line 740 of file MCSection.h.
References assert(), FT_Relaxable, getParent(), and llvm::MutableArrayRef().
|
inline |
Definition at line 178 of file MCSection.h.
References MCSection.
Referenced by appendFixups(), attemptToFoldSymbolOffsetDifference(), llvm::MCELFStreamer::emitBundleUnlock(), llvm::RISCVAsmBackend::evaluateFixup(), llvm::MachObjectWriter::getAtom(), getFixups(), getFixups(), getInst(), getOperands(), llvm::MCSymbol::getSection(), llvm::MachObjectWriter::getSymbolAddress(), getVarContents(), getVarContents(), getVarFixups(), getVarFixups(), insertRelocFixups(), llvm::ELFObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), llvm::MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), llvm::MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), llvm::WinCOFFObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(), moveFixupsToEnd(), setInst(), llvm::MCBoundaryAlignFragment::setLastFragment(), setVarContents(), and setVarFixups().
|
inline |
Definition at line 308 of file MCSection.h.
References assert(), and FT_PrefAlign.
Referenced by dump().
|
inline |
Definition at line 316 of file MCSection.h.
References assert(), and FT_PrefAlign.
Definition at line 300 of file MCSection.h.
References assert(), and FT_PrefAlign.
Referenced by dump().
|
inline |
Definition at line 320 of file MCSection.h.
References assert(), and FT_PrefAlign.
|
inline |
Definition at line 304 of file MCSection.h.
References assert(), and FT_PrefAlign.
Referenced by dump().
Definition at line 364 of file MCSection.h.
|
inline |
Definition at line 372 of file MCSection.h.
References assert(), FT_SFrame, and MCFragment().
|
inline |
Definition at line 222 of file MCSection.h.
|
inline |
Retrieve the MCSubTargetInfo in effect when the instruction was encoded.
Guaranteed to be non-null if hasInstructions() == true
Definition at line 194 of file MCSection.h.
References STI.
Referenced by writeFragment().
|
inline |
Definition at line 711 of file MCSection.h.
References getParent(), llvm::MutableArrayRef(), and llvm::MutableArrayRef< T >::slice().
Referenced by dump(), llvm::MCSFrameEmitter::encodeFuncOffset(), and llvm::MachObjectWriter::writeObject().
Definition at line 715 of file MCSection.h.
References llvm::ArrayRef(), getParent(), and llvm::MutableArrayRef< T >::slice().
|
inline |
Definition at line 731 of file MCSection.h.
References getParent(), llvm::MutableArrayRef(), and llvm::MutableArrayRef< T >::slice().
Referenced by dump().
Definition at line 735 of file MCSection.h.
References llvm::ArrayRef(), getParent(), and llvm::ArrayRef< T >::slice().
|
inline |
Definition at line 221 of file MCSection.h.
|
inline |
Definition at line 281 of file MCSection.h.
References assert(), and FT_Align.
Referenced by dump().
|
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 188 of file MCSection.h.
Definition at line 93 of file MCSection.cpp.
References getParent(), and moveFixupsToEnd().
|
inline |
Definition at line 340 of file MCSection.h.
References assert(), and FT_LEB.
Referenced by dump(), and llvm::RISCVAsmBackend::relaxLEB128().
|
inline |
Definition at line 203 of file MCSection.h.
Referenced by dump().
|
inline |
Definition at line 255 of file MCSection.h.
References FT_Align.
Definition at line 326 of file MCSection.h.
|
inline |
Definition at line 291 of file MCSection.h.
References llvm::End, and FT_PrefAlign.
| void MCFragment::moveFixupsToEnd | ( | ) |
Definition at line 73 of file MCSection.cpp.
References getParent(), I, LLVM_UNLIKELY, and llvm::Size.
Referenced by appendFixups(), and insertRelocFixups().
|
delete |
References MCFragment().
|
inline |
Definition at line 207 of file MCSection.h.
References V.
Definition at line 350 of file MCSection.h.
References assert(), E(), FT_Dwarf, and FT_DwarfFrame.
|
inline |
Definition at line 358 of file MCSection.h.
|
inline |
Record that the fragment contains instructions with the MCSubtargetInfo in effect when the instruction was encoded.
Definition at line 198 of file MCSection.h.
References STI.
Definition at line 754 of file MCSection.h.
References assert(), llvm::MCInst::begin(), llvm::copy(), FT_Relaxable, llvm::MCInst::getFlags(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), and getParent().
|
inline |
Definition at line 184 of file MCSection.h.
Definition at line 336 of file MCSection.h.
|
inline |
Definition at line 204 of file MCSection.h.
|
inline |
Definition at line 179 of file MCSection.h.
References MCSection.
|
inline |
Definition at line 312 of file MCSection.h.
References A(), assert(), and FT_PrefAlign.
Definition at line 368 of file MCSection.h.
|
inline |
Definition at line 376 of file MCSection.h.
References assert(), F, FT_SFrame, and MCFragment().
Definition at line 61 of file MCSection.cpp.
References llvm::ArrayRef< T >::begin(), llvm::copy(), getParent(), and llvm::ArrayRef< T >::size().
Referenced by clearVarContents(), llvm::CodeViewContext::encodeDefRange(), and llvm::CodeViewContext::encodeInlineLineTable().
Definition at line 106 of file MCSection.cpp.
References assert(), F, llvm::Fixed, getFixedSize(), and getParent().
Referenced by clearVarFixups(), llvm::CodeViewContext::encodeDefRange(), and llvm::RISCVAsmBackend::relaxLEB128().
|
friend |
|
friend |
Definition at line 45 of file MCSection.h.
References MCObjectStreamer.
Referenced by MCObjectStreamer.
|
friend |
Definition at line 46 of file MCSection.h.
References MCSection.
Referenced by getParent(), MCSection, and setParent().
|
friend |
|
protected |
Definition at line 109 of file MCSection.h.
Referenced by getSubtargetInfo(), llvm::MCBoundaryAlignFragment::MCBoundaryAlignFragment(), llvm::MCNopsFragment::MCNopsFragment(), and setHasInstructions().