This is an archive of the discontinued LLVM Phabricator instance.

[Clang] Change host/device only compilation to a driver mode
ClosedPublic

Authored by jhuber6 on Jun 10 2022, 11:14 AM.

Details

Summary

We use the flags --offload-host-only and --offload-device-only to
change the driver's code generation for offloading programs. These are
currently parsed out independently in many places. This patch simply
refactors this to work as a mode for the Driver. This stopped us from
emitting warnings if unused because it's always used now, but I don't
think this is a great loss.

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 10 2022, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 11:14 AM
jhuber6 requested review of this revision.Jun 10 2022, 11:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 11:14 AM
tra accepted this revision.Jun 10 2022, 12:27 PM
This revision is now accepted and ready to land.Jun 10 2022, 12:27 PM
This revision was landed with ongoing or failed builds.Jun 13 2022, 8:34 AM
This revision was automatically updated to reflect the committed changes.
clang/lib/Driver/Driver.cpp