[clang] [llvm] [mlir] [NVPTX] Add support for Shared Cluster Memory address space. (PR #135444)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 16:13:51 PDT 2025
================
@@ -137,6 +137,7 @@ def hasAtomBitwise64 : Predicate<"Subtarget->hasAtomBitwise64()">;
def hasAtomMinMax64 : Predicate<"Subtarget->hasAtomMinMax64()">;
def hasVote : Predicate<"Subtarget->hasVote()">;
def hasDouble : Predicate<"Subtarget->hasDouble()">;
+def hasClusters : Predicate<"Subtarget->hasClusters()">;
----------------
modiking wrote:
Good catch, it's meant to unify how we check for support of features:
```
bool hasClusters() const { return SmVersion >= 90 && PTXVersion >= 78; }
```
Updating the predicate checks in the td files to use this instead.
https://github.com/llvm/llvm-project/pull/135444
More information about the cfe-commits
mailing list