This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Document legacy atomics with generic address space
ClosedPublic

Authored by Anastasia on Apr 22 2021, 10:33 AM.

Details

Summary

There were multiple requests from the developers to allow this functionality in OpenCL
https://github.com/KhronosGroup/OpenCL-Docs/issues/66

and this can be supported already in some tool flows i.e. using SPIRV-LLVM Translator.
However, there hasn't been enough progress on the core spec side.

Therefore, I suggest documenting this as a clang extension for now.

Diff Detail

Event Timeline

Anastasia created this revision.Apr 22 2021, 10:33 AM
Anastasia requested review of this revision.Apr 22 2021, 10:33 AM
svenvh accepted this revision.Apr 23 2021, 8:02 AM

Nitpick to make the sentence read more smoothly; otherwise LGTM!

clang/docs/LanguageExtensions.rst
1819

"from earlier than OpenCL 2.0 standard" -> "from the OpenCL 1.x standards"

This revision is now accepted and ready to land.Apr 23 2021, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2021, 6:07 AM
Herald added a subscriber: ldrumm. · View Herald Transcript