LLVM API Documentation
This class is used to lower an MachineInstr into an MCInst. More...
#include <XCoreMCInstLower.h>
Public Member Functions | |
XCoreMCInstLower (class AsmPrinter &asmprinter) | |
void | Initialize (Mangler *mang, MCContext *C) |
void | Lower (const MachineInstr *MI, MCInst &OutMI) const |
MCOperand | LowerOperand (const MachineOperand &MO, unsigned offset=0) const |
This class is used to lower an MachineInstr into an MCInst.
Definition at line 25 of file XCoreMCInstLower.h.
XCoreMCInstLower::XCoreMCInstLower | ( | class AsmPrinter & | asmprinter | ) |
Definition at line 27 of file XCoreMCInstLower.cpp.
void XCoreMCInstLower::Initialize | ( | Mangler * | mang, |
MCContext * | C | ||
) |
Definition at line 30 of file XCoreMCInstLower.cpp.
References llvm::CallingConv::C.
void XCoreMCInstLower::Lower | ( | const MachineInstr * | MI, |
MCInst & | OutMI | ||
) | const |
Definition at line 107 of file XCoreMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MCOperand::isValid(), LowerOperand(), and llvm::MCInst::setOpcode().
MCOperand XCoreMCInstLower::LowerOperand | ( | const MachineOperand & | MO, |
unsigned | offset = 0 |
||
) | const |
Definition at line 81 of file XCoreMCInstLower.cpp.
References llvm::MCOperand::CreateImm(), llvm::MCOperand::CreateReg(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getType(), llvm::MachineOperand::isImplicit(), llvm_unreachable, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, and llvm::MachineOperand::MO_RegisterMask.
Referenced by Lower().