[PATCH] D49440: [WebAssembly] Enable atomic expansion for unsupported atomicrmws

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 17 11:43:15 PDT 2018


aheejin created this revision.
aheejin added a reviewer: dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100.

Wasm does not have direct counterparts to some of LLVM IR's atomicrmw
instructions (min, max, umin, umax, and nand). This enables atomic
expansion using cmpxchg instruction within a loop for those atomicrmw
instructions.


Repository:
  rL LLVM

https://reviews.llvm.org/D49440

Files:
  lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  lib/Target/WebAssembly/WebAssemblyISelLowering.h
  test/CodeGen/WebAssembly/atomic-rmw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49440.155935.patch
Type: text/x-patch
Size: 8360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180717/37249d12/attachment.bin>


More information about the llvm-commits mailing list