LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::MCEncodedFragment Class Reference

#include <MCAssembler.h>

Inheritance diagram for llvm::MCEncodedFragment:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCEncodedFragment:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Interface implemented by fragments that contain encoded instructions and/or data.

Definition at line 135 of file MCAssembler.h.


Constructor & Destructor Documentation

Definition at line 140 of file MCAssembler.h.

Definition at line 278 of file MCAssembler.cpp.


Member Function Documentation

static bool llvm::MCEncodedFragment::classof ( const MCFragment F) [inline, static]
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]
virtual const SmallVectorImpl<char>& llvm::MCEncodedFragment::getContents ( ) const [pure virtual]
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.


The documentation for this class was generated from the following files: