LLVM API Documentation

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

#include <MCAssembler.h>

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

List of all members.

Public Member Functions

 MCCompactEncodedInstFragment (MCSectionData *SD=nullptr)
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.
SmallVectorImpl< char > & getContents () override
const SmallVectorImpl< char > & getContents () const override
bool alignToBundleEnd () const override
 Should this fragment be placed at the end of an aligned bundle?
void setAlignToBundleEnd (bool V) override

Static Public Member Functions

static bool classof (const MCFragment *F)

Detailed Description

This is a compact (memory-size-wise) fragment for holding an encoded instruction (non-relaxable) that has no fixups registered. When applicable, it can be used instead of MCDataFragment and lead to lower memory consumption.

Definition at line 259 of file MCAssembler.h.


Constructor & Destructor Documentation

Definition at line 267 of file MCAssembler.h.


Member Function Documentation

bool llvm::MCCompactEncodedInstFragment::alignToBundleEnd ( ) const [inline, override, virtual]

Should this fragment be placed at the end of an aligned bundle?

Reimplemented from llvm::MCFragment.

Definition at line 279 of file MCAssembler.h.

Reimplemented from llvm::MCEncodedFragment.

Definition at line 282 of file MCAssembler.h.

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

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

Implements llvm::MCEncodedFragment.

Definition at line 276 of file MCAssembler.h.

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

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

Implements llvm::MCEncodedFragment.

Definition at line 277 of file MCAssembler.h.

bool llvm::MCCompactEncodedInstFragment::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 272 of file MCAssembler.h.

void llvm::MCCompactEncodedInstFragment::setAlignToBundleEnd ( bool  V) [inline, override, virtual]

Reimplemented from llvm::MCFragment.

Definition at line 280 of file MCAssembler.h.


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