[WebAssembly] Support for a ternary atomic RMW instruction
authorHeejin Ahn <aheejin@gmail.com>
Wed, 1 Aug 2018 19:40:28 +0000 (19:40 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Wed, 1 Aug 2018 19:40:28 +0000 (19:40 +0000)
commitb3724b716982b6ed61ee6e2eb63d3f4b08e1723c
treef4df8d906e197732e27e75ddad47a73bb808c9c7
parentd4dd7215f62eac518bdee21bba64622134dfa637
[WebAssembly] Support for a ternary atomic RMW instruction

Summary: This adds support for a ternary atomic RMW instruction: cmpxchg.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D49195

llvm-svn: 338617
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
llvm/lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
llvm/lib/Target/WebAssembly/WebAssemblySetP2AlignOperands.cpp
llvm/test/CodeGen/WebAssembly/atomic-mem-consistency.ll
llvm/test/CodeGen/WebAssembly/atomic-rmw.ll
llvm/test/CodeGen/WebAssembly/offset-atomics.ll