[PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

Xiuli PAN via cfe-commits cfe-commits at lists.llvm.org
Tue May 10 00:05:41 PDT 2016


pxli168 added a comment.

You can update the SUMMARY of this diff as we are now using generic codegen output.
And there are some inline comments about spec.


================
Comment at: test/SemaOpenCL/to_addr_builtin.cl:25
@@ +24,3 @@
+  glob = to_global(con);
+#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
+  // expected-error at -2{{'to_global' needs OpenCL version 2.0 or above}}
----------------
But in Spec OpenCL V2.0 s6.13.9 the description for to_global is:

> Returns a pointer that points to a region in the global address space if to_global can cast ptr to the global address space. Otherwise it returns NULL.



http://reviews.llvm.org/D19932





More information about the cfe-commits mailing list