Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,ext…
…ended}_atomics int64 versions were switched to volatile pointers in cl1.1 cl1.1 also renamed atom_ functions to atomic_ that use volatile pointers. CTS and applications use volatile pointers. Passes CTS on carrizo no return piglit tests still pass on turks. 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: 335280
- Loading branch information
Showing
14 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_global_int32_base_atomics/atom_cmpxchg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(global int *p, int cmp, int val); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(global unsigned int *p, unsigned int cmp, unsigned int val); | ||
_CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(volatile global int *p, int cmp, int val); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(volatile global unsigned int *p, unsigned int cmp, unsigned int val); |
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_global_int32_base_atomics/atom_dec.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_dec(global int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(global unsigned int *p); | ||
_CLC_OVERLOAD _CLC_DECL int atom_dec(volatile global int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(volatile global unsigned int *p); |
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_global_int32_base_atomics/atom_inc.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_inc(global int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(global unsigned int *p); | ||
_CLC_OVERLOAD _CLC_DECL int atom_inc(volatile global int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(volatile global unsigned int *p); |
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_local_int32_base_atomics/atom_cmpxchg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(local int *p, int cmp, int val); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(local unsigned int *p, unsigned int cmp, unsigned int val); | ||
_CLC_OVERLOAD _CLC_DECL int atom_cmpxchg(volatile local int *p, int cmp, int val); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_cmpxchg(volatile local unsigned int *p, unsigned int cmp, unsigned int val); |
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_local_int32_base_atomics/atom_dec.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_dec(local int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(local unsigned int *p); | ||
_CLC_OVERLOAD _CLC_DECL int atom_dec(volatile local int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_dec(volatile local unsigned int *p); |
4 changes: 2 additions & 2 deletions
4
libclc/generic/include/clc/cl_khr_local_int32_base_atomics/atom_inc.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
_CLC_OVERLOAD _CLC_DECL int atom_inc(local int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(local unsigned int *p); | ||
_CLC_OVERLOAD _CLC_DECL int atom_inc(volatile local int *p); | ||
_CLC_OVERLOAD _CLC_DECL unsigned int atom_inc(volatile local unsigned int *p); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_dec.cl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_inc.cl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters