Go to the documentation of this file.
20 #define DEBUG_TYPE "csky-mcinst-lower"
CSKYMCInstLower(MCContext &Ctx, AsmPrinter &Printer)
@ MO_BlockAddress
Address of a basic block.
@ 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)
Context object for machine code objects.
const BlockAddress * getBlockAddress() const
static const CSKYMCExpr * create(const MCExpr *Expr, VariantKind Kind, MCContext &Ctx)
MCOperand lowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const
Instances of this class represent a single low-level machine instruction.
MCSymbol * getMCSymbol() const
@ 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.
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
MachineOperand class - Representation of each machine instruction operand.
void addOperand(const MCOperand Op)
void Lower(const MachineInstr *MI, MCInst &OutMI) const
unsigned getTargetFlags() const
virtual MCSymbol * GetCPISymbol(unsigned CPID) const
Return the symbol for the specified constant pool entry.
Representation of each machine instruction.
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
@ MO_MCSymbol
MCSymbol reference (for debug/eh info)
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.
@ MO_JumpTableIndex
Address of indexed Jump Table for switch.
MCSymbol * GetExternalSymbolSymbol(StringRef Sym) const
Return the MCSymbol for the specified ExternalSymbol.
MachineBasicBlock * getMBB() const
Memory true print Memory SSA Printer
MCSymbol * GetJTISymbol(unsigned JTID, bool isLinkerPrivate=false) const
Return the symbol for the specified jump table entry.
#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.
Base class for the full range of assembler expressions which are needed for parsing.
@ MO_ConstantPoolIndex
Address of indexed Constant in Constant Pool.