MLIR 23.0.0git
mlir::GPUFuncOpLoweringOptions Struct Reference

#include "Conversion/GPUCommon/GPUOpsLowering.h"

Public Attributes

unsigned allocaAddrSpace
 The address space to use for allocas in private memory.
unsigned workgroupAddrSpace
 The address space to use declaring workgroup memory.
StringAttr kernelAttributeName
 The attribute name to use instead of gpu.kernel.
StringAttr kernelBlockSizeAttributeName
 The attribute name to to set block size.
StringAttr kernelClusterSizeAttributeName
 The attribute name to to set cluster size.
LLVM::CConv kernelCallingConvention = LLVM::CConv::C
 The calling convention to use for kernel functions.
LLVM::CConv nonKernelCallingConvention = LLVM::CConv::C
 The calling convention to use for non-kernel functions.
bool encodeWorkgroupAttributionsAsArguments = false
 Whether to encode workgroup attributions as additional arguments instead of a global variable.

Detailed Description

Definition at line 65 of file GPUOpsLowering.h.

Member Data Documentation

◆ allocaAddrSpace

unsigned mlir::GPUFuncOpLoweringOptions::allocaAddrSpace

The address space to use for allocas in private memory.

Definition at line 67 of file GPUOpsLowering.h.

◆ encodeWorkgroupAttributionsAsArguments

bool mlir::GPUFuncOpLoweringOptions::encodeWorkgroupAttributionsAsArguments = false

Whether to encode workgroup attributions as additional arguments instead of a global variable.

Definition at line 88 of file GPUOpsLowering.h.

◆ kernelAttributeName

StringAttr mlir::GPUFuncOpLoweringOptions::kernelAttributeName

The attribute name to use instead of gpu.kernel.

Null if no attribute should be used.

Definition at line 73 of file GPUOpsLowering.h.

◆ kernelBlockSizeAttributeName

StringAttr mlir::GPUFuncOpLoweringOptions::kernelBlockSizeAttributeName

The attribute name to to set block size.

Null if no attribute should be used.

Definition at line 76 of file GPUOpsLowering.h.

◆ kernelCallingConvention

LLVM::CConv mlir::GPUFuncOpLoweringOptions::kernelCallingConvention = LLVM::CConv::C

The calling convention to use for kernel functions.

Definition at line 82 of file GPUOpsLowering.h.

◆ kernelClusterSizeAttributeName

StringAttr mlir::GPUFuncOpLoweringOptions::kernelClusterSizeAttributeName

The attribute name to to set cluster size.

Null if no attribute should be used.

Definition at line 79 of file GPUOpsLowering.h.

◆ nonKernelCallingConvention

LLVM::CConv mlir::GPUFuncOpLoweringOptions::nonKernelCallingConvention = LLVM::CConv::C

The calling convention to use for non-kernel functions.

Definition at line 84 of file GPUOpsLowering.h.

◆ workgroupAddrSpace

unsigned mlir::GPUFuncOpLoweringOptions::workgroupAddrSpace

The address space to use declaring workgroup memory.

Definition at line 69 of file GPUOpsLowering.h.


The documentation for this struct was generated from the following file: