aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorJeroen Ketema <j.ketema@xs4all.nl>2017-10-09 19:43:04 +0000
committerJeroen Ketema <j.ketema@xs4all.nl>2017-10-09 19:43:04 +0000
commit1364d268a418bd77863f6f35e3fb285376441ecd (patch)
treea97f9e1701261cb48112a7e0af1fdc2eb58bc563 /llvm/lib/CodeGen/StackProtector.cpp
parent492d7134f3bdd76415d8e7b20a4f1c9a42b85e44 (diff)
downloadllvm-1364d268a418bd77863f6f35e3fb285376441ecd.zip
llvm-1364d268a418bd77863f6f35e3fb285376441ecd.tar.gz
llvm-1364d268a418bd77863f6f35e3fb285376441ecd.tar.bz2
Implement mem_fence on ptx
PTX does not differentiate between read and write fences. Hence, these a lowered to a mem_fence call. The mem_fence function compiles to the “member.cta” instruction, which commits all outstanding reads and writes of a thread such that these become visible to all other threads in the same CTA (i.e., work-group). The instruction does not differentiate between global and local memory. Hence, the flags parameter is ignored, except for deciding whether a “member.cta” instruction should be issued at all. Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 315235
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions