[all-commits] [llvm/llvm-project] 3c3a18: clang: Store vendor GPU kinds in OffloadArch inste...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Fri Jul 31 23:14:26 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c3a18e239fcb79ad780cc95ac7554046876da2a
https://github.com/llvm/llvm-project/commit/3c3a18e239fcb79ad780cc95ac7554046876da2a
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-08-01 (Sat, 01 Aug 2026)
Changed paths:
M clang/include/clang/Basic/OffloadArch.h
M clang/include/clang/Driver/CudaInstallationDetector.h
M clang/lib/Basic/Cuda.cpp
M clang/lib/Basic/OffloadArch.cpp
M clang/lib/Basic/Targets/NVPTX.cpp
M clang/lib/Basic/Targets/NVPTX.h
M clang/lib/Driver/Driver.cpp
M clang/lib/Driver/OffloadBundler.cpp
M clang/lib/Driver/ToolChains/Cuda.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
M clang/test/Misc/target-invalid-cpu-note/nvptx.c
M clang/unittests/Basic/OffloadArchTest.cpp
M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
M llvm/include/llvm/TargetParser/NVPTXTargetParser.h
Log Message:
-----------
clang: Store vendor GPU kinds in OffloadArch instead of re-listing GPUs (#213362)
OffloadArch was a flat enum that hand-duplicated every AMDGPU and NVPTX
target, plus a few edge cases. This was yet another place that needed
updating every time a new target is added, which should now be avoided.
Replace with a tagged union-like scheme.
Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list