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
- public MCOperand()
- public static llvm::MCOperand createDFPImm(uint64_t Val)
- public static llvm::MCOperand createExpr(const llvm::MCExpr * 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 static llvm::MCOperand createSFPImm(uint32_t Val)
- public void dump() const
- public bool evaluateAsConstantImm(int64_t & Imm) const
- public uint64_t getDFPImm() const
- public const llvm::MCExpr * getExpr() const
- public int64_t getImm() const
- public const llvm::MCInst * getInst() const
- public unsigned int getReg() const
- public uint32_t getSFPImm() const
- public bool isBareSymbolRef() const
- public bool isDFPImm() const
- public bool isExpr() const
- public bool isImm() const
- public bool isInst() const
- public bool isReg() const
- public bool isSFPImm() const
- public bool isValid() const
- public void print(llvm::raw_ostream & OS, const llvm::MCRegisterInfo * RegInfo = nullptr) const
- public void setDFPImm(uint64_t Val)
- 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)
- public void setSFPImm(uint32_t Val)
Methods
¶MCOperand()
MCOperand()
Declared at: llvm/include/llvm/MC/MCInst.h:58
¶static llvm::MCOperand createDFPImm(uint64_t Val)
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)
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)
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)
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)
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)
static llvm::MCOperand createSFPImm(uint32_t Val)
Declared at: llvm/include/llvm/MC/MCInst.h:148
Parameters
- uint32_t Val
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/MC/MCInst.h:177
¶bool evaluateAsConstantImm(int64_t& Imm) const
bool evaluateAsConstantImm(int64_t& Imm) const
Declared at: llvm/include/llvm/MC/MCInst.h:179
Parameters
- int64_t& Imm
¶uint64_t getDFPImm() const
uint64_t getDFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:100
¶const llvm::MCExpr* getExpr() const
const llvm::MCExpr* getExpr() const
Declared at: llvm/include/llvm/MC/MCInst.h:114
¶int64_t getImm() const
int64_t getImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:80
¶const llvm::MCInst* getInst() const
const llvm::MCInst* getInst() const
Declared at: llvm/include/llvm/MC/MCInst.h:124
¶unsigned int getReg() const
unsigned int getReg() const
Description
Returns the register number.
Declared at: llvm/include/llvm/MC/MCInst.h:69
¶uint32_t getSFPImm() const
uint32_t getSFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:90
¶bool isBareSymbolRef() const
bool isBareSymbolRef() const
Declared at: llvm/include/llvm/MC/MCInst.h:178
¶bool isDFPImm() const
bool isDFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:64
¶bool isExpr() const
bool isExpr() const
Declared at: llvm/include/llvm/MC/MCInst.h:65
¶bool isImm() const
bool isImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:62
¶bool isInst() const
bool isInst() const
Declared at: llvm/include/llvm/MC/MCInst.h:66
¶bool isReg() const
bool isReg() const
Declared at: llvm/include/llvm/MC/MCInst.h:61
¶bool isSFPImm() const
bool isSFPImm() const
Declared at: llvm/include/llvm/MC/MCInst.h:63
¶bool isValid() const
bool isValid() const
Declared at: llvm/include/llvm/MC/MCInst.h:60
¶void print(llvm::raw_ostream& OS,
const llvm::MCRegisterInfo* RegInfo =
nullptr) const
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)
void setDFPImm(uint64_t Val)
Declared at: llvm/include/llvm/MC/MCInst.h:105
Parameters
- uint64_t Val
¶void setExpr(const llvm::MCExpr* 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)
void setFPImm(double Val)
Declared at: llvm/include/llvm/MC/MCInst.h:109
Parameters
- double Val
¶void setImm(int64_t 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)
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)
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)
void setSFPImm(uint32_t Val)
Declared at: llvm/include/llvm/MC/MCInst.h:95
Parameters
- uint32_t Val