[Mlir-commits] [mlir] [MLIR][GPU-LLVM] Convert `gpu.func` to `llvm.func` (PR #101664)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Aug 6 10:43:25 PDT 2024
================
@@ -57,10 +80,18 @@ struct GPUFuncOpLowering : ConvertOpToLLVMPattern<gpu::GPUFuncOp> {
unsigned workgroupAddrSpace;
/// The attribute name to use instead of `gpu.kernel`.
- StringAttr kernelAttributeName;
-
+ std::optional<StringAttr> kernelAttributeName;
/// The attribute name to to set block size
std::optional<StringAttr> kernelBlockSizeAttributeName;
+
+ /// The calling convention to use for kernel functions
+ LLVM::CConv kernelCallingConvention;
----------------
FMarno wrote:
why not also change the many member variables to one `GPUFuncOpLoweringOptions` variable?
It should also help keep them aligned
https://github.com/llvm/llvm-project/pull/101664
More information about the Mlir-commits
mailing list