LLVM API Documentation
#include <MSP430MCInstLower.h>
Public Member Functions | |
MSP430MCInstLower (MCContext &ctx, AsmPrinter &printer) | |
void | Lower (const MachineInstr *MI, MCInst &OutMI) const |
MCOperand | LowerSymbolOperand (const MachineOperand &MO, MCSymbol *Sym) const |
MCSymbol * | GetGlobalAddressSymbol (const MachineOperand &MO) const |
MCSymbol * | GetExternalSymbolSymbol (const MachineOperand &MO) const |
MCSymbol * | GetJumpTableSymbol (const MachineOperand &MO) const |
MCSymbol * | GetConstantPoolIndexSymbol (const MachineOperand &MO) const |
MCSymbol * | GetBlockAddressSymbol (const MachineOperand &MO) const |
MSP430MCInstLower - This class is used to lower an MachineInstr into an MCInst.
Definition at line 27 of file MSP430MCInstLower.h.
llvm::MSP430MCInstLower::MSP430MCInstLower | ( | MCContext & | ctx, |
AsmPrinter & | printer | ||
) | [inline] |
Definition at line 32 of file MSP430MCInstLower.h.
MCSymbol * MSP430MCInstLower::GetBlockAddressSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 87 of file MSP430MCInstLower.cpp.
References llvm::MachineOperand::getBlockAddress(), llvm::AsmPrinter::GetBlockAddressSymbol(), llvm::MachineOperand::getTargetFlags(), and llvm_unreachable.
Referenced by Lower().
MCSymbol * MSP430MCInstLower::GetConstantPoolIndexSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 70 of file MSP430MCInstLower.cpp.
References llvm::TargetSubtargetInfo::getDataLayout(), llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getIndex(), llvm::MCContext::GetOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::TargetMachine::getSubtargetImpl(), llvm::MachineOperand::getTargetFlags(), llvm_unreachable, Name, llvm::SmallString< InternalLen >::str(), and llvm::AsmPrinter::TM.
Referenced by Lower().
MCSymbol * MSP430MCInstLower::GetExternalSymbolSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 43 of file MSP430MCInstLower.cpp.
References llvm::AsmPrinter::GetExternalSymbolSymbol(), llvm::MachineOperand::getSymbolName(), llvm::MachineOperand::getTargetFlags(), and llvm_unreachable.
Referenced by Lower().
MCSymbol * MSP430MCInstLower::GetGlobalAddressSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 33 of file MSP430MCInstLower.cpp.
References llvm::MachineOperand::getGlobal(), llvm::AsmPrinter::getSymbol(), llvm::MachineOperand::getTargetFlags(), and llvm_unreachable.
Referenced by Lower().
MCSymbol * MSP430MCInstLower::GetJumpTableSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 53 of file MSP430MCInstLower.cpp.
References llvm::TargetSubtargetInfo::getDataLayout(), llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getIndex(), llvm::MCContext::GetOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::TargetMachine::getSubtargetImpl(), llvm::MachineOperand::getTargetFlags(), llvm_unreachable, Name, llvm::SmallString< InternalLen >::str(), and llvm::AsmPrinter::TM.
Referenced by Lower().
void MSP430MCInstLower::Lower | ( | const MachineInstr * | MI, |
MCInst & | OutMI | ||
) | const |
Definition at line 114 of file MSP430MCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::MCSymbolRefExpr::Create(), llvm::MCOperand::CreateExpr(), llvm::MCOperand::CreateImm(), llvm::MCOperand::CreateReg(), llvm::MachineInstr::dump(), GetBlockAddressSymbol(), GetConstantPoolIndexSymbol(), GetExternalSymbolSymbol(), GetGlobalAddressSymbol(), llvm::MachineOperand::getImm(), GetJumpTableSymbol(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getType(), llvm::MachineOperand::isImplicit(), llvm_unreachable, LowerSymbolOperand(), 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, llvm::MachineOperand::MO_RegisterMask, and llvm::MCInst::setOpcode().
MCOperand MSP430MCInstLower::LowerSymbolOperand | ( | const MachineOperand & | MO, |
MCSymbol * | Sym | ||
) | const |
Definition at line 97 of file MSP430MCInstLower.cpp.
References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateAdd(), llvm::MCOperand::CreateExpr(), llvm::MachineOperand::getOffset(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::isJTI(), and llvm_unreachable.
Referenced by Lower().