Go to the documentation of this file.
50 LLVMContext &
C =
MI->getParent()->getParent()->getFunction().getContext();
51 C.emitError(
"Illegal instruction detected: " + Err);
64 MCInstLowering.lower(
MI, TmpInst);
virtual const MCExpr * lowerConstant(const Constant *CV)
Lower the specified LLVM Constant to an MCExpr.
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
Context object for machine code objects.
const R600InstrInfo * getInstrInfo() const override
void lower(const MachineInstr *MI, MCInst &OutMI) const
Lower a MachineInstr to an MCInst.
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.
void EmitToStreamer(MCStreamer &S, const MCInst &Inst)
void setOpcode(unsigned Op)
const MCExpr * lowerConstant(const Constant *CV) override
Lower the specified LLVM Constant to an MCExpr.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
std::unique_ptr< MCStreamer > OutStreamer
This is the MCStreamer object for the file we are generating.
(vector float) vec_cmpeq(*A, *B) C
MachineOperand class - Representation of each machine instruction operand.
void addOperand(const MCOperand Op)
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 TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
This is an important base class in LLVM.
Representation of each machine instruction.
This is an important class for using LLVM in a threaded context.
MachineFunction * MF
The current machine function.
MCContext & OutContext
This is the context for the output file that we are streaming.
instr_iterator instr_end()
StringRef - Represent a constant reference to a string, i.e.
Iterator for intrusive lists based on ilist_node.
R600MCInstLower(MCContext &ctx, const R600Subtarget &ST, const AsmPrinter &AP)
This class is intended to be used as a driving class for all asm writers.
TargetMachine & TM
Target machine description.
Instances of this class represent operands of the MCInst class.
Base class for the full range of assembler expressions which are needed for parsing.