yaxunl added a comment.

In http://reviews.llvm.org/D18369#408773, @bader wrote:

> BTW, there is a comment on GitHub that opencl.h might be a bad name for that 
> header, since Khronos group provides the header with the same name, but it 
> defines host API. So if some developer is using clang to compile OpenCL 
> application it might accidentally include opencl.h provided with Clang 
> instead of opencl.h with OpenCL host API.


Right. We'd better come up with another name. How about opencl-c.h?


================
Comment at: lib/Headers/opencl.h:4870
@@ +4869,3 @@
+
+#ifdef cl_khr_fp64
+char __const_func __attribute__((overloadable)) convert_char(double);
----------------
bader wrote:
> Sam, could you confirm that this macro id implicitly defined for OpenCL 
> versions 1.2+?
AMDGPU target defines it. However, SPIR target does not. As discussed at 
cfe-dev, SPIR target should define all extensions/optional core features as 
supported. I will open a review for that.


http://reviews.llvm.org/D18369



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to