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

Member Variables

private llvm::MCOperand::MachineOperandType Kind = kInvalid
private anonymous struct / union

Method Overview

Methods

MCOperand()

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

static llvm::MCOperand createDFPImm(uint64_t Val)

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

Parameters

uint64_t Val

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

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

Parameters

const llvm::MCExpr* Val

static llvm::MCOperand createImm(int64_t Val)

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

Parameters

int64_t Val

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

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

Parameters

const llvm::MCInst* Val

static llvm::MCOperand createReg(unsigned int Reg)

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

Parameters

unsigned int Reg

static llvm::MCOperand createSFPImm(uint32_t Val)

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

Parameters

uint32_t Val

void dump() const

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

bool evaluateAsConstantImm(int64_t& Imm) const

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

Parameters

int64_t& Imm

uint64_t getDFPImm() const

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

const llvm::MCExpr* getExpr() const

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

int64_t getImm() const

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

const llvm::MCInst* getInst() const

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

unsigned int getReg() const

Description

Returns the register number.

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

uint32_t getSFPImm() const

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

bool isBareSymbolRef() const

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

bool isDFPImm() const

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

bool isExpr() const

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

bool isImm() const

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

bool isInst() const

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

bool isReg() const

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

bool isSFPImm() const

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

bool isValid() const

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

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

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

Parameters

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

void setDFPImm(uint64_t Val)

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

Parameters

uint64_t Val

void setExpr(const llvm::MCExpr* Val)

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

Parameters

const llvm::MCExpr* Val

void setFPImm(double Val)

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

Parameters

double Val

void setImm(int64_t Val)

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

Parameters

int64_t Val

void setInst(const llvm::MCInst* Val)

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

Parameters

const llvm::MCInst* Val

void setReg(unsigned int Reg)

Description

Set the register number.

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

Parameters

unsigned int Reg

void setSFPImm(uint32_t Val)

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

Parameters

uint32_t Val