atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics implementation
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 21 Jun 2018 19:27:33 +0000 (19:27 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 21 Jun 2018 19:27:33 +0000 (19:27 +0000)
commit65e3541b789a5e7513910dd706dd18412c8ced0f
treeb89110eb0110dc646f1c008235cdfe152486ef6f
parentf965b46c8edfff3534958624b88f1dc9456b93b5
atom: Consolidate cl_khr_{local,global}_int32_{base,extended}_atomics implementation

These are just atomic_* wrappers.
Switch inc, dec to use atomic_* wrappers as well.

Reviewed-By: Aaron Watry <awatry@gmail.com>
Tested-By: Aaron Watry <awatry@gmail.com>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 335279
21 files changed:
libclc/generic/lib/atom_int32_binary.inc [new file with mode: 0644]
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_add.cl
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_sub.cl
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_xchg.cl
libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_and.cl
libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_max.cl
libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_min.cl
libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_or.cl
libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_add.cl
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_dec.cl
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_inc.cl
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_sub.cl
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_xchg.cl
libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_and.cl
libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_max.cl
libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl
libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_or.cl
libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_xor.cl