Go to the documentation of this file.
91 MCOp = GetSymbolRef(MO,
95 MCOp = GetSymbolRef(MO,
102 if (Subtarget->genExecuteOnly())
128 bool EncodeImms =
false;
129 switch (
MI->getOpcode()) {
158 if (MCOp.
isImm() && EncodeImms) {
173 MI.emitError(
"An attempt to perform XRay instrumentation for a"
174 " Thumb function (not supported). Detected when emitting a sled.");
177 static const int8_t NoopsInSledCount = 6;
@ MO_BlockAddress
Address of a basic block.
ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific in...
@ MO_Immediate
Immediate operand.
This is an optimization pass for GlobalISel generic memory operations.
@ MO_HI16
MO_HI16 - On a symbol operand, this represents a relocation containing higher 16 bit of the address.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static MCOperand createExpr(const MCExpr *Val)
void recordSled(MCSymbol *Sled, const MachineInstr &MI, SledKind Kind, uint8_t Version=0)
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)
Target - Wrapper for Target specific information.
const BlockAddress * getBlockAddress() const
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
void LowerPATCHABLE_FUNCTION_ENTER(const MachineInstr &MI)
const APFloat & getValueAPF() const
Instances of this class represent a single low-level machine instruction.
int64_t getOffset() const
Return the offset from the symbol in this operand.
static const ARMMCExpr * createUpper16(const MCExpr *Expr, MCContext &Ctx)
@ MO_Register
Register operand.
void EmitToStreamer(MCStreamer &S, const MCInst &Inst)
void setOpcode(unsigned Op)
MCSymbol * getSymbol() const
Return the MCSymbol for this basic block.
void LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, ARMAsmPrinter &AP)
int getSOImmVal(unsigned Arg)
getSOImmVal - Given a 32-bit immediate, if it is something that can fit into an shifter_operand immed...
@ MO_GlobalAddress
Address of a global value.
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
MachineOperand class - Representation of each machine instruction operand.
double convertToDouble() const
Converts this APFloat to host double value.
bool isThumbFunction() const
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp)
void addOperand(const MCOperand Op)
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.
MachineOperandType getType() const
getType - Returns the MachineOperandType for this operand.
const ConstantFP * getFPImm() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
MCContext & OutContext
This is the context for the output file that we are streaming.
@ MO_FPImmediate
Floating-point immediate operand.
MCSymbol * GetCPISymbol(unsigned CPID) const override
Return the symbol for the specified constant pool entry.
Register getReg() const
getReg - Returns the register number.
@ 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.
MachineBasicBlock * getMBB() const
static const fltSemantics & IEEEdouble() LLVM_READNONE
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.
MCSymbol * createTempSymbol()
Create a temporary symbol with a unique name.
static MCOperand createDFPImm(uint64_t Val)
unsigned getSubReg() const
static constexpr roundingMode rmTowardZero
@ MO_LO16
MO_LO16 - On a symbol operand, this represents a relocation containing lower 16 bit of the address.
void LowerPATCHABLE_TAIL_CALL(const MachineInstr &MI)
void emitNops(unsigned N)
Emit N NOP instructions.
const MCSubtargetInfo & getSubtargetInfo() const
Return information about subtarget.
@ MO_ExternalSymbol
Name of external global symbol.
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
opStatus convert(const fltSemantics &ToSemantics, roundingMode RM, bool *losesInfo)
const char * getSymbolName() const
static const ARMMCExpr * createLower16(const MCExpr *Expr, MCContext &Ctx)
@ MO_SBREL
MO_SBREL - On a symbol operand, this represents a static base relative relocation.
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_OPTION_MASK
MO_OPTION_MASK - Most flags are mutually exclusive; this mask selects just that part of the flag set.
@ MO_ConstantPoolIndex
Address of indexed Constant in Constant Pool.
void LowerPATCHABLE_FUNCTION_EXIT(const MachineInstr &MI)