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 82 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 66 of file MSP430MCInstLower.cpp.
References llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getIndex(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), llvm::MachineOperand::getTargetFlags(), llvm_unreachable, llvm::AsmPrinter::MAI, and llvm::SmallString< InternalLen >::str().
Referenced by Lower().
| MCSymbol * MSP430MCInstLower::GetExternalSymbolSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 40 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 30 of file MSP430MCInstLower.cpp.
References llvm::MachineOperand::getGlobal(), llvm::Mangler::getSymbol(), llvm::MachineOperand::getTargetFlags(), llvm_unreachable, and llvm::AsmPrinter::Mang.
Referenced by Lower().
| MCSymbol * MSP430MCInstLower::GetJumpTableSymbol | ( | const MachineOperand & | MO | ) | const |
Definition at line 50 of file MSP430MCInstLower.cpp.
References llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getIndex(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), llvm::MachineOperand::getTargetFlags(), llvm_unreachable, llvm::AsmPrinter::MAI, and llvm::SmallString< InternalLen >::str().
Referenced by Lower().
| void MSP430MCInstLower::Lower | ( | const MachineInstr * | MI, |
| MCInst & | OutMI | ||
| ) | const |
Definition at line 109 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 92 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().