15#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
16#define LLVM_LIB_TARGET_AMDGPU_AMDGPUMCINSTLOWER_H
53 if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) {
54 auto *
Op = CE->getOperand(0);
55 auto SrcAddr =
Op->getType()->getPointerAddressSpace();
57 auto DstAddr = CE->getType()->getPointerAddressSpace();
AMDGPU address space definition.
The AMDGPU TargetMachine interface definition for hw codegen targets.
This file contains the declarations for the subclasses of Constant, which represent the different fla...
static SDValue lowerAddrSpaceCast(SDValue Op, SelectionDAG &DAG)
void lowerT16FmaMixFP16(const MachineInstr *MI, MCInst &OutMI) const
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const
void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const
AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, const AsmPrinter &AP)
void lower(const MachineInstr *MI, MCInst &OutMI) const
Lower a MachineInstr to an MCInst.
This class is intended to be used as a driving class for all asm writers.
This is an important base class in LLVM.
static LLVM_ABI const MCConstantExpr * create(int64_t Value, MCContext &Ctx, bool PrintInHex=false, unsigned SizeInBytes=0)
Context object for machine code objects.
Base class for the full range of assembler expressions which are needed for parsing.
Instances of this class represent a single low-level machine instruction.
Instances of this class represent operands of the MCInst class.
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
TargetSubtargetInfo - Generic base class for all target subtargets.
constexpr int64_t getNullPointerValue(unsigned AS)
Get the null pointer value for the given address space.
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
DWARFExpression::Operation Op