This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Mark device RTL variables as hidden
ClosedPublic

Authored by jhuber6 on Jan 14 2022, 7:35 AM.

Details

Summary

This patch changes the visibility of the __omp_rtl_debug_kind variable
to be hidden. These variables are only used by the plugin so they do not
need to be read externally. Previously the default visibility prevented
these variables from being completely eliminated in the module.

Diff Detail

Event Timeline

jhuber6 created this revision.Jan 14 2022, 7:35 AM
jhuber6 requested review of this revision.Jan 14 2022, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2022, 7:35 AM
tianshilei1992 accepted this revision.Jan 14 2022, 8:18 AM

LG. However, we might want to document OpenMPIRBuilder::createGlobalFlag saying that function is only for creating flags for what kind of variables in case it is misused.

This revision is now accepted and ready to land.Jan 14 2022, 8:18 AM
jhuber6 updated this revision to Diff 400137.Jan 14 2022, 1:48 PM

Fix test and add the fact that its hidden to the comment.

Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2022, 1:48 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision was landed with ongoing or failed builds.Jan 18 2022, 9:53 AM
This revision was automatically updated to reflect the committed changes.