Go to the documentation of this file.
112 #define GET_REGINFO_ENUM
113 #include "MSP430GenRegisterInfo.inc"
120 switch (MO.getType()) {
126 if (MO.isImplicit())
continue;
134 MO.getMBB()->getSymbol(), Ctx));
void Lower(const MachineInstr *MI, MCInst &OutMI) const
@ 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 ...
A parsed version of the target data layout string in and methods for querying it.
static MCOperand createExpr(const MCExpr *Val)
const GlobalValue * getGlobal() const
static MCOperand createImm(int64_t Val)
static const MCConstantExpr * create(int64_t Value, MCContext &Ctx, bool PrintInHex=false, unsigned SizeInBytes=0)
const BlockAddress * getBlockAddress() const
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
MCSymbol * GetConstantPoolIndexSymbol(const MachineOperand &MO) const
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)
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
@ MO_GlobalAddress
Address of a global value.
MachineOperand class - Representation of each machine instruction operand.
MCSymbol * GetBlockAddressSymbol(const MachineOperand &MO) const
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) 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.
unsigned getTargetFlags() const
Representation of each machine instruction.
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
MCSymbol * getSymbol(const GlobalValue *GV) const
@ MO_JumpTableIndex
Address of indexed Jump Table for switch.
static const MCBinaryExpr * createAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
MCSymbol * GetExternalSymbolSymbol(StringRef Sym) const
Return the MCSymbol for the specified ExternalSymbol.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static MCOperand createReg(unsigned Reg)
@ MO_MachineBasicBlock
MachineBasicBlock reference.
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
@ MO_ExternalSymbol
Name of external global symbol.
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
const char * getSymbolName() const
A raw_ostream that writes to an SmallVector or SmallString.
const DataLayout & getDataLayout() const
Return information about data layout.
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
Instances of this class represent operands of the MCInst class.
@ MO_RegisterMask
Mask of preserved registers.
unsigned getFunctionNumber() const
Return a unique ID for the current function.
Base class for the full range of assembler expressions which are needed for parsing.
MCSymbol * GetJumpTableSymbol(const MachineOperand &MO) const
@ MO_ConstantPoolIndex
Address of indexed Constant in Constant Pool.