[PATCH] D124220: [OpenMP] Add options to only compile the host or device when offloading
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 21 17:41:41 PDT 2022
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, JonChesterfield, yaxunl, tra.
Herald added a subscriber: guansong.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1, MaskRay.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124220
Files:
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/test/Driver/openmp-offload-gpu-new.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124220.424345.patch
Type: text/x-patch
Size: 5489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220422/97c0edb2/attachment.bin>
More information about the cfe-commits
mailing list