MCSymbol * GetGlobalAddressSymbol(const MachineOperand &MO) const
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)
Address of indexed Jump Table for switch.
MCSymbol * GetJumpTableSymbol(const MachineOperand &MO) const
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const
A raw_ostream that writes to an SmallVector or SmallString.
MachineBasicBlock reference.
unsigned getFunctionNumber() const
Return a unique ID for the current function.
const char * getSymbolName() const
static const LanaiMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)
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.
StringRef getPrivateGlobalPrefix() const
unsigned getNumOperands() const
Access to explicit operands of the instruction.
MCSymbol * GetConstantPoolIndexSymbol(const MachineOperand &MO) const
static const MCBinaryExpr * createAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
Instances of this class represent a single low-level machine instruction.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
Address of a global value.
unsigned getTargetFlags() const
const MCAsmInfo * MAI
Target Asm Printer information.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
const MachineOperand & getOperand(unsigned i) const
Address of a basic block.
int64_t getOffset() const
Return the offset from the symbol in this operand.
MCSymbol * getSymbol() const
Return the MCSymbol for this basic block.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void setOpcode(unsigned Op)
void Lower(const MachineInstr *MI, MCInst &OutMI) const
MCSymbol * GetBlockAddressSymbol(const MachineOperand &MO) const
MachineOperand class - Representation of each machine instruction operand.
MCSymbol * GetExternalSymbolSymbol(const MachineOperand &MO) const
void dump(const TargetInstrInfo *TII=nullptr) const
StringRef str() const
Explicit conversion to StringRef.
Representation of each machine instruction.
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
unsigned getReg() const
getReg - Returns the register number.
void addOperand(const MCOperand &Op)
const BlockAddress * getBlockAddress() const
Address of indexed Constant in Constant Pool.
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)
static const MCConstantExpr * create(int64_t Value, MCContext &Ctx)