@ MO_Immediate
Immediate operand.
This is an optimization pass for GlobalISel generic memory operations.
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)
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
Instances of this class represent a single low-level machine instruction.
int64_t getOffset() const
Return the offset from the symbol in this operand.
@ MO_Register
Register operand.
void setOpcode(unsigned Op)
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const
@ MO_GlobalAddress
Address of a global value.
MachineOperand class - Representation of each machine instruction operand.
MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
void addOperand(const MCOperand Op)
virtual void print(raw_ostream &OS, const Module *M) const
print - Print out the internal state of the pass.
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
Representation of each machine instruction.
MCSymbol * getSymbol(const GlobalValue *GV) const
MCSymbol * GetExternalSymbolSymbol(StringRef Sym) const
Return the MCSymbol for the specified ExternalSymbol.
void Lower(const MachineInstr *MI, MCInst &OutMI) 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.
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.
Base class for the full range of assembler expressions which are needed for parsing.