yaxunl added a comment.

One of the difference between opencl-12.cl and opencl-20.cl is opencl-12.cl 
defines

  #define const_func __attribute__((const))
  #define readonly __attribute__((pure))

and uses them for many functions, e.g.

  float const_func __attribute__((overloadable)) acos(float);

I think this is a nice feature for performance. However surprisingly 
opencl-20.cl does not do that.

I suggest to keep these attributes in the merged file. What do you think? 
Thanks.


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