This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NVPTX] Handle additional invalid PTX characters
ClosedPublic

Authored by sandoval on Jun 30 2023, 10:59 AM.

Details

Summary

For OpenMP offload, Clang emits global symbols containing the string
'<captured>', which contains characters that are invalid in PTX.
Extend the existing pass that replaces '.' and '@' characters with
'_$_' to also replace '<' and '>' characters.

Diff Detail

Event Timeline

sandoval created this revision.Jun 30 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2023, 10:59 AM
sandoval requested review of this revision.Jun 30 2023, 10:59 AM
sandoval edited the summary of this revision. (Show Details)Jun 30 2023, 11:00 AM
sandoval added a project: Restricted Project.
cchen accepted this revision.Jun 30 2023, 11:23 AM

LGTM

This revision is now accepted and ready to land.Jun 30 2023, 11:23 AM
This revision was automatically updated to reflect the committed changes.