[PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Wed May 11 11:49:54 PDT 2016
Anastasia added inline comments.
================
Comment at: test/SemaOpenCL/to_addr_builtin.cl:26
@@ +25,3 @@
+#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
+ // expected-error at -2{{'to_global' needs OpenCL version 2.0 or above}}
+#else
----------------
@Xiuli, I think Sam is right. Passing constant to generic violates AS conversion rules from s6.5.5. So error would be correct behavior of the compiler.
http://reviews.llvm.org/D19932
More information about the cfe-commits
mailing list