This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Align definition of __IMAGE_SUPPORT__ feature macro with OpenCL version and __opencl_c_images feature macro definition
AcceptedPublic

Authored by azabaznov on May 20 2021, 10:05 AM.

Details

Reviewers
Anastasia
svenvh

Diff Detail

Event Timeline

azabaznov created this revision.May 20 2021, 10:05 AM
azabaznov requested review of this revision.May 20 2021, 10:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2021, 10:05 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
Anastasia accepted this revision.May 21 2021, 8:32 AM

LGTM! Although I think it would be better if we set __IMAGE_SUPPORT__ conditionally also for earlier OpenCL versions.

This revision is now accepted and ready to land.May 21 2021, 8:32 AM

LGTM! Although I think it would be better if we set __IMAGE_SUPPORT__ conditionally also for earlier OpenCL versions.

It has always been defined for SPIR target only. Should we wait for spec fix before merging this?