This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add support for CPU offloading in new driver
ClosedPublic

Authored by jhuber6 on Feb 11 2022, 7:17 PM.

Details

Summary

This patch adds support for linking CPU offloading applications in the
linker wrapper. We generate the necessary linking job using the host
linker's path and library arguments. This may not be true for more
complex offloading schemes, but this is sufficient for now.

Diff Detail

Event Timeline

jhuber6 created this revision.Feb 11 2022, 7:17 PM
jhuber6 requested review of this revision.Feb 11 2022, 7:17 PM
jhuber6 updated this revision to Diff 408218.Feb 12 2022, 2:24 PM

Fixing LTO.

We should be able to test this with unit tests, no?

jhuber6 updated this revision to Diff 408904.Feb 15 2022, 9:06 AM

Add test for the arguments passed to the linker wrapper when doing host
offloading. It will be more difficult to do a unit test for the internal
operation of the linker wrapper because it is reactive to the data contained in
the object file.

This revision is now accepted and ready to land.Feb 15 2022, 9:55 AM
This revision was automatically updated to reflect the committed changes.