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

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 30 14:49:33 PDT 2025


================
@@ -402,6 +405,29 @@ void AMDGPUTargetCodeGenInfo::setFunctionDeclAttributes(
 
     F->addFnAttr("amdgpu-max-num-workgroups", AttrVal.str());
   }
+
+  if (auto *Attr = FD->getAttr<CUDAClusterDimsAttr>()) {
+    uint32_t X =
----------------
shiltian wrote:

Right, which would eventually much longer than the existing one. I did make it compact though.

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


More information about the cfe-commits mailing list