This is an archive of the discontinued LLVM Phabricator instance.

[Libomptarget] Add test config for compiling in LTO-mode
ClosedPublic

Authored by jhuber6 on Jun 10 2022, 9:43 AM.

Details

Summary

We are planning on making LTO the default compilation mode for
offloading. In order to make sure it works we should run these tests on
the test suite. AMDGPU already uses the LTO compilation path for its
linking, but in LTO mode it also links the static library late.

Performing LTO requires the static library to be built, if we make the
change this will be a hard requirement and the old bitcode library will
go away. This means users will need to use either a two-step build or a
runtimes build for libomptarget.

Diff Detail

Event Timeline

jhuber6 created this revision.Jun 10 2022, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 9:43 AM
jhuber6 requested review of this revision.Jun 10 2022, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2022, 9:43 AM
JonChesterfield accepted this revision.Jun 14 2022, 7:13 AM

Looks good here. Will need to back out and change the xfail lines if the CI rejects it.

This revision is now accepted and ready to land.Jun 14 2022, 7:13 AM
This revision was landed with ongoing or failed builds.Jun 14 2022, 7:16 AM
This revision was automatically updated to reflect the committed changes.