This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add kernel string attribute to kernel function
ClosedPublic

Authored by jhuber6 on Feb 1 2022, 8:49 AM.

Details

Summary

This patch adds a function attribute to the kernel function generated in
OpenMP offloading. We already create a nvvm.annotations metadata node
indicating the kernels present in the program. However, this created
some indirection when trying to identify if a specific function was an
entry. We add a single function attribute for each function now to
simplify this.

Diff Detail

Event Timeline

jhuber6 created this revision.Feb 1 2022, 8:49 AM
jhuber6 requested review of this revision.Feb 1 2022, 8:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 8:49 AM
jdoerfert accepted this revision.Feb 1 2022, 8:50 AM

LG, thanks

This revision is now accepted and ready to land.Feb 1 2022, 8:50 AM
This revision was automatically updated to reflect the committed changes.