[WebAssembly] Add mutable globals feature
authorThomas Lively <tlively@google.com>
Fri, 29 Mar 2019 22:00:18 +0000 (22:00 +0000)
committerThomas Lively <tlively@google.com>
Fri, 29 Mar 2019 22:00:18 +0000 (22:00 +0000)
commit5f0c4c67bbff5374b196578486a16147cb786548
treee66d05e4810f760c273b7a4a3d477ceefd008103
parent32fd32bc6f6de46b96c9e09575694d34f248d6ee
[WebAssembly] Add mutable globals feature

Summary:
This feature is not actually used for anything in the WebAssembly
backend, but adding it allows users to get it into the target features
sections of their objects, which makes these objects
future-compatible.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, jdoerfert, cfe-commits, llvm-commits

Tags: #clang, #llvm

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

llvm-svn: 357321
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets/WebAssembly.cpp
clang/lib/Basic/Targets/WebAssembly.h
clang/test/Preprocessor/wasm-target-features.c
llvm/lib/Target/WebAssembly/WebAssembly.td
llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h
llvm/test/CodeGen/WebAssembly/mutable-globals.ll [new file with mode: 0644]