raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
const GlobalValue * getGlobal() const
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
MCSymbol * getSymbol(const GlobalValue *GV) const
MachineBasicBlock * getMBB() const
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static MCOperand createExpr(const MCExpr *Val)
void Lower(const MachineInstr *MI, MCInst &OutMI) const
MachineBasicBlock reference.
const char * getSymbolName() const
void print(raw_ostream &OS, bool SkipOpers=false, bool SkipDebugLoc=false, const TargetInstrInfo *TII=nullptr) const
Debugging supportPrint this MI to OS.
Mask of preserved registers.
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
static MCOperand createReg(unsigned Reg)
Base class for the full range of assembler expressions which are needed for parsing.
Name of external global symbol.
unsigned getNumOperands() const
Access to explicit operands of the instruction.
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
Instances of this class represent a single low-level machine instruction.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const
Address of a global value.
const MachineOperand & getOperand(unsigned i) const
int64_t getOffset() const
Return the offset from the symbol in this operand.
MCSymbol * getSymbol() const
Return the MCSymbol for this basic block.
void setOpcode(unsigned Op)
MachineOperand class - Representation of each machine instruction operand.
llvm_unreachable("Unknown RegBank!")
Representation of each machine instruction.
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
unsigned getReg() const
getReg - Returns the register number.
MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
void addOperand(const MCOperand &Op)
Instances of this class represent operands of the MCInst class.
MCSymbol * GetExternalSymbolSymbol(StringRef Sym) const
Return the MCSymbol for the specified ExternalSymbol.
static MCOperand createImm(int64_t Val)