[SystemZ] Support ATOMIC_FENCE
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Apr 2016 12:45:44 +0000 (12:45 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Apr 2016 12:45:44 +0000 (12:45 +0000)
commita9ac6d6cc225a25eb55c7edd8825780c44ee351e
tree5ade5d942142285fcb628155f98ce498102c7120
parentf557d083252598cc42ce1b5409edaa91a305c9f9
[SystemZ] Support ATOMIC_FENCE

A cross-thread sequentially consistent fence should be lowered into
z/Architecture's BCR serialization instruction, instead of causing a
fatal error in the back-end.

Author: bryanpkc
Differential Revision: http://reviews.llvm.org/D18644

llvm-svn: 265292
llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/lib/Target/SystemZ/SystemZInstrInfo.td
llvm/lib/Target/SystemZ/SystemZOperators.td
llvm/test/CodeGen/SystemZ/atomic-fence-01.ll [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/atomic-fence-02.ll [new file with mode: 0644]