atomic: define extension functions for existing atomic implementations

We were missing the local versions of the atom_* before

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217911 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Add generic implementation of atom[ic]_max

Not used yet...

v2: Correct int/uint behavior

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217912 91177308-0d34-0410-b5e6-96231b3b80d8
atomics: Add generic atom[ic]_and

Not used yet.

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217913 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Add atom[ic]_or

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217914 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Add generic atom[ic]_xor

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217915 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Add generic atomic_min implementation

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217916 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Implement generic atom[ic]_xchg

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217917 91177308-0d34-0410-b5e6-96231b3b80d8
atomic: Add generic atom[ic]_cmpxchg

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217918 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map atomic_and address spaces

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217919 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map address spaces for atomic_or

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217920 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map addr spaces and use atomic_max

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217921 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map address spaces for atomic_xor

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217922 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map address spaces for atomic_min

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217923 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map address spaces for atomic_xchg

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217924 91177308-0d34-0410-b5e6-96231b3b80d8
R600: Map Address spaces for atomic_cmpxchg

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

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@217925 91177308-0d34-0410-b5e6-96231b3b80d8