aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-07-02 21:22:59 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-07-02 21:22:59 +0000
commit402b49084326f10d190f64fc46c04fdfec146f93 (patch)
tree9320f66d6a4ecfa02e85b157141f2f84cb3ddc9f /llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
parentfd10286e047d1264d531fb829915b60359436c86 (diff)
downloadllvm-402b49084326f10d190f64fc46c04fdfec146f93.zip
llvm-402b49084326f10d190f64fc46c04fdfec146f93.tar.gz
llvm-402b49084326f10d190f64fc46c04fdfec146f93.tar.bz2
[WebAssembly] Support for atomic stores
Summary: Add support for atomic store instructions. Reviewers: dschuff Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D48839 llvm-svn: 336145
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp b/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
index 93c109f..6f0ae89 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
@@ -118,6 +118,13 @@ bool WebAssemblySetP2AlignOperands::runOnMachineFunction(MachineFunction &MF) {
case WebAssembly::STORE8_I64:
case WebAssembly::STORE16_I64:
case WebAssembly::STORE32_I64:
+ case WebAssembly::ATOMIC_STORE_I32:
+ case WebAssembly::ATOMIC_STORE8_I32:
+ case WebAssembly::ATOMIC_STORE16_I32:
+ case WebAssembly::ATOMIC_STORE_I64:
+ case WebAssembly::ATOMIC_STORE8_I64:
+ case WebAssembly::ATOMIC_STORE16_I64:
+ case WebAssembly::ATOMIC_STORE32_I64:
RewriteP2Align(MI, WebAssembly::StoreP2AlignOperandNo);
break;
default: