[clang] [Clang] Make `-Xarch_` handling generic for all toolchains (PR #125421)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 11:52:48 PST 2025


================
@@ -0,0 +1,31 @@
+// RUN: %clang -x cuda %s -Xarch_nvptx64 -O3 -S -nogpulib -nogpuinc -### 2>&1 | FileCheck -check-prefix=O3ONCE %s
+// RUN: %clang -x hip %s -Xarch_amdgcn -O3 -S -nogpulib -nogpuinc -### 2>&1 | FileCheck -check-prefix=O3ONCE %s
----------------
Artem-B wrote:

> We have existing tests for those

We have a few scattered across hip-options.hip and openmp-offload-gpu.c and it would make sense to consolidate them here, now that we have the tests dedicated specifically to Xarch processing. 

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


More information about the cfe-commits mailing list