This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add a semantic check for updating hidden or internal values
ClosedPublic

Authored by jhuber6 on Mar 24 2022, 7:41 AM.

Details

Summary

A previous patch removed the compiler generating offloading entries
for variables that were declared on the device but were internal or
hidden. This allowed us to compile programs but turns any attempt to run
'#pragma omp target update' on one of those variables a silent failure.
This patch adds a check in the semantic analysis for if the user is
attempting the update a variable on the device from the host that is not
externally visible.

Diff Detail

Event Timeline

jhuber6 created this revision.Mar 24 2022, 7:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 7:41 AM
jhuber6 requested review of this revision.Mar 24 2022, 7:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 7:41 AM
This revision is now accepted and ready to land.Mar 24 2022, 9:11 AM
jhuber6 retitled this revision from [OpenMP] Add a sematnic check for updating hidden or internal values to [OpenMP] Add a semantic check for updating hidden or internal values.Mar 24 2022, 9:44 AM
jhuber6 edited the summary of this revision. (Show Details)