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:
Method Overview
- public MCAlignFragment(llvm::Align Alignment, int64_t Value, unsigned int ValueSize, unsigned int MaxBytesToEmit, llvm::MCSection * Sec = nullptr)
- public static bool classof(const llvm::MCFragment * F)
- public llvm::Align getAlignment() const
- public unsigned int getMaxBytesToEmit() const
- public const llvm::MCSubtargetInfo * getSubtargetInfo() const
- public int64_t getValue() const
- public unsigned int getValueSize() const
- public bool hasEmitNops() const
- public void setEmitNops(bool Value, const llvm::MCSubtargetInfo * STI)
Inherited from MCFragment:
- public destroy
- public dump
- public getAtom
- public getKind
- public getLayoutOrder
- public getParent
- public getSubsectionNumber
- public hasInstructions
- public setAtom
- public setLayoutOrder
- public setParent
- public setSubsectionNumber
Methods
¶MCAlignFragment(llvm::Align Alignment,
int64_t Value,
unsigned int ValueSize,
unsigned int MaxBytesToEmit,
llvm::MCSection* Sec = nullptr)
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)
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
llvm::Align getAlignment() const
Declared at: llvm/include/llvm/MC/MCFragment.h:322
¶unsigned int getMaxBytesToEmit() const
unsigned int getMaxBytesToEmit() const
Declared at: llvm/include/llvm/MC/MCFragment.h:328
¶const llvm::MCSubtargetInfo* getSubtargetInfo()
const
const llvm::MCSubtargetInfo* getSubtargetInfo()
const
Declared at: llvm/include/llvm/MC/MCFragment.h:336
¶int64_t getValue() const
int64_t getValue() const
Declared at: llvm/include/llvm/MC/MCFragment.h:324
¶unsigned int getValueSize() const
unsigned int getValueSize() const
Declared at: llvm/include/llvm/MC/MCFragment.h:326
¶bool hasEmitNops() const
bool hasEmitNops() const
Declared at: llvm/include/llvm/MC/MCFragment.h:330
¶void setEmitNops(bool Value,
const llvm::MCSubtargetInfo* STI)
void setEmitNops(bool Value,
const llvm::MCSubtargetInfo* STI)
Declared at: llvm/include/llvm/MC/MCFragment.h:331
Parameters
- bool Value
- const llvm::MCSubtargetInfo* STI