This is an archive of the discontinued LLVM Phabricator instance.

[Libomptarget] Use entry name for global info
ClosedPublic

Authored by jhuber6 on Apr 25 2022, 5:43 AM.

Details

Summary

Currently, globals on the device will have an infinite reference count
and an unknown name when using LIBOMPTARGET_INFO to print the mapping
table. We already store the name of the global in the offloading entry
so we should be able to use it, although there will be no source
location. To do this we need to create a valid ident_t string from a
name only.

Diff Detail

Event Timeline

jhuber6 created this revision.Apr 25 2022, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 5:43 AM
jhuber6 requested review of this revision.Apr 25 2022, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 5:43 AM
This revision is now accepted and ready to land.Apr 25 2022, 5:53 AM
This revision was landed with ongoing or failed builds.Apr 25 2022, 6:56 AM
This revision was automatically updated to reflect the committed changes.