LLVM API Documentation
#include <MCAssembler.h>
Public Member Functions | |
MCEncodedFragment (MCFragment::FragmentType FType, MCSectionData *SD=nullptr) | |
virtual | ~MCEncodedFragment () |
virtual SmallVectorImpl< char > & | getContents ()=0 |
virtual const SmallVectorImpl < char > & | getContents () const =0 |
uint8_t | getBundlePadding () const override |
Get the padding size that must be inserted before this fragment. Used for bundling. By default, no padding is inserted. Note that padding size is restricted to 8 bits. This is an optimization to reduce the amount of space used for each fragment. In practice, larger padding should never be required. | |
void | setBundlePadding (uint8_t N) override |
Set the padding size for this fragment. By default it's a no-op, and only some fragments have a meaningful implementation. | |
Static Public Member Functions | |
static bool | classof (const MCFragment *F) |
Interface implemented by fragments that contain encoded instructions and/or data.
Definition at line 135 of file MCAssembler.h.
llvm::MCEncodedFragment::MCEncodedFragment | ( | MCFragment::FragmentType | FType, |
MCSectionData * | SD = nullptr |
||
) | [inline] |
Definition at line 140 of file MCAssembler.h.
MCEncodedFragment::~MCEncodedFragment | ( | ) | [virtual] |
Definition at line 278 of file MCAssembler.cpp.
static bool llvm::MCEncodedFragment::classof | ( | const MCFragment * | F | ) | [inline, static] |
Reimplemented in llvm::MCRelaxableFragment, llvm::MCCompactEncodedInstFragment, llvm::MCDataFragment, and llvm::MCEncodedFragmentWithFixups.
Definition at line 157 of file MCAssembler.h.
References llvm::MCFragment::FT_CompactEncodedInst, llvm::MCFragment::FT_Data, llvm::MCFragment::FT_Relaxable, and llvm::MCFragment::getKind().
uint8_t llvm::MCEncodedFragment::getBundlePadding | ( | ) | const [inline, override, virtual] |
Get the padding size that must be inserted before this fragment. Used for bundling. By default, no padding is inserted. Note that padding size is restricted to 8 bits. This is an optimization to reduce the amount of space used for each fragment. In practice, larger padding should never be required.
Reimplemented from llvm::MCFragment.
Definition at line 149 of file MCAssembler.h.
virtual SmallVectorImpl<char>& llvm::MCEncodedFragment::getContents | ( | ) | [pure virtual] |
Implemented in llvm::MCRelaxableFragment, llvm::MCCompactEncodedInstFragment, and llvm::MCDataFragment.
Referenced by llvm::MCAssembler::Finish(), and writeFragmentContents().
virtual const SmallVectorImpl<char>& llvm::MCEncodedFragment::getContents | ( | ) | const [pure virtual] |
Implemented in llvm::MCRelaxableFragment, llvm::MCCompactEncodedInstFragment, and llvm::MCDataFragment.
void llvm::MCEncodedFragment::setBundlePadding | ( | uint8_t | N | ) | [inline, override, virtual] |
Set the padding size for this fragment. By default it's a no-op, and only some fragments have a meaningful implementation.
Reimplemented from llvm::MCFragment.
Definition at line 153 of file MCAssembler.h.