[libclc] r217923 - R600: Map address spaces for atomic_min

Aaron Watry awatry at gmail.com
Tue Sep 16 15:34:56 PDT 2014


Author: awatry
Date: Tue Sep 16 17:34:56 2014
New Revision: 217923

URL: http://llvm.org/viewvc/llvm-project?rev=217923&view=rev
Log:
R600: Map address spaces for atomic_min

Signed-off-by: Aaron Watry <awatry at gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

Modified:
    libclc/trunk/r600/lib/atomic/atomic.cl

Modified: libclc/trunk/r600/lib/atomic/atomic.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/r600/lib/atomic/atomic.cl?rev=217923&r1=217922&r2=217923&view=diff
==============================================================================
--- libclc/trunk/r600/lib/atomic/atomic.cl (original)
+++ libclc/trunk/r600/lib/atomic/atomic.cl Tue Sep 16 17:34:56 2014
@@ -33,3 +33,13 @@ ATOMIC_FUNC_DEFINE(signed, signed, int,
 ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_max, atomic_max, local, 3)
 ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_max, atomic_umax, global, 1)
 ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_max, atomic_umax, local, 3)
+
+_CLC_DECL signed int __clc_atomic_min_addr1(volatile global signed int*, signed int);
+_CLC_DECL signed int __clc_atomic_min_addr3(volatile local signed int*, signed int);
+_CLC_DECL uint __clc_atomic_umin_addr1(volatile global uint*, uint);
+_CLC_DECL uint __clc_atomic_umin_addr3(volatile local uint*, uint);
+
+ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_min, atomic_min, global, 1)
+ATOMIC_FUNC_DEFINE(signed, signed, int, atomic_min, atomic_min, local, 3)
+ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_min, atomic_umin, global, 1)
+ATOMIC_FUNC_DEFINE(unsigned, unsigned, int, atomic_min, atomic_umin, local, 3)





More information about the cfe-commits mailing list