LLVM API Documentation

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

#include <MCAssembler.h>

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

List of all members.

Public Member Functions

 MCRelaxableFragment (const MCInst &_Inst, const MCSubtargetInfo &_STI, MCSectionData *SD=nullptr)
SmallVectorImpl< char > & getContents () override
const SmallVectorImpl< char > & getContents () const override
const MCInstgetInst () const
void setInst (const MCInst &Value)
const MCSubtargetInfogetSubtargetInfo ()
SmallVectorImpl< MCFixup > & getFixups () override
const SmallVectorImpl< MCFixup > & getFixups () const override
bool hasInstructions () const override
 Does this fragment have instructions emitted into it? By default this is false, but specific fragment types may set it to true.
fixup_iterator fixup_begin () override
const_fixup_iterator fixup_begin () const override
fixup_iterator fixup_end () override
const_fixup_iterator fixup_end () const override

Static Public Member Functions

static bool classof (const MCFragment *F)

Detailed Description

A relaxable fragment holds on to its MCInst, since it may need to be relaxed during the assembler layout and relaxation stage.

Definition at line 290 of file MCAssembler.h.


Constructor & Destructor Documentation

llvm::MCRelaxableFragment::MCRelaxableFragment ( const MCInst _Inst,
const MCSubtargetInfo _STI,
MCSectionData SD = nullptr 
) [inline]

Definition at line 308 of file MCAssembler.h.


Member Function Documentation

static bool llvm::MCRelaxableFragment::classof ( const MCFragment F) [inline, static]

Reimplemented from llvm::MCEncodedFragmentWithFixups.

Definition at line 338 of file MCAssembler.h.

References llvm::MCFragment::FT_Relaxable, and llvm::MCFragment::getKind().

fixup_iterator llvm::MCRelaxableFragment::fixup_begin ( ) [inline, override, virtual]
const_fixup_iterator llvm::MCRelaxableFragment::fixup_begin ( ) const [inline, override, virtual]
fixup_iterator llvm::MCRelaxableFragment::fixup_end ( ) [inline, override, virtual]
const_fixup_iterator llvm::MCRelaxableFragment::fixup_end ( ) const [inline, override, virtual]
SmallVectorImpl<char>& llvm::MCRelaxableFragment::getContents ( ) [inline, override, virtual]

Implements llvm::MCEncodedFragment.

Definition at line 314 of file MCAssembler.h.

Referenced by llvm::MCObjectStreamer::EmitInstToFragment().

const SmallVectorImpl<char>& llvm::MCRelaxableFragment::getContents ( ) const [inline, override, virtual]

Implements llvm::MCEncodedFragment.

Definition at line 315 of file MCAssembler.h.

const SmallVectorImpl<MCFixup>& llvm::MCRelaxableFragment::getFixups ( ) const [inline, override, virtual]

Implements llvm::MCEncodedFragmentWithFixups.

Definition at line 326 of file MCAssembler.h.

Definition at line 317 of file MCAssembler.h.

Referenced by llvm::MCFragment::dump().

Definition at line 320 of file MCAssembler.h.

bool llvm::MCRelaxableFragment::hasInstructions ( ) const [inline, override, virtual]

Does this fragment have instructions emitted into it? By default this is false, but specific fragment types may set it to true.

Reimplemented from llvm::MCFragment.

Definition at line 330 of file MCAssembler.h.

void llvm::MCRelaxableFragment::setInst ( const MCInst Value) [inline]

Definition at line 318 of file MCAssembler.h.


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