[VE] Support atomic fence
authorKazushi (Jam) Marukawa <marukawa@nec.com>
Sun, 25 Oct 2020 02:11:49 +0000 (11:11 +0900)
committerKazushi (Jam) Marukawa <marukawa@nec.com>
Mon, 26 Oct 2020 08:03:09 +0000 (17:03 +0900)
commit52f03fe1151f65278c855651bb8f325cca8500ea
tree7e112f7714eb6cd6360ebf135c678ce09292684d
parentbfabd7878b3240732d64b09eeadbc1eccc21910a
[VE] Support atomic fence

Support atomic fence instruction and add a regression test.
Add MEMBARRIER pseudo insturction also to use it as a barrier
against to the compiler optimizations.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D90112
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/lib/Target/VE/VEISelLowering.h
llvm/lib/Target/VE/VEInstrInfo.td
llvm/test/CodeGen/VE/atomic_fence.ll [new file with mode: 0644]