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

Tobias Gysi llvmlistbot at llvm.org
Tue Aug 6 09:16:35 PDT 2024


================
@@ -1104,4 +1104,23 @@ def TailCallKindAttr : LLVM_Attr<"TailCallKind", "tailcallkind"> {
   let assemblyFormat = "`<` $tailCallKind `>`";
 }
 
+//===----------------------------------------------------------------------===//
+// WorkgroupAttribAttr
+//===----------------------------------------------------------------------===//
+
+def WorkgroupAttribAttr
+    : LLVM_Attr<"WorkgroupAttrib", "mlir.workgroup_attrib"> {
+  let summary = "GPU workgroup attribution information";
+  let description = [{
+    GPU workgroup attributions are `gpu.func` arguments encoding memory
----------------
gysit wrote:

The doc sounds a bit like the workgroup attributions are argument value + this attribute? Aren't the attributions just the argument attributes attached to the pointer to preserve size and type of the allocation?

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


More information about the Mlir-commits mailing list