This is an archive of the discontinued LLVM Phabricator instance.

[libc] Enable aliasing on AMDGPU targets
ClosedPublic

Authored by jhuber6 on Jul 7 2023, 4:47 AM.

Details

Summary

AMDGPU supports aliases now, so we can drop this case and leave it only
for the NVPTX target. Unfortunately it's unlikely that NVPTX will be
able to support this in the future due to their PTX language being very
limited.

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 7 2023, 4:47 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 7 2023, 4:47 AM
jhuber6 requested review of this revision.Jul 7 2023, 4:47 AM
lntue accepted this revision.Jul 7 2023, 8:50 AM
This revision is now accepted and ready to land.Jul 7 2023, 8:50 AM
This revision was automatically updated to reflect the committed changes.
tra added a subscriber: tra.Jul 10 2023, 10:10 AM
tra added inline comments.
libc/src/__support/common.h
19

PTX did add support for aliases a while back, but we indeed don't use it at the moment.

jhuber6 added inline comments.Jul 10 2023, 10:12 AM
libc/src/__support/common.h
19

Ah, probably should've checked the PTX reference. Now if they just made .section work outside of debug mode I'd be a happy camper. Guessing this just requires some effort in the backend to support it? Might be worthwhile.