[PATCH] D156641: [Clang][Frontend] Change help text for --offload-host-device
Anton Rydahl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 1 10:25:03 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2301e13269d5: [Clang][Frontend] Change help text for --offload-host-device (authored by AntonRydahl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156641/new/
https://reviews.llvm.org/D156641
Files:
clang/include/clang/Driver/Options.td
flang/test/Driver/driver-help-hidden.f90
flang/test/Driver/driver-help.f90
Index: flang/test/Driver/driver-help.f90
===================================================================
--- flang/test/Driver/driver-help.f90
+++ flang/test/Driver/driver-help.f90
@@ -80,7 +80,7 @@
! HELP-NEXT: -module-dir <dir> Put MODULE files in <dir>
! HELP-NEXT: -nocpp Disable predefined and command line preprocessor macros
! HELP-NEXT: --offload-device-only Only compile for the offloading device.
-! HELP-NEXT: --offload-host-device Only compile for the offloading host.
+! HELP-NEXT: --offload-host-device Compile for both the offloading host and device (default).
! HELP-NEXT: --offload-host-only Only compile for the offloading host.
! HELP-NEXT: -o <file> Write output to <file>
! HELP-NEXT: -pedantic Warn on language extensions
Index: flang/test/Driver/driver-help-hidden.f90
===================================================================
--- flang/test/Driver/driver-help-hidden.f90
+++ flang/test/Driver/driver-help-hidden.f90
@@ -84,7 +84,7 @@
! CHECK-NEXT: -module-dir <dir> Put MODULE files in <dir>
! CHECK-NEXT: -nocpp Disable predefined and command line preprocessor macros
! CHECK-NEXT: --offload-device-only Only compile for the offloading device.
-! CHECK-NEXT: --offload-host-device Only compile for the offloading host.
+! CHECK-NEXT: --offload-host-device Compile for both the offloading host and device (default).
! CHECK-NEXT: --offload-host-only Only compile for the offloading host.
! CHECK-NEXT: -o <file> Write output to <file>
! CHECK-NEXT: -pedantic Warn on language extensions
Index: clang/include/clang/Driver/Options.td
===================================================================
--- clang/include/clang/Driver/Options.td
+++ clang/include/clang/Driver/Options.td
@@ -2875,7 +2875,7 @@
def offload_host_only : Flag<["--"], "offload-host-only">, Flags<[FlangOption]>,
HelpText<"Only compile for the offloading host.">;
def offload_host_device : Flag<["--"], "offload-host-device">, Flags<[FlangOption]>,
- HelpText<"Only compile for the offloading host.">;
+ HelpText<"Compile for both the offloading host and device (default).">;
def cuda_device_only : Flag<["--"], "cuda-device-only">, Alias<offload_device_only>,
HelpText<"Compile CUDA code for device only">;
def cuda_host_only : Flag<["--"], "cuda-host-only">, Alias<offload_host_only>,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156641.546122.patch
Type: text/x-patch
Size: 2424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230801/ecfa39aa/attachment.bin>
More information about the cfe-commits
mailing list