[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 10 08:27:35 PDT 2025


================
@@ -1557,6 +1557,23 @@ def HIPManaged : InheritableAttr {
   let Documentation = [HIPManagedAttrDocs];
 }
 
+def CUDAClusterDims : InheritableAttr {
+  let Spellings = [GNU<"cluster_dims">, Declspec<"__cluster_dims__">];
----------------
shiltian wrote:

This is to follow all existing attributes, such as `__global__`, `__device__` above.

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


More information about the cfe-commits mailing list