This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Restrict pointer to member functions
ClosedPublic

Authored by Anastasia on Dec 31 2020, 8:00 AM.

Details

Summary

OpenCL doesn't allow function pointers and therefore pointers to member functions are to be restricted too.

Even if this C++ feature provides more insight of the function that might be pointed too it inherited the same fundamental issue - can lead to the divergent execution of big fragments of code that are very inefficient.

Diff Detail

Event Timeline

Anastasia created this revision.Dec 31 2020, 8:00 AM
Anastasia requested review of this revision.Dec 31 2020, 8:00 AM
mantognini accepted this revision.Dec 31 2020, 8:25 AM

lgtm, thanks

This revision is now accepted and ready to land.Dec 31 2020, 8:25 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2021, 5:33 AM