[PATCH] Sema: Accept pointers to any address space for builtin functions

Matt Arsenault Matthew.Arsenault at amd.com
Thu Mar 5 10:08:35 PST 2015


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



More information about the cfe-commits mailing list