MLIR  19.0.0git
Functions
GPUOpsLowering.cpp File Reference
#include "GPUOpsLowering.h"
#include "mlir/Conversion/GPUCommon/GPUCommonPass.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinTypes.h"
#include "llvm/ADT/SmallVectorExtras.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/FormatVariadic.h"

Go to the source code of this file.

Functions

static SmallString< 16 > getUniqueFormatGlobalName (gpu::GPUModuleOp moduleOp)
 
template<typename T >
static LLVM::LLVMFuncOp getOrDefineFunction (T &moduleOp, const Location loc, ConversionPatternRewriter &rewriter, StringRef name, LLVM::LLVMFunctionType type)
 
static IntegerAttr wrapNumericMemorySpace (MLIRContext *ctx, unsigned space)
 
LLVM::GlobalOp getDynamicSharedMemorySymbol (ConversionPatternRewriter &rewriter, Operation *moduleOp, gpu::DynamicSharedMemoryOp op, const LLVMTypeConverter *typeConverter, MemRefType memrefType, unsigned alignmentBit)
 Generates a symbol with 0-sized array type for dynamic shared memory usage, or uses existing symbol. More...
 

Function Documentation

◆ getDynamicSharedMemorySymbol()

LLVM::GlobalOp getDynamicSharedMemorySymbol ( ConversionPatternRewriter rewriter,
Operation moduleOp,
gpu::DynamicSharedMemoryOp  op,
const LLVMTypeConverter typeConverter,
MemRefType  memrefType,
unsigned  alignmentBit 
)

Generates a symbol with 0-sized array type for dynamic shared memory usage, or uses existing symbol.

Definition at line 591 of file GPUOpsLowering.cpp.

◆ getOrDefineFunction()

template<typename T >
static LLVM::LLVMFuncOp getOrDefineFunction ( T &  moduleOp,
const Location  loc,
ConversionPatternRewriter rewriter,
StringRef  name,
LLVM::LLVMFunctionType  type 
)
static

◆ getUniqueFormatGlobalName()

static SmallString<16> getUniqueFormatGlobalName ( gpu::GPUModuleOp  moduleOp)
static

◆ wrapNumericMemorySpace()

static IntegerAttr wrapNumericMemorySpace ( MLIRContext ctx,
unsigned  space 
)
static

Definition at line 584 of file GPUOpsLowering.cpp.

References mlir::get().

Referenced by mlir::populateGpuMemorySpaceAttributeConversions().