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:158

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
  • public void dump_pretty(llvm::raw_ostream & OS, const llvm::MCInstPrinter * Printer = nullptr, llvm::StringRef Separator = " ") 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
  • 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:169

void addOperand(const llvm::MCOperand& Op)

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

Parameters

const llvm::MCOperand& Op

llvm::MCInst::const_iterator begin() const

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

llvm::MCInst::iterator begin()

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

void clear()

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

void dump() const

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

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

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

Parameters

llvm::raw_ostream& OS
llvm::StringRef Name
llvm::StringRef Separator = " "

void dump_pretty(
    llvm::raw_ostream& OS,
    const llvm::MCInstPrinter* Printer = nullptr,
    llvm::StringRef Separator = " ") 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:208

Parameters

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

llvm::MCInst::const_iterator end() const

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

llvm::MCInst::iterator end()

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

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

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

Parameters

llvm::MCInst::iterator I

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

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

Parameters

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

unsigned int getFlags() const

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

llvm::SMLoc getLoc() const

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

unsigned int getNumOperands() const

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

unsigned int getOpcode() const

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

llvm::MCOperand& getOperand(unsigned int i)

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

Parameters

unsigned int i

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

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

Parameters

unsigned int i

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

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

Parameters

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

void print(llvm::raw_ostream& OS) const

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

Parameters

llvm::raw_ostream& OS

void setFlags(unsigned int F)

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

Parameters

unsigned int F

void setLoc(llvm::SMLoc loc)

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

Parameters

llvm::SMLoc loc

void setOpcode(unsigned int Op)

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

Parameters

unsigned int Op

size_t size() const

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