This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Add variant extension that applies to declarations
ClosedPublic

Authored by jhuber6 on Apr 28 2022, 10:18 AM.

Details

Summary

This patch adds a new extension to the omp begin / end declare variant
support that causes it to apply to function declarations as well. This
is explicitly not done in the standard, but can be useful in some
situations so we should provide it as an extension. This will allow us
to uniquely bind and overload existing definitions with a simple
declaration using variants.

Diff Detail

Event Timeline

jhuber6 created this revision.Apr 28 2022, 10:18 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhuber6 requested review of this revision.Apr 28 2022, 10:18 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 28 2022, 10:18 AM
jdoerfert accepted this revision.Jun 28 2022, 2:20 PM

LG. one nit.

clang/include/clang/Basic/AttrDocs.td
4349–4351
This revision is now accepted and ready to land.Jun 28 2022, 2:20 PM
This revision was landed with ongoing or failed builds.Jun 29 2022, 12:04 PM
This revision was automatically updated to reflect the committed changes.