@@ -1236,10 +1236,12 @@ def offload_arch_EQ : CommaJoined<["--"], "offload-arch=">,
12361236 "If 'native' is used the compiler will detect locally installed architectures. "
12371237 "For HIP offloading, the device architecture can be followed by target ID features "
12381238 "delimited by a colon (e.g. gfx908:xnack+:sramecc-). May be specified more than once.">;
1239- def no_offload_arch_EQ : Joined<["--"], "no-offload-arch=">,
1240- Visibility<[ClangOption, FlangOption]>,
1241- HelpText<"Remove CUDA/HIP offloading device architecture (e.g. sm_35, gfx906) from the list of devices to compile for. "
1242- "'all' resets the list to its default value.">;
1239+ def no_offload_arch_EQ
1240+ : CommaJoined<["--"], "no-offload-arch=">,
1241+ Visibility<[ClangOption, FlangOption]>,
1242+ HelpText<"Remove CUDA/HIP offloading device architecture (e.g. sm_35, "
1243+ "gfx906) from the list of devices to compile for. "
1244+ "'all' resets the list to its default value.">;
12431245
12441246def offload_new_driver : Flag<["--"], "offload-new-driver">,
12451247 Visibility<[ClangOption, CC1Option]>, Group<f_Group>,
@@ -1732,8 +1734,11 @@ defm auto_import : BoolFOption<"auto-import",
17321734// In the future this option will be supported by other offloading
17331735// languages and accept other values such as CPU/GPU architectures,
17341736// offload kinds and target aliases.
1735- def offload_EQ : CommaJoined<["--"], "offload=">, Flags<[NoXarchOption]>,
1736- HelpText<"Specify comma-separated list of offloading target triples (CUDA and HIP only)">;
1737+ def offload_EQ : CommaJoined<["--"], "offload=">,
1738+ Flags<[NoXarchOption]>,
1739+ Alias<offload_targets_EQ>,
1740+ HelpText<"Specify comma-separated list of offloading target "
1741+ "triples (CUDA and HIP only)">;
17371742
17381743// C++ Coroutines
17391744defm coroutines : BoolFOption<"coroutines",
@@ -7274,10 +7279,14 @@ defm sycl_rtc_mode: BoolFOption<"sycl-rtc-mode",
72747279def fno_sycl_esimd_build_host_code : Flag<["-"], "fno-sycl-esimd-build-host-code">,
72757280 Visibility<[ClangOption, CLOption, CC1Option]>, Flags<[HelpHidden]>,
72767281 HelpText<"Do not build the host implementation of ESIMD functions.">;
7277- def fsycl_targets_EQ : CommaJoined<["-"], "fsycl-targets=">,
7278- Flags<[NoXarchOption]>, Visibility<[ClangOption, CLOption, CC1Option]>,
7279- HelpText<"Specify comma-separated list of triples SYCL offloading targets "
7280- "to be supported">;
7282+ def fsycl_targets_EQ
7283+ : CommaJoined<["-"], "fsycl-targets=">,
7284+ Alias<offload_targets_EQ>,
7285+ Flags<[NoXarchOption]>,
7286+ Visibility<[ClangOption, CLOption, CC1Option]>,
7287+ HelpText<
7288+ "Specify comma-separated list of triples SYCL offloading targets "
7289+ "to be supported">;
72817290def fsycl_force_target_EQ : Joined<["-"], "fsycl-force-target=">,
72827291 Flags<[NoXarchOption]>,
72837292 HelpText<"Force the usage of the given triple when extracting device code "
0 commit comments