This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Change debugging symbol to weak_odr linkage
ClosedPublic

Authored by jhuber6 on Sep 17 2021, 12:51 PM.

Details

Summary

The new device runtime uses an internal variable to set debugging. This
variable was originally privately linked because every module will have
a copy of it. This caused problems with merging the device bitcode
library because it would get renamed and there was not a way to refer to
an external, private symbol. This changes the symbol to weak_odr so it
can be defined multiply, but will not be renamed.

Diff Detail

Event Timeline

jhuber6 created this revision.Sep 17 2021, 12:51 PM
jhuber6 requested review of this revision.Sep 17 2021, 12:51 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 17 2021, 12:51 PM

You checked that this works with the usage in the RT, right?

You checked that this works with the usage in the RT, right?

Worked when I tested it. Want me to make a patch for it off of this?

jdoerfert accepted this revision.Sep 17 2021, 2:11 PM

LG, and yes.

This revision is now accepted and ready to land.Sep 17 2021, 2:11 PM
This revision was automatically updated to reflect the committed changes.