[llvm] [NVPTX] Update architecture support checks for tcgen05 intrinsics (PR #161519)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 12:40:33 PDT 2025


================
@@ -101,6 +101,35 @@ def PrmtMode : Operand<i32> {
 // NVPTX Instruction Predicate Definitions
 //===----------------------------------------------------------------------===//
 
+// Helper predicate to compose multiple predicates.
+class AnyPred<list<Predicate> Preds>
+    : Predicate<"(" #
+                !interleave(!foreach(pred, Preds, pred.CondString),
+                            ") || (") #
+                ")">;
+
+// Checks PTX version and family-specific and architecture-specific SM versions.
----------------
Artem-B wrote:

It could use more details on how PTX version is compared -- exactly, or whether we'll accept a higher version, too.

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


More information about the llvm-commits mailing list