[lld][WebAssembly] Allow `atomics` feature with unshared memory

Authored by tlively on Sep 24 2020, 8:35 PM.


[lld][WebAssembly] Allow atomics feature with unshared memory

https://github.com/WebAssembly/threads/issues/144 updated the
WebAssembly threads proposal to make atomic operations on unshared memories
valid. This change updates the feature checking in the linker accordingly.
Production WebAssembly engines have recently been updated to allow this
behvaior, but after this change users who accidentally use atomics with unshared
memories on older versions of the engines will get validation errors at runtime
rather than link errors.

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