42 lowerOperand(MO, MCOp);
48 R600_MC::verifyInstructionPredicates(
MI->getOpcode(),
52 R600MCInstLower MCInstLowering(
OutContext, STI, *
this);
56 LLVMContext &
C =
MI->getParent()->getParent()->getFunction().getContext();
57 C.emitError(
"Illegal instruction detected: " + Err);
70 MCInstLowering.lower(
MI, TmpInst);
Header of lower AMDGPU MachineInstrs to their corresponding MCInst.
R600 Assembly printer class.
Provides R600 specific target descriptions.
AMDGPU R600 specific subclass of TargetSubtarget.
static SDValue lowerAddrSpaceCast(SDValue Op, SelectionDAG &DAG)
void lower(const MachineInstr *MI, MCInst &OutMI) const
Lower a MachineInstr to an MCInst.
This class is intended to be used as a driving class for all asm writers.
void EmitToStreamer(MCStreamer &S, const MCInst &Inst)
TargetMachine & TM
Target machine description.
MachineFunction * MF
The current machine function.
MCContext & OutContext
This is the context for the output file that we are streaming.
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
virtual const MCExpr * lowerConstant(const Constant *CV)
Lower the specified LLVM Constant to an MCExpr.
const MCSubtargetInfo & getSubtargetInfo() const
Return information about subtarget.
This is an important base class in LLVM.
This is an important class for using LLVM in a threaded context.
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
Instances of this class represent a single low-level machine instruction.
void addOperand(const MCOperand Op)
void setOpcode(unsigned Op)
Instances of this class represent operands of the MCInst class.
instr_iterator instr_end()
Instructions::const_iterator const_instr_iterator
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
virtual void print(raw_ostream &OS, const Module *M) const
print - Print out the internal state of the pass.
void emitInstruction(const MachineInstr *MI) override
Implemented in AMDGPUMCInstLower.cpp.
const MCExpr * lowerConstant(const Constant *CV) override
Lower the specified LLVM Constant to an MCExpr.
const R600InstrInfo * getInstrInfo() const override
StringRef - Represent a constant reference to a string, i.e.
@ C
The default llvm calling convention, compatible with C.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.