LLVM API Documentation

llvm::MCOperand Class Reference

#include <MCInst.h>

Collaboration diagram for llvm::MCOperand:
[legend]

List of all members.

Public Member Functions

 MCOperand ()
 MCOperand (const MCOperand &RHS)
bool isValid () const
bool isReg () const
bool isImm () const
bool isMBBLabel () const
bool isMCValue () const
unsigned getReg () const
 getReg - Returns the register number.
void setReg (unsigned Reg)
 setReg - Set the register number.
int64_t getImm () const
void setImm (int64_t Val)
unsigned getMBBLabelFunction () const
unsigned getMBBLabelBlock () const
const MCValue & getMCValue () const
void setMCValue (const MCValue &Val)

Static Public Member Functions

static MCOperand CreateReg (unsigned Reg)
static MCOperand CreateImm (int64_t Val)
static MCOperand CreateMBBLabel (unsigned Fn, unsigned MBB)
static MCOperand CreateMCValue (const MCValue &Val)


Detailed Description

MCOperand - Instances of this class represent operands of the MCInst class. This is a simple discriminated union.

Definition at line 28 of file MCInst.h.


Constructor & Destructor Documentation

llvm::MCOperand::MCOperand (  )  [inline]

Definition at line 49 of file MCInst.h.

llvm::MCOperand::MCOperand ( const MCOperand &  RHS  )  [inline]

Definition at line 50 of file MCInst.h.


Member Function Documentation

bool llvm::MCOperand::isValid (  )  const [inline]

Definition at line 52 of file MCInst.h.

bool llvm::MCOperand::isReg (  )  const [inline]

bool llvm::MCOperand::isImm (  )  const [inline]

bool llvm::MCOperand::isMBBLabel (  )  const [inline]

bool llvm::MCOperand::isMCValue (  )  const [inline]

unsigned llvm::MCOperand::getReg (  )  const [inline]

void llvm::MCOperand::setReg ( unsigned  Reg  )  [inline]

setReg - Set the register number.

Definition at line 65 of file MCInst.h.

References isReg(), and RegVal.

Referenced by lower_lea64_32mem().

int64_t llvm::MCOperand::getImm (  )  const [inline]

void llvm::MCOperand::setImm ( int64_t  Val  )  [inline]

Definition at line 74 of file MCInst.h.

References ImmVal, and isImm().

unsigned llvm::MCOperand::getMBBLabelFunction (  )  const [inline]

Definition at line 79 of file MCInst.h.

References isMBBLabel(), and MBBLabel.

Referenced by operator<<(), and llvm::X86ATTAsmPrinter::print_pcrel_imm().

unsigned llvm::MCOperand::getMBBLabelBlock (  )  const [inline]

Definition at line 83 of file MCInst.h.

References isMBBLabel(), and MBBLabel.

Referenced by operator<<(), and llvm::X86ATTAsmPrinter::print_pcrel_imm().

const MCValue& llvm::MCOperand::getMCValue (  )  const [inline]

void llvm::MCOperand::setMCValue ( const MCValue &  Val  )  [inline]

Definition at line 92 of file MCInst.h.

References isMCValue(), and MCValueVal.

static MCOperand llvm::MCOperand::CreateReg ( unsigned  Reg  )  [inline, static]

Definition at line 97 of file MCInst.h.

References Kind, Op, and RegVal.

Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().

static MCOperand llvm::MCOperand::CreateImm ( int64_t  Val  )  [inline, static]

Definition at line 103 of file MCInst.h.

References ImmVal, Kind, and Op.

Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().

static MCOperand llvm::MCOperand::CreateMBBLabel ( unsigned  Fn,
unsigned  MBB 
) [inline, static]

Definition at line 109 of file MCInst.h.

References Kind, MBBLabel, and Op.

Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().

static MCOperand llvm::MCOperand::CreateMCValue ( const MCValue &  Val  )  [inline, static]


Member Data Documentation

Definition at line 39 of file MCInst.h.

Referenced by CreateReg(), getReg(), and setReg().

Definition at line 40 of file MCInst.h.

Referenced by CreateImm(), getImm(), and setImm().

Definition at line 41 of file MCInst.h.

Referenced by CreateMCValue(), getMCValue(), and setMCValue().

Definition at line 43 of file MCInst.h.

Definition at line 44 of file MCInst.h.

struct { ... } llvm::MCOperand::MBBLabel


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