This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Ensure offloading sections do not have SHF_ALLOC flag
ClosedPublic

Authored by jhuber6 on Feb 21 2022, 11:53 AM.

Details

Summary

We use offloading sections in the new Clang driver scheme to embed
device code into the host. We later use these sections to link the
device image, after which point they are completely unused and should
not be loaded into memory if they are still in the executable.

Diff Detail

Event Timeline

jhuber6 created this revision.Feb 21 2022, 11:53 AM
jhuber6 requested review of this revision.Feb 21 2022, 11:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2022, 11:53 AM
JonChesterfield accepted this revision.Feb 21 2022, 12:12 PM

LG, thanks for including the test

This revision is now accepted and ready to land.Feb 21 2022, 12:12 PM
This revision was landed with ongoing or failed builds.Feb 21 2022, 6:35 PM
This revision was automatically updated to reflect the committed changes.