This is an archive of the discontinued LLVM Phabricator instance.

[CUDA][HIP] Fix linkage of __clang_gpu_used_external
ClosedPublic

Authored by yaxunl on Apr 26 2022, 10:10 AM.

Details

Summary

Different TU's may have this globl var. appending linkage can
only be used with lld recognized special variables.

Change it to internal linkage.

Diff Detail

Event Timeline

yaxunl created this revision.Apr 26 2022, 10:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 10:10 AM
Herald added a subscriber: mattd. · View Herald Transcript
yaxunl requested review of this revision.Apr 26 2022, 10:10 AM
tra accepted this revision.Apr 26 2022, 11:43 AM
This revision is now accepted and ready to land.Apr 26 2022, 11:43 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2022, 5:44 PM