[clang] [CUDA] Add support for __grid_constant__ attribute (PR #114589)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 12:36:44 PST 2024


================
@@ -1450,6 +1450,13 @@ def CUDAHost : InheritableAttr {
 }
 def : MutualExclusions<[CUDAGlobal, CUDAHost]>;
 
+def CUDAGridConstant : InheritableAttr {
+  let Spellings = [GNU<"grid_constant">, Declspec<"__grid_constant__">];
+  let Subjects = SubjectList<[ParmVar]>;
+  let LangOpts = [CUDA];
+  let Documentation = [Undocumented];
----------------
Artem-B wrote:

Done.

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


More information about the cfe-commits mailing list