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.
Paths
| Differential D66794
[WebAssembly] Add atomic.fence instruction ClosedPublic Authored by aheejin on Aug 27 2019, 3:33 AM.
Details Summary This adds atomic.fence instruction: And we now emit the new atomic.fence instruction for multithread
Diff Detail
Event Timelineaheejin retitled this revision from Add atomic.fence instruction to [WebAssembly] Add atomic.fence instruction.Aug 27 2019, 3:33 AM dschuff added inline comments.
This revision is now accepted and ready to land.Aug 27 2019, 8:44 AM aheejin marked an inline comment as done. Comment Actions
Closed by commit rL370272: [WebAssembly] Add atomic.fence instruction (authored by aheejin). · Explain WhyAug 28 2019, 4:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 217634 llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
llvm/test/CodeGen/WebAssembly/atomic-fence.ll
llvm/test/CodeGen/WebAssembly/atomic-fence.mir
llvm/test/MC/WebAssembly/atomics-encodings.s
|
This line can be removed.