LLVM 20.0.0git
|
#include "Target/SystemZ/SystemZMCInstLower.h"
Public Member Functions | |
SystemZMCInstLower (MCContext &ctx, SystemZAsmPrinter &asmPrinter) | |
void | lower (const MachineInstr *MI, MCInst &OutMI) const |
MCOperand | lowerOperand (const MachineOperand &MO) const |
const MCExpr * | getExpr (const MachineOperand &MO, MCSymbolRefExpr::VariantKind Kind) const |
Definition at line 23 of file SystemZMCInstLower.h.
SystemZMCInstLower::SystemZMCInstLower | ( | MCContext & | ctx, |
SystemZAsmPrinter & | asmPrinter | ||
) |
Definition at line 31 of file SystemZMCInstLower.cpp.
const MCExpr * SystemZMCInstLower::getExpr | ( | const MachineOperand & | MO, |
MCSymbolRefExpr::VariantKind | Kind | ||
) | const |
Definition at line 36 of file SystemZMCInstLower.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MachineOperand::getBlockAddress(), llvm::AsmPrinter::GetBlockAddressSymbol(), llvm::AsmPrinter::GetCPISymbol(), llvm::AsmPrinter::GetExternalSymbolSymbol(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getIndex(), llvm::AsmPrinter::GetJTISymbol(), llvm::MachineOperand::getMBB(), llvm::MachineOperand::getOffset(), llvm::MachineBasicBlock::getSymbol(), llvm::AsmPrinter::getSymbol(), llvm::MachineOperand::getSymbolName(), llvm::MachineOperand::getType(), llvm_unreachable, llvm::MachineOperand::MO_BlockAddress, llvm::MachineOperand::MO_ConstantPoolIndex, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_JumpTableIndex, llvm::MachineOperand::MO_MachineBasicBlock, and llvm::Offset.
Referenced by lowerOperand().
void SystemZMCInstLower::lower | ( | const MachineInstr * | MI, |
MCInst & | OutMI | ||
) | const |
Definition at line 94 of file SystemZMCInstLower.cpp.
References llvm::MCInst::addOperand(), lowerOperand(), MI, and llvm::MCInst::setOpcode().
MCOperand SystemZMCInstLower::lowerOperand | ( | const MachineOperand & | MO | ) | const |
Definition at line 79 of file SystemZMCInstLower.cpp.
References llvm::MCOperand::createExpr(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), getExpr(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getReg(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::getType(), getVariantKind(), llvm::MachineOperand::MO_Immediate, and llvm::MachineOperand::MO_Register.
Referenced by lower().