LLVM 20.0.0git
|
#include "Target/AMDGPU/AMDGPUMCInstLower.h"
Public Member Functions | |
AMDGPUMCInstLower (MCContext &ctx, const TargetSubtargetInfo &ST, const AsmPrinter &AP) | |
bool | lowerOperand (const MachineOperand &MO, MCOperand &MCOp) const |
void | lower (const MachineInstr *MI, MCInst &OutMI) const |
Lower a MachineInstr to an MCInst. | |
Definition at line 29 of file AMDGPUMCInstLower.h.
AMDGPUMCInstLower::AMDGPUMCInstLower | ( | MCContext & | ctx, |
const TargetSubtargetInfo & | ST, | ||
const AsmPrinter & | AP | ||
) |
Definition at line 40 of file AMDGPUMCInstLower.cpp.
void AMDGPUMCInstLower::lower | ( | const MachineInstr * | MI, |
MCInst & | OutMI | ||
) | const |
Lower a MachineInstr to an MCInst.
Definition at line 116 of file AMDGPUMCInstLower.cpp.
References llvm::MCInst::addOperand(), llvm::CallingConv::C, llvm::MCOperand::createImm(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::AMDGPU::getNamedOperandIdx(), llvm::MCInst::getNumOperands(), lowerOperand(), MI, llvm::MCInst::setOpcode(), and TII.
bool AMDGPUMCInstLower::lowerOperand | ( | const MachineOperand & | MO, |
MCOperand & | MCOp | ||
) | const |
Definition at line 66 of file AMDGPUMCInstLower.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MCOperand::createExpr(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getMBB(), llvm::AMDGPU::getMCReg(), llvm::MachineOperand::getMCSymbol(), llvm::AsmPrinter::getNameWithPrefix(), llvm::MachineOperand::getOffset(), llvm::MCContext::getOrCreateSymbol(), llvm::MachineOperand::getReg(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getSymbolName(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::getType(), getVariantKind(), llvm_unreachable, llvm::MachineOperand::MO_ExternalSymbol, llvm::SIInstrInfo::MO_FAR_BRANCH_OFFSET, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_MCSymbol, llvm::MachineOperand::MO_Register, llvm::MachineOperand::MO_RegisterMask, llvm::Offset, and Sym.
Referenced by lower().