[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;
----------------
FMarno wrote:

Aren't StringAttrs nullable?

https://github.com/llvm/llvm-project/pull/101664


More information about the Mlir-commits mailing list