@@ -1236,10 +1236,12 @@ def offload_arch_EQ : CommaJoined<["--"], "offload-arch=">,
1236
1236
"If 'native' is used the compiler will detect locally installed architectures. "
1237
1237
"For HIP offloading, the device architecture can be followed by target ID features "
1238
1238
"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.">;
1243
1245
1244
1246
def offload_new_driver : Flag<["--"], "offload-new-driver">,
1245
1247
Visibility<[ClangOption, CC1Option]>, Group<f_Group>,
@@ -1732,8 +1734,11 @@ defm auto_import : BoolFOption<"auto-import",
1732
1734
// In the future this option will be supported by other offloading
1733
1735
// languages and accept other values such as CPU/GPU architectures,
1734
1736
// 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)">;
1737
1742
1738
1743
// C++ Coroutines
1739
1744
defm coroutines : BoolFOption<"coroutines",
@@ -7274,10 +7279,14 @@ defm sycl_rtc_mode: BoolFOption<"sycl-rtc-mode",
7274
7279
def fno_sycl_esimd_build_host_code : Flag<["-"], "fno-sycl-esimd-build-host-code">,
7275
7280
Visibility<[ClangOption, CLOption, CC1Option]>, Flags<[HelpHidden]>,
7276
7281
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">;
7281
7290
def fsycl_force_target_EQ : Joined<["-"], "fsycl-force-target=">,
7282
7291
Flags<[NoXarchOption]>,
7283
7292
HelpText<"Force the usage of the given triple when extracting device code "
0 commit comments