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
- public MCOperand()
- public static llvm::MCOperand createExpr(const llvm::MCExpr * Val)
- public static llvm::MCOperand createFPImm(double Val)
- public static llvm::MCOperand createImm(int64_t Val)
- public static llvm::MCOperand createInst(const llvm::MCInst * Val)
- public static llvm::MCOperand createReg(unsigned int Reg)
- public void dump() const
- public bool evaluateAsConstantImm(int64_t & Imm) const
- public const llvm::MCExpr * getExpr() const
- public double getFPImm() const
- public int64_t getImm() const
- public const llvm::MCInst * getInst() const
- public unsigned int getReg() const
- public bool isBareSymbolRef() const
- public bool isExpr() const
- public bool isFPImm() const
- public bool isImm() const
- public bool isInst() const
- public bool isReg() const
- public bool isValid() const
- public void print(llvm::raw_ostream & OS) const
- public void setExpr(const llvm::MCExpr * Val)
- public void setFPImm(double Val)
- public void setImm(int64_t Val)
- public void setInst(const llvm::MCInst * Val)
- public void setReg(unsigned int Reg)
Methods
¶MCOperand()
MCOperand()
Declared at: llvm/include/llvm/MC/MCInst.h:54
¶static llvm::MCOperand createExpr(
const llvm::MCExpr* Val)
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)
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)
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)
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)
static llvm::MCOperand createReg(unsigned int Reg)
Declared at: llvm/include/llvm/MC/MCInst.h:115
Parameters
- unsigned int Reg
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/MC/MCInst.h:151
¶bool evaluateAsConstantImm(int64_t& Imm) const
bool evaluateAsConstantImm(int64_t& Imm) const
Declared at: llvm/include/llvm/MC/MCInst.h:153
Parameters
- int64_t& Imm
¶const llvm::MCExpr* getExpr() const
const llvm::MCExpr* getExpr() const
Declared at: llvm/include/llvm/MC/MCInst.h:95
¶double getFPImm() const
double getFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:85
¶int64_t getImm() const
int64_t getImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:75
¶const llvm::MCInst* getInst() const
const llvm::MCInst* getInst() const
Declared at: llvm/include/llvm/MC/MCInst.h:105
¶unsigned int getReg() const
unsigned int getReg() const
Description
Returns the register number.
Declared at: llvm/include/llvm/MC/MCInst.h:64
¶bool isBareSymbolRef() const
bool isBareSymbolRef() const
Declared at: llvm/include/llvm/MC/MCInst.h:152
¶bool isExpr() const
bool isExpr() const
Declared at: llvm/include/llvm/MC/MCInst.h:60
¶bool isFPImm() const
bool isFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:59
¶bool isImm() const
bool isImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:58
¶bool isInst() const
bool isInst() const
Declared at: llvm/include/llvm/MC/MCInst.h:61
¶bool isReg() const
bool isReg() const
Declared at: llvm/include/llvm/MC/MCInst.h:57
¶bool isValid() const
bool isValid() const
Declared at: llvm/include/llvm/MC/MCInst.h:56
¶void print(llvm::raw_ostream& OS) const
void print(llvm::raw_ostream& OS) const
Declared at: llvm/include/llvm/MC/MCInst.h:150
Parameters
¶void setExpr(const llvm::MCExpr* Val)
void setExpr(const llvm::MCExpr* Val)
Declared at: llvm/include/llvm/MC/MCInst.h:100
Parameters
- const llvm::MCExpr* Val
¶void setFPImm(double Val)
void setFPImm(double Val)
Declared at: llvm/include/llvm/MC/MCInst.h:90
Parameters
- double Val
¶void setImm(int64_t 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)
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)
void setReg(unsigned int Reg)
Description
Set the register number.
Declared at: llvm/include/llvm/MC/MCInst.h:70
Parameters
- unsigned int Reg