[clang] AMDGPU: Add missing gfx* generic targets handling in clang (NVPTX, OpenMP runtime) (PR #94483)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 5 08:24:00 PDT 2024


================
@@ -121,6 +121,11 @@ enum class CudaArch {
   GFX1151,
   GFX1200,
   GFX1201,
+  GFX9_GENERIC,
----------------
shiltian wrote:

I think you might want to group them with corresponding non-generic targets such that we can directly use `>=` and `<=` to compare if a GFX version falls into one category if necessary. I'm not sure if we have this kind of use case, but it is common for the other targets. Ignore this if we don't.

https://github.com/llvm/llvm-project/pull/94483


More information about the cfe-commits mailing list