On 03/05/2015 09:43 AM, Anastasia wrote:
Could you please look into this. The solution doesn't seem generic to me, 
because in OpenCL conversions from constant to other address spaces are not 
allowed. Which means this would most likely be a problem to handle correctly on 
the later compiler steps. In Clang however, we can avoid this issue by creating 
different overloads for such builtins and calling directly the right overload 
instead of having one overload and adding conversions to match it.

Yes, there shouldn't be a cast. The called intrinsic itself should have the other address space
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to