class MCInst

Declaration

class MCInst { /* full declaration omitted */ };

Description

Instances of this class represent a single low-level machine instruction.

Declared at: llvm/include/llvm/MC/MCInst.h:184

Member Variables

private unsigned int Opcode = 0
private unsigned int Flags = 0
private llvm::SMLoc Loc
private SmallVector<llvm::MCOperand, 8> Operands

Method Overview

  • public MCInst()
  • public void addOperand(const llvm::MCOperand Op)
  • public llvm::MCInst::const_iterator begin() const
  • public llvm::MCInst::iterator begin()
  • public void clear()
  • public void dump() const
  • public void dump_pretty(llvm::raw_ostream & OS, llvm::StringRef Name, llvm::StringRef Separator = " ", const llvm::MCRegisterInfo * RegInfo = nullptr) const
  • public void dump_pretty(llvm::raw_ostream & OS, const llvm::MCInstPrinter * Printer = nullptr, llvm::StringRef Separator = " ", const llvm::MCRegisterInfo * RegInfo = nullptr) const
  • public llvm::MCInst::const_iterator end() const
  • public llvm::MCInst::iterator end()
  • public void erase(llvm::MCInst::iterator I)
  • public void erase(llvm::MCInst::iterator First, llvm::MCInst::iterator Last)
  • public unsigned int getFlags() const
  • public llvm::SMLoc getLoc() const
  • public unsigned int getNumOperands() const
  • public unsigned int getOpcode() const
  • public llvm::MCOperand & getOperand(unsigned int i)
  • public const llvm::MCOperand & getOperand(unsigned int i) const
  • public llvm::MCInst::iterator insert(llvm::MCInst::iterator I, const llvm::MCOperand & Op)
  • public void print(llvm::raw_ostream & OS, const llvm::MCRegisterInfo * RegInfo = nullptr) const
  • public void setFlags(unsigned int F)
  • public void setLoc(llvm::SMLoc loc)
  • public void setOpcode(unsigned int Op)
  • public size_t size() const

Methods

MCInst()

Declared at: llvm/include/llvm/MC/MCInst.h:195

void addOperand(const llvm::MCOperand Op)

Declared at: llvm/include/llvm/MC/MCInst.h:210

Parameters

const llvm::MCOperand Op

llvm::MCInst::const_iterator begin() const

Declared at: llvm/include/llvm/MC/MCInst.h:220

llvm::MCInst::iterator begin()

Declared at: llvm/include/llvm/MC/MCInst.h:219

void clear()

Declared at: llvm/include/llvm/MC/MCInst.h:215

void dump() const

Declared at: llvm/include/llvm/MC/MCInst.h:229

void dump_pretty(llvm::raw_ostream& OS,
                 llvm::StringRef Name,
                 llvm::StringRef Separator = " ",
                 const llvm::MCRegisterInfo*
                     RegInfo = nullptr) const

Declared at: llvm/include/llvm/MC/MCInst.h:237

Parameters

llvm::raw_ostream& OS
llvm::StringRef Name
llvm::StringRef Separator = " "
const llvm::MCRegisterInfo* RegInfo = nullptr

void dump_pretty(
    llvm::raw_ostream& OS,
    const llvm::MCInstPrinter* Printer = nullptr,
    llvm::StringRef Separator = " ",
    const llvm::MCRegisterInfo* RegInfo =
        nullptr) const

Description

Dump the MCInst as prettily as possible using the additional MC structures, if given. Operators are separated by the \p Separator string.

Declared at: llvm/include/llvm/MC/MCInst.h:234

Parameters

llvm::raw_ostream& OS
const llvm::MCInstPrinter* Printer = nullptr
llvm::StringRef Separator = " "
const llvm::MCRegisterInfo* RegInfo = nullptr

llvm::MCInst::const_iterator end() const

Declared at: llvm/include/llvm/MC/MCInst.h:222

llvm::MCInst::iterator end()

Declared at: llvm/include/llvm/MC/MCInst.h:221

void erase(llvm::MCInst::iterator I)

Declared at: llvm/include/llvm/MC/MCInst.h:216

Parameters

llvm::MCInst::iterator I

void erase(llvm::MCInst::iterator First,
           llvm::MCInst::iterator Last)

Declared at: llvm/include/llvm/MC/MCInst.h:217

Parameters

llvm::MCInst::iterator First
llvm::MCInst::iterator Last

unsigned int getFlags() const

Declared at: llvm/include/llvm/MC/MCInst.h:201

llvm::SMLoc getLoc() const

Declared at: llvm/include/llvm/MC/MCInst.h:204

unsigned int getNumOperands() const

Declared at: llvm/include/llvm/MC/MCInst.h:208

unsigned int getOpcode() const

Declared at: llvm/include/llvm/MC/MCInst.h:198

llvm::MCOperand& getOperand(unsigned int i)

Declared at: llvm/include/llvm/MC/MCInst.h:207

Parameters

unsigned int i

const llvm::MCOperand& getOperand(
    unsigned int i) const

Declared at: llvm/include/llvm/MC/MCInst.h:206

Parameters

unsigned int i

llvm::MCInst::iterator insert(
    llvm::MCInst::iterator I,
    const llvm::MCOperand& Op)

Declared at: llvm/include/llvm/MC/MCInst.h:224

Parameters

llvm::MCInst::iterator I
const llvm::MCOperand& Op

void print(llvm::raw_ostream& OS,
           const llvm::MCRegisterInfo* RegInfo =
               nullptr) const

Declared at: llvm/include/llvm/MC/MCInst.h:228

Parameters

llvm::raw_ostream& OS
const llvm::MCRegisterInfo* RegInfo = nullptr

void setFlags(unsigned int F)

Declared at: llvm/include/llvm/MC/MCInst.h:200

Parameters

unsigned int F

void setLoc(llvm::SMLoc loc)

Declared at: llvm/include/llvm/MC/MCInst.h:203

Parameters

llvm::SMLoc loc

void setOpcode(unsigned int Op)

Declared at: llvm/include/llvm/MC/MCInst.h:197

Parameters

unsigned int Op

size_t size() const

Declared at: llvm/include/llvm/MC/MCInst.h:218