wasm: implement `@atomicRmw`

Implements the lowering of the `@atomicRmw` builtin. Uses the atomic
opcodes when the cpu feature `atomics` is enabled. Otherwise lowers
it to regular instructions. For the operations that do not lower to
a direct atomic opcode, we use a loop in combiantion with a cmpxchg
to ensure the swapping of values is doing atomically.
b19c258f04Luuk de Gram committed on 4/26/2023, 2:28:40 PMparentfd47edd
2 files changedLine totals unavailable