[all-commits] [llvm/llvm-project] 47d662: [OpenMP] Add options to only compile the host or d...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Apr 29 08:22:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 47d66255701a5cfeab6c05e3642a2cccf7a4c09f
https://github.com/llvm/llvm-project/commit/47d66255701a5cfeab6c05e3642a2cccf7a4c09f
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-04-29 (Fri, 29 Apr 2022)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/Driver.cpp
M clang/test/Driver/cuda-openmp-driver.cu
M clang/test/Driver/openmp-offload-gpu-new.c
Log Message:
-----------
[OpenMP] Add options to only compile the host or device when offloading
OpenMP recently moved to the new offloading driver, this had the effect
of making it more difficult to inspect intermediate code for the device.
This patch adds `-foffload-host-only` and `-foffload-device-only` to
control which sides get compiled. This will allow users to more easily
inspect output without needing the temp files.
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D124220
More information about the All-commits
mailing list