[NVPTX] generalize hasPTX/hasSM predicates. NFC.
authorArtem Belevich <tra@google.com>
Fri, 19 May 2023 20:19:27 +0000 (13:19 -0700)
committerArtem Belevich <tra@google.com>
Mon, 22 May 2023 18:10:21 +0000 (11:10 -0700)
commita7c5cf226024e246501aa2b66350c3f922acc0cb
treefb4970fe22e13a63d5122bcf3d7c5dd12424c60e
parentae3b59e62398e8dc86dec647be58c5ee032447c1
[NVPTX] generalize hasPTX/hasSM predicates. NFC.

Replaces hasSMxy/hasPTXxy with hasSM<xy>/hasPTX<xy> so we can use them as needed
without having to hardcode each version explicitly.

Differential Revision: https://reviews.llvm.org/D150999
llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
llvm/lib/Target/NVPTX/NVPTXIntrinsics.td