[Mlir-commits] [mlir] [MLIR][GPU-LLVM] Convert `gpu.func` to `llvm.func` (PR #101664)

Victor Perez llvmlistbot at llvm.org
Mon Aug 5 06:31:11 PDT 2024


================
@@ -58,6 +58,10 @@ def LLVM_Dialect : Dialect {
     /// effect when lowering to the LLVMDialect.
     static StringRef getReadnoneAttrName() { return "llvm.readnone"; }
 
+    /// Name of the helper attribute to keep GPU workgroup attribution size
+    /// information when converting from GPU to LLVM.
+    static StringRef getWorkgroupAttribSizeAttrName() { return "llvm.mlir.workgroup_attrib_size"; }
----------------
victor-eds wrote:

This is to be used *only* with function argument attributes. As that won't help here, I'd stick with the simpler method. It's good to know that exists, tho, for future usages. Thanks!

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


More information about the Mlir-commits mailing list