MLIR  20.0.0git
Public Attributes | List of all members
mlir::GPUFuncOpLoweringOptions Struct Reference

#include "Conversion/GPUCommon/GPUOpsLowering.h"

Public Attributes

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

Detailed Description

Definition at line 38 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 40 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 58 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 46 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 49 of file GPUOpsLowering.h.

◆ kernelCallingConvention

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

The calling convention to use for kernel functions.

Definition at line 52 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 54 of file GPUOpsLowering.h.

◆ workgroupAddrSpace

unsigned mlir::GPUFuncOpLoweringOptions::workgroupAddrSpace

The address space to use declaring workgroup memory.

Definition at line 42 of file GPUOpsLowering.h.


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