[clang] [llvm] [AMDGPU] Make cluster a target feature (PR #162040)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 02:47:30 PDT 2025


================
@@ -1837,7 +1839,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
   }
 
   /// \returns true if the subtarget supports clusters of workgroups.
-  bool hasClusters() const { return GFX1250Insts; }
+  bool hasClusters() const { return HasCluster; }
----------------
jayfoad wrote:

Please call the target feature "HasClusters". The inconsistency is really annoying.

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


More information about the llvm-commits mailing list