Go to the documentation of this file.
100 for (
unsigned i = 0,
e =
MI->getNumOperands();
i !=
e; ++
i) {
@ MO_BlockAddress
Address of a basic block.
@ MO_Immediate
Immediate operand.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static MCOperand createExpr(const MCExpr *Val)
const GlobalValue * getGlobal() const
static MCOperand createImm(int64_t Val)
const BlockAddress * getBlockAddress() const
Instances of this class represent a single low-level machine instruction.
@ MO_Register
Register operand.
void setOpcode(unsigned Op)
MCSymbol * getSymbol() const
Return the MCSymbol for this basic block.
@ MO_GlobalAddress
Address of a global value.
static const SparcMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)
MachineOperand class - Representation of each machine instruction operand.
void addOperand(const MCOperand Op)
unsigned getTargetFlags() const
virtual MCSymbol * GetCPISymbol(unsigned CPID) const
Return the symbol for the specified constant pool entry.
static MCOperand LowerOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP)
Representation of each machine instruction.
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
void LowerSparcMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP)
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
MCSymbol * getSymbol(const GlobalValue *GV) const
MCContext & OutContext
This is the context for the output file that we are streaming.
Register getReg() const
getReg - Returns the register number.
Represent a reference to a symbol from inside an expression.
MCSymbol * GetExternalSymbolSymbol(StringRef Sym) const
Return the MCSymbol for the specified ExternalSymbol.
MachineBasicBlock * getMBB() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static MCOperand createReg(unsigned Reg)
@ MO_MachineBasicBlock
MachineBasicBlock reference.
@ MO_ExternalSymbol
Name of external global symbol.
This class is intended to be used as a driving class for all asm writers.
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
const char * getSymbolName() const
Instances of this class represent operands of the MCInst class.
@ MO_RegisterMask
Mask of preserved registers.
@ MO_ConstantPoolIndex
Address of indexed Constant in Constant Pool.
static MCOperand LowerSymbolOperand(const MachineInstr *MI, const MachineOperand &MO, AsmPrinter &AP)