Skip to content

Commit 9c8a883

Browse files
committed
[Clang][Docs] Add new offloading flags to the clang documentation
Summary: Some previous patches introduced the `--offload-new-driver` flag, which is a generic way to enable the new driver, and the `--offload-host-only` and `--offload-device-only` flags which allow users to compile for one side, making it easier to inspect intermediate code for offloading compilations. This patch just documents them in the command line reference.
1 parent 3ea191e commit 9c8a883

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

clang/docs/ClangCommandLineReference.rst

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,22 @@ Flush denormal floating point values to zero in CUDA/HIP device mode.
238238

239239
Specify comma-separated list of triples OpenMP offloading targets to be supported
240240

241+
.. option:: -fopenmp-new-driver, -fno-openmp-new-driver
242+
243+
Use the new driver for OpenMP offloading.
244+
245+
.. option:: --offload-new-driver, --no-offload-new-driver
246+
247+
Use the new driver for offloading compilation.
248+
249+
.. option:: --offload-host-only
250+
251+
Only compile for the host when offloading.
252+
253+
.. option:: --offload-device-only
254+
255+
Only compile for the device when offloading.
256+
241257
.. option:: -force\_cpusubtype\_ALL
242258

243259
.. program:: clang1
@@ -801,10 +817,6 @@ Generate Interface Stub Files, emit merged text not binary.
801817

802818
Extract API information
803819

804-
.. option:: -fopenmp-new-driver, fno-openmp-new-driver
805-
806-
Use the new driver for OpenMP offloading.
807-
808820
.. option:: -fsyntax-only
809821

810822
.. option:: -module-file-info

0 commit comments

Comments
 (0)