class MCAlignFragment

Declaration

class MCAlignFragment : public MCFragment { /* full declaration omitted */ };

Description

An ilist node that can access its parent list. Requires \c NodeTy to have \a getParent() to find the parent node, and the\c ParentTy to have \a getSublistAccess() to get a reference to the list.

Declared at: llvm/include/llvm/MC/MCFragment.h:294

Inherits from: MCFragment

Member Variables

private llvm::Align Alignment
The alignment to ensure, in bytes.
private bool EmitNops
Flag to indicate that (optimal) NOPs should be emitted instead of using the provided value. The exact interpretation of this flag is target dependent.
private int64_t Value
Value to use for filling padding bytes.
private unsigned int ValueSize
The size of the integer (in bytes) of \p Value.
private unsigned int MaxBytesToEmit
The maximum number of bytes to emit; if the alignment cannot be satisfied in this width then this fragment is ignored.
private const llvm::MCSubtargetInfo* STI
When emitting Nops some subtargets have specific nop encodings.

Inherited from MCFragment:

protected HasInstructions

Method Overview

Inherited from MCFragment:

Methods

MCAlignFragment(llvm::Align Alignment,
                int64_t Value,
                unsigned int ValueSize,
                unsigned int MaxBytesToEmit,
                llvm::MCSection* Sec = nullptr)

Declared at: llvm/include/llvm/MC/MCFragment.h:317

Parameters

llvm::Align Alignment
int64_t Value
unsigned int ValueSize
unsigned int MaxBytesToEmit
llvm::MCSection* Sec = nullptr

static bool classof(const llvm::MCFragment* F)

Declared at: llvm/include/llvm/MC/MCFragment.h:338

Parameters

const llvm::MCFragment* F

llvm::Align getAlignment() const

Declared at: llvm/include/llvm/MC/MCFragment.h:322

unsigned int getMaxBytesToEmit() const

Declared at: llvm/include/llvm/MC/MCFragment.h:328

const llvm::MCSubtargetInfo* getSubtargetInfo()
    const

Declared at: llvm/include/llvm/MC/MCFragment.h:336

int64_t getValue() const

Declared at: llvm/include/llvm/MC/MCFragment.h:324

unsigned int getValueSize() const

Declared at: llvm/include/llvm/MC/MCFragment.h:326

bool hasEmitNops() const

Declared at: llvm/include/llvm/MC/MCFragment.h:330

void setEmitNops(bool Value,
                 const llvm::MCSubtargetInfo* STI)

Declared at: llvm/include/llvm/MC/MCFragment.h:331

Parameters

bool Value
const llvm::MCSubtargetInfo* STI