LLVM 20.0.0git
|
#include "SPIRVLegalizerInfo.h"
#include "SPIRV.h"
#include "SPIRVGlobalRegistry.h"
#include "SPIRVSubtarget.h"
#include "llvm/CodeGen/GlobalISel/LegalizerHelper.h"
#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetOpcodes.h"
Go to the source code of this file.
Functions | |
bool | isTypeFoldingSupported (unsigned Opcode) |
static Register | convertPtrToInt (Register Reg, LLT ConvTy, SPIRVType *SpirvType, LegalizerHelper &Helper, MachineRegisterInfo &MRI, SPIRVGlobalRegistry *GR) |
Variables | |
static const std::set< unsigned > | TypeFoldingSupportingOpcs |
|
static |
Definition at line 324 of file SPIRVLegalizerInfo.cpp.
References llvm::MachineInstrBuilder::addDef(), llvm::MachineInstrBuilder::addUse(), llvm::SPIRVGlobalRegistry::assignSPIRVTypeToVReg(), llvm::MachineIRBuilder::buildInstr(), llvm::MachineIRBuilder::getMF(), llvm::LegalizerHelper::MIRBuilder, and MRI.
Referenced by llvm::SPIRVLegalizerInfo::legalizeCustom().
Definition at line 53 of file SPIRVLegalizerInfo.cpp.
References TypeFoldingSupportingOpcs.
Referenced by llvm::SPIRVLegalizerInfo::legalizeCustom(), mayBeInserted(), processInstrsWithTypeFolding(), and processNewInstrs().
Definition at line 27 of file SPIRVLegalizerInfo.cpp.
Referenced by isTypeFoldingSupported(), and llvm::SPIRVLegalizerInfo::SPIRVLegalizerInfo().