This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Add clang extension for function pointers
ClosedPublic

Authored by Anastasia on Jan 4 2021, 11:20 AM.

Details

Summary

This feature is primarily important in C++ mode because it opens up more opportunities to describe metaprogramming algorithms with function types. It can also be used to facilitate virtual functions.

This is clang and not a vendor extension and therefore it is only intended for internal or experimental use. The full feature will require changes in vendor toolchains that can be provided in the future via either vendor extensions or Khronos extensions.

Diff Detail

Event Timeline

Anastasia created this revision.Jan 4 2021, 11:20 AM
Anastasia requested review of this revision.Jan 4 2021, 11:20 AM
This revision is now accepted and ready to land.Jan 6 2021, 1:56 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2021, 12:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 5:36 PM