aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2017-08-30 18:07:45 +0000
committerDerek Schuff <dschuff@google.com>2017-08-30 18:07:45 +0000
commit18ba1928436d719fd4a93dbdd0113c7698f9c2e7 (patch)
tree12613f2a368804b6751a12b58fe0281345122140 /llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
parent05782218abd549e0c1bc77032fa9b55526371cfd (diff)
downloadllvm-18ba1928436d719fd4a93dbdd0113c7698f9c2e7.zip
llvm-18ba1928436d719fd4a93dbdd0113c7698f9c2e7.tar.gz
llvm-18ba1928436d719fd4a93dbdd0113c7698f9c2e7.tar.bz2
[WebAssembly] Add target feature for atomics
Summary: This tracks the WebAssembly threads feature proposal at https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md Differential Revision: https://reviews.llvm.org/D37300 llvm-svn: 312145
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp b/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
index b1385f4..a418f65 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
@@ -96,6 +96,7 @@ bool WebAssemblySetP2AlignOperands::runOnMachineFunction(MachineFunction &MF) {
case WebAssembly::LOAD16_U_I64:
case WebAssembly::LOAD32_S_I64:
case WebAssembly::LOAD32_U_I64:
+ case WebAssembly::ATOMIC_LOAD_I32:
RewriteP2Align(MI, WebAssembly::LoadP2AlignOperandNo);
break;
case WebAssembly::STORE_I32: