[Libclc-dev] [PATCH] vload/vstore: Use casts instead of scalarizing everything in CLC version

Matt Arsenault Matthew.Arsenault at amd.com
Fri Aug 15 09:57:25 PDT 2014


On 08/15/2014 09:55 AM, Matt Arsenault wrote:
> On 08/15/2014 09:43 AM, Tom Stellard wrote:
>> I don't think it's possible to implement a single store version of 
>> vec3 using
>> OpenCL C, because if you cast a pointer as a vec3 type, clang will will
>> try to store a vec4 value to it, because sizeof(vec3) == sizeof(vec4) in
>> memory.
>>
>> -Tom
> I guess it would be appropriate to write this one directly in IR then
Actually that kind of seems like a clang bug. It should be emitting the 
load on the actual type with whatever alignment, not the type the 
rounded size happens to be




More information about the Libclc-dev mailing list