[Mlir-commits] [mlir] [mlir][nvvm]Add support for grid_constant attribute on LLVM function arguments (PR #78228)

Guray Ozen llvmlistbot at llvm.org
Tue Jan 16 05:32:57 PST 2024


================
@@ -59,6 +59,19 @@ def NVVM_Dialect : Dialect {
     /// Get the name of the attribute used to annotate max number of
     /// registers that can be allocated per thread.
     static StringRef getMaxnregAttrName() { return "nvvm.maxnreg"; }
+
+    /// Get the name of the attribute used to annotate kernel arguments that
+    /// are grid constants.
+    static StringRef getGridConstantAttrName() { return "nvvm.grid_constant"; }
----------------
grypp wrote:

This is an attribute for a kernel parameter, while other attributes are for the kernel itself. We might need to split them later 

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


More information about the Mlir-commits mailing list