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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 3 10:38:18 PST 2025


================
@@ -1115,14 +1117,13 @@ def fno_convergent_functions : Flag<["-"], "fno-convergent-functions">,
 
 // Common offloading options
 let Group = offload_Group in {
-def offload_arch_EQ : Joined<["--"], "offload-arch=">, Flags<[NoXarchOption]>,
----------------
jhuber6 wrote:

using `-Xarch_amdgcn --offload-arch=gfx1030` is very meaningful for OpenMP where the user can enable multiple toolchains at the same time. I agree that use-case is not meaningful as it sets a weird case (Since we have no bound architecture while querying the device list, only the triple). I don't know how we'd diagnose that though.

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


More information about the cfe-commits mailing list