aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Cuda.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2024-11-12 23:11:05 -0500
committerGitHub <noreply@github.com>2024-11-12 23:11:05 -0500
commitde0fd64bedd23660f557833cc0108c3fb2be3918 (patch)
treee0e2fa128b997622c9b539ff064d03f78ad2bbfb /clang/lib/Basic/Cuda.cpp
parent5a5502b9e1ca04626f7fd03c581b6deb5cd39c13 (diff)
downloadllvm-de0fd64bedd23660f557833cc0108c3fb2be3918.zip
llvm-de0fd64bedd23660f557833cc0108c3fb2be3918.tar.gz
llvm-de0fd64bedd23660f557833cc0108c3fb2be3918.tar.bz2
[AMDGPU] Introduce a new generic target `gfx9-4-generic` (#115190)
This patch introduces a new generic target, `gfx9-4-generic`. Since it doesn’t support FP8 and XF32-related instructions, the patch includes several code reorganizations to accommodate these changes.
Diffstat (limited to 'clang/lib/Basic/Cuda.cpp')
-rw-r--r--clang/lib/Basic/Cuda.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/Cuda.cpp b/clang/lib/Basic/Cuda.cpp
index d765bae..59c9324 100644
--- a/clang/lib/Basic/Cuda.cpp
+++ b/clang/lib/Basic/Cuda.cpp
@@ -121,6 +121,7 @@ static const OffloadArchToStringMap arch_names[] = {
GFX(909), // gfx909
GFX(90a), // gfx90a
GFX(90c), // gfx90c
+ {OffloadArch::GFX9_4_GENERIC, "gfx9-4-generic", "compute_amdgcn"},
GFX(940), // gfx940
GFX(941), // gfx941
GFX(942), // gfx942