[PATCH] D66794: Add atomic.fence instruction

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 03:33:44 PDT 2019


aheejin created this revision.
aheejin added reviewers: dschuff, tlively.
Herald added subscribers: llvm-commits, jfb, sunfish, hiraditya, jgravelle-google, sbc100.
Herald added a project: LLVM.

This adds `atomic.fence` instruction:
https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#fence-operator

And we now emit the new `atomic.fence` instruction for multithread
fences, rather than the prevous `atomic.rmw` hack.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66794

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
  llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
  llvm/test/CodeGen/WebAssembly/atomic-fence.ll
  llvm/test/MC/WebAssembly/atomics-encodings.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66794.217353.patch
Type: text/x-patch
Size: 8423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190827/991e5cfd/attachment.bin>


More information about the llvm-commits mailing list