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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 05:54:13 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:

Right now `-Xarch_gfx1030 --offload-arch=gfx1030` works, but `-Xarch_gfx90a --offload-arch=gfx1030` doesn't. It's a little weird but I think it's the best interpretation of it we can do, otherwise it becomes difficult to figure out what to do without the bound architecture.

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


More information about the cfe-commits mailing list