[clang] [llvm] NVPTX: Add target names in TargetParser (PR #212734)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 04:46:29 PDT 2026
================
@@ -0,0 +1,71 @@
+//===--- NVPTXTargetParser.def - NVPTX target data -----------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file is the single source of truth for the NVPTX (CUDA) GPU list. Each
+// row describes one virtual architecture (sm_XX). Adding a new target is a
+// single row here.
+//
+// NVPTX_GPU(NAME, KIND, VIRTUAL, SM_ID, MIN_VER, MAX_VER, SUFFIX)
+// NAME - Canonical processor name string, e.g. "sm_90".
+// KIND - GPUKind enumerator suffix; the enumerator is GK_<KIND>
+// VIRTUAL - Virtual (compute_) arch name string, e.g. "compute_90".
+// SM_ID - Numeric compute-capability id (sm_90 -> 900).
+// MIN_VER - Earliest supporting CudaVersion
+// MAX_VER - Latest supporting CudaVersion.
+// SUFFIX - Arch suffix class: NONE, ACCELERATED (sm_90a), FAMILY (sm_90f).
----------------
arsenm wrote:
```suggestion
// SUFFIX - Arch suffix class: NONE, ACCELERATED (sm_100a), FAMILY (sm_100f).
```
https://github.com/llvm/llvm-project/pull/212734
More information about the llvm-commits
mailing list