Skip to content
Commit 999b1d94 authored by Jan Vesely's avatar Jan Vesely
Browse files

amdgcn: rewrite barrier() using fence and clang __builtin_amdgcn_s_barrier



Specs require using fences when barrier() is invoked:
"The barrier function will either flush any variables stored in local memory
or queue a memory fence to ensure correct ordering of memory operations to local memory."
and
"The barrier function will queue a memory fence to ensure correct ordering
of memory operations to global memory."

Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: default avatarAaron Watry <awatry@gmail.com>
Tested-by: default avatarAaron Watry <awatry@gmail.com>
llvm-svn: 311022
parent 1977092d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment