vload/vstore: Use casts instead of scalarizing everything in CLC version
authorAaron Watry <awatry@gmail.com>
Wed, 20 Aug 2014 13:58:57 +0000 (13:58 +0000)
committerAaron Watry <awatry@gmail.com>
Wed, 20 Aug 2014 13:58:57 +0000 (13:58 +0000)
commitf991505d02dae4c2e9cd9ae02372a3116da2a14b
tree99138f8a26c76632c9db66bf8622e97c38a6ddda
parent474972585a1f4328c9f3138c88365a43c11556c0
vload/vstore: Use casts instead of scalarizing everything in CLC version

This generates bitcode which is indistinguishable from what was
hand-written for int32 types in v[load|store]_impl.ll.

v4: Use vec2+scalar for vec3 load/stores to prevent corruption (per Tom)
v3: Also remove unused generic/lib/shared/v[load|store]_impl.ll
v2: (Per Matt Arsenault) Fix alignment issues with vector load stores

Signed-off-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
CC: Matt Arsenault <Matthew.Arsenault@amd.com>
CC: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 216069
libclc/generic/lib/SOURCES
libclc/generic/lib/shared/vload.cl
libclc/generic/lib/shared/vload_impl.ll [deleted file]
libclc/generic/lib/shared/vstore.cl
libclc/generic/lib/shared/vstore_impl.ll [deleted file]
libclc/r600/lib/SOURCES
libclc/r600/lib/shared/vload.cl [deleted file]
libclc/r600/lib/shared/vstore.cl [deleted file]