[llvm] [LLVM][NVPTX]: Add intrinsic for setmaxnreg (PR #77289)
Durgadoss R via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 09:08:30 PST 2024
================
@@ -164,6 +164,10 @@ def True : Predicate<"true">;
class hasPTX<int version>: Predicate<"Subtarget->getPTXVersion() >= " # version>;
class hasSM<int version>: Predicate<"Subtarget->getSmVersion() >= " # version>;
+// Explicit records for arch-accelerated SM versions
+def hasSM90a : Predicate<"Subtarget->getSmVersion() == 90"
+ "&& Subtarget->getFullSmVersion() == 901">;
----------------
durga4github wrote:
I believe it should not be. sm_91 will correspond to a FullSmVersion value of 910 (900+10) from how it is defined in NVPTXSubtarget.h. Please let me know if you think otherwise.
https://github.com/llvm/llvm-project/pull/77289
More information about the llvm-commits
mailing list