[PATCH] D28257: [OpenCL] Re-enable supported core extensions based on opencl version when disabling all extensions using pragma
Konstantin Zhuravlyov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 4 10:22:34 PST 2017
kzhuravl added inline comments.
================
Comment at: test/SemaOpenCL/extensions.cl:47
+#ifndef _OPENCL_H_
int isnan(float x) {
----------------
Anastasia wrote:
> Why do you need this?
`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?
https://reviews.llvm.org/D28257
More information about the cfe-commits
mailing list