LLVM API Documentation
#include <MCInst.h>
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) |
Definition at line 28 of file MCInst.h.
| llvm::MCOperand::MCOperand | ( | const MCOperand & | RHS | ) | [inline] |
| bool llvm::MCOperand::isReg | ( | ) | const [inline] |
Definition at line 53 of file MCInst.h.
Referenced by getReg(), lower_lea64_32mem(), operator<<(), llvm::X86ATTAsmPrinter::printOperand(), and setReg().
| bool llvm::MCOperand::isImm | ( | ) | const [inline] |
Definition at line 54 of file MCInst.h.
Referenced by getImm(), operator<<(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printOperand(), and setImm().
| bool llvm::MCOperand::isMBBLabel | ( | ) | const [inline] |
Definition at line 55 of file MCInst.h.
Referenced by getMBBLabelBlock(), getMBBLabelFunction(), operator<<(), and llvm::X86ATTAsmPrinter::print_pcrel_imm().
| bool llvm::MCOperand::isMCValue | ( | ) | const [inline] |
Definition at line 56 of file MCInst.h.
Referenced by getMCValue(), operator<<(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printOperand(), and setMCValue().
| unsigned llvm::MCOperand::getReg | ( | ) | const [inline] |
getReg - Returns the register number.
Definition at line 59 of file MCInst.h.
References isReg(), and RegVal.
Referenced by lower_lea64_32mem(), operator<<(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printMemReference(), and llvm::X86ATTAsmPrinter::printOperand().
| 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] |
Definition at line 70 of file MCInst.h.
References ImmVal, and isImm().
Referenced by operator<<(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printOperand(), and llvm::X86ATTAsmPrinter::printSSECC().
| void llvm::MCOperand::setImm | ( | int64_t | Val | ) | [inline] |
| 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] |
Definition at line 88 of file MCInst.h.
References isMCValue(), and MCValueVal.
Referenced by operator<<(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::printLeaMemReference(), and llvm::X86ATTAsmPrinter::printOperand().
| void llvm::MCOperand::setMCValue | ( | const MCValue & | Val | ) | [inline] |
| static MCOperand llvm::MCOperand::CreateImm | ( | int64_t | Val | ) | [inline, static] |
Definition at line 116 of file MCInst.h.
References Kind, MCValueVal, and Op.
Referenced by llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), and llvm::X86ATTAsmPrinter::printMachineInstruction().
| int64_t llvm::MCOperand::ImmVal |
Definition at line 41 of file MCInst.h.
Referenced by CreateMCValue(), getMCValue(), and setMCValue().
| struct { ... } llvm::MCOperand::MBBLabel |
Referenced by CreateMBBLabel(), getMBBLabelBlock(), and getMBBLabelFunction().