MLIR 22.0.0git
GPUToLLVMSPV.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::impl::ConvertGpuOpsToLLVMSPVOpsBase< DerivedT >

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::impl
 Attribute collections provide a dictionary-like interface.

Macros

#define DEBUG_TYPE   "gpu-to-llvm-spv"
#define GEN_PASS_DEF_CONVERTGPUOPSTOLLVMSPVOPS

Functions

std::unique_ptr<::mlir::Passmlir::impl::createConvertGpuOpsToLLVMSPVOps ()
std::unique_ptr<::mlir::Passmlir::impl::createConvertGpuOpsToLLVMSPVOps (ConvertGpuOpsToLLVMSPVOpsOptions options)
std::unique_ptr<::mlir::Passmlir::createConvertGpuOpsToLLVMSPVOps ()
std::unique_ptr<::mlir::Passmlir::createConvertGpuOpsToLLVMSPVOps (ConvertGpuOpsToLLVMSPVOpsOptions options)
static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn (Operation *symbolTable, StringRef name, ArrayRef< Type > paramTypes, Type resultType, bool isMemNone, bool isConvergent)
static LLVM::CallOp createSPIRVBuiltinCall (Location loc, ConversionPatternRewriter &rewriter, LLVM::LLVMFuncOp func, ValueRange args)
void mlir::populateGpuToLLVMSPVConversionPatterns (const LLVMTypeConverter &converter, RewritePatternSet &patterns)
void mlir::populateGpuMemorySpaceAttributeConversions (TypeConverter &typeConverter)
 Populates memory space attribute conversion rules for lowering gpu.address_space to integer values.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "gpu-to-llvm-spv"

Definition at line 35 of file GPUToLLVMSPV.cpp.

◆ GEN_PASS_DEF_CONVERTGPUOPSTOLLVMSPVOPS

#define GEN_PASS_DEF_CONVERTGPUOPSTOLLVMSPVOPS

Definition at line 40 of file GPUToLLVMSPV.cpp.

Function Documentation

◆ createSPIRVBuiltinCall()

LLVM::CallOp createSPIRVBuiltinCall ( Location loc,
ConversionPatternRewriter & rewriter,
LLVM::LLVMFuncOp func,
ValueRange args )
static

Definition at line 78 of file GPUToLLVMSPV.cpp.

◆ lookupOrCreateSPIRVFn()

LLVM::LLVMFuncOp lookupOrCreateSPIRVFn ( Operation * symbolTable,
StringRef name,
ArrayRef< Type > paramTypes,
Type resultType,
bool isMemNone,
bool isConvergent )
static