class MCOperand

Declaration

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

Description

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

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

Method Overview

Methods

MCOperand()

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

static llvm::MCOperand createExpr(
    const llvm::MCExpr* Val)

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

Parameters

const llvm::MCExpr* Val

static llvm::MCOperand createFPImm(double Val)

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

Parameters

double Val

static llvm::MCOperand createImm(int64_t Val)

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

Parameters

int64_t Val

static llvm::MCOperand createInst(
    const llvm::MCInst* Val)

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

Parameters

const llvm::MCInst* Val

static llvm::MCOperand createReg(unsigned int Reg)

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

Parameters

unsigned int Reg

void dump() const

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

bool evaluateAsConstantImm(int64_t& Imm) const

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

Parameters

int64_t& Imm

const llvm::MCExpr* getExpr() const

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

double getFPImm() const

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

int64_t getImm() const

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

const llvm::MCInst* getInst() const

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

unsigned int getReg() const

Description

Returns the register number.

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

bool isBareSymbolRef() const

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

bool isExpr() const

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

bool isFPImm() const

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

bool isImm() const

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

bool isInst() const

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

bool isReg() const

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

bool isValid() const

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

void print(llvm::raw_ostream& OS) const

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

Parameters

llvm::raw_ostream& OS

void setExpr(const llvm::MCExpr* Val)

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

Parameters

const llvm::MCExpr* Val

void setFPImm(double Val)

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

Parameters

double Val

void setImm(int64_t Val)

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

Parameters

int64_t Val

void setInst(const llvm::MCInst* Val)

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

Parameters

const llvm::MCInst* Val

void setReg(unsigned int Reg)

Description

Set the register number.

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

Parameters

unsigned int Reg