[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 12:00: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:

That's how it behaves in Darwin I believe, and I think it's fine to accept both `-Xarch_amdgcn` for all AMD targets and `-Xarch_gfx90a` for just that one.

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


More information about the cfe-commits mailing list