[Mlir-commits] [mlir] [mlir][gpu] Add metadata attributes for storing kernel metadata in GPU objects (PR #95292)

Mehdi Amini llvmlistbot at llvm.org
Tue Aug 27 12:44:02 PDT 2024


================
@@ -16,6 +16,155 @@
 include "mlir/Dialect/GPU/IR/GPUBase.td"
 include "mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td"
 
+//===----------------------------------------------------------------------===//
+// GPU kernel attribute
+//===----------------------------------------------------------------------===//
+
+def GPU_KernelAttr : GPU_Attr<"Kernel", "kernel"> {
+  let description = [{
+    GPU attribute for storing metadata related to a compiled kernel. The
+    attribute contains the name and function type of the kernel.
----------------
joker-eph wrote:

```suggestion
    attribute contains the name and arguments type of the kernel.
```

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


More information about the Mlir-commits mailing list