This is an archive of the discontinued LLVM Phabricator instance.

[OpenCL] Re-enable supported core extensions based on opencl version when disabling all extensions using pragma
ClosedPublic

Authored by kzhuravl on Jan 3 2017, 2:47 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl updated this revision to Diff 82956.Jan 3 2017, 2:47 PM
kzhuravl retitled this revision from to [OpenCL] Re-enable supported core extensions based on opencl version when disabling all extensions using pragma.
kzhuravl updated this object.
kzhuravl added reviewers: yaxunl, Anastasia, b-sumner.
kzhuravl added a subscriber: cfe-commits.
Anastasia added inline comments.Jan 4 2017, 7:02 AM
test/SemaOpenCL/extensions.cl
47 ↗(On Diff #82956)

Why do you need this?

kzhuravl added inline comments.Jan 4 2017, 10:22 AM
test/SemaOpenCL/extensions.cl
47 ↗(On Diff #82956)

isnan and isfinite are declared in opencl-c.h, so without guards I am getting redeclation diagnostics. Alternatively we can add overloadable attribute to isnan and isfinite in the test to avoid those diagnostic messages?

Anastasia accepted this revision.Jan 5 2017, 7:51 AM
Anastasia edited edge metadata.

Ok, LGTM! Thanks!

This revision is now accepted and ready to land.Jan 5 2017, 7:51 AM
This revision was automatically updated to reflect the committed changes.