Go to the documentation of this file.
99 if (
MI->getOpcode() == Hexagon::ENDLOOP0) {
103 if (
MI->getOpcode() == Hexagon::ENDLOOP1) {
107 if (
MI->getOpcode() == Hexagon::PATCHABLE_FUNCTION_ENTER) {
111 if (
MI->getOpcode() == Hexagon::PATCHABLE_FUNCTION_EXIT) {
115 if (
MI->getOpcode() == Hexagon::PATCHABLE_TAIL_CALL) {
123 "MCI opcode should have been set on construction");
129 switch (MO.getType()) {
142 APFloat Val = MO.getFPImm()->getValueAPF();
@ MO_BlockAddress
Address of a basic block.
void setMustExtend(MCExpr const &Expr, bool Val=true)
@ 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)
Context object for machine code objects.
static const MCConstantExpr * create(int64_t Value, MCContext &Ctx, bool PrintInHex=false, unsigned SizeInBytes=0)
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
void extendIfNeeded(MCContext &Context, MCInstrInfo const &MCII, MCInst &MCB, MCInst const &MCI)
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
void setInnerLoop(MCInst &MCI)
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_GOT
MO_GOT - Indicates a GOT-relative relocation.
@ MO_Register
Register operand.
void setOpcode(unsigned Op)
print alias Alias Set Printer
void HexagonLowerToMC(const MCInstrInfo &MCII, const MachineInstr *MI, MCInst &MCB, HexagonAsmPrinter &AP)
@ MO_GlobalAddress
Address of a global value.
static HexagonMCExpr * create(MCExpr const *Expr, MCContext &Ctx)
MCInst * createMCInst()
Create and return a new MC instruction.
void EmitSled(const MachineInstr &MI, SledKind Kind)
MachineOperand class - Representation of each machine instruction operand.
APInt bitcastToAPInt() const
static MCOperand createInst(const MCInst *Val)
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
virtual MCSymbol * GetCPISymbol(unsigned CPID) const
Return the symbol for the specified constant pool entry.
Representation of each machine instruction.
@ MO_PCREL
MO_PCREL - On a symbol operand, indicates a PC-relative relocation Used for computing a global addres...
const uint64_t * getRawData() const
This function returns a pointer to the internal storage of the APInt.
void HexagonProcessInstruction(MCInst &Inst, const MachineInstr &MBB)
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
MCSymbol * getSymbol(const GlobalValue *GV) const
MCContext & OutContext
This is the context for the output file that we are streaming.
@ MO_FPImmediate
Floating-point immediate operand.
@ 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.
static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, HexagonAsmPrinter &Printer, bool MustExtend)
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.
void setOuterLoop(MCInst &MCI)
Interface to description of machine instruction set.
@ MO_ExternalSymbol
Name of external global symbol.
unsigned getOpcode() const
static const MCSymbolRefExpr * create(const MCSymbol *Symbol, MCContext &Ctx)
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.