[WebAssembly] Add support for -mexec-model=reactor
authorDan Gohman <sunfish@mozilla.com>
Tue, 21 Apr 2020 17:35:10 +0000 (10:35 -0700)
committerDan Gohman <sunfish@mozilla.com>
Wed, 3 Jun 2020 21:02:47 +0000 (14:02 -0700)
commitd496437a0bfd6d135343026cdb7b6a69cb6af536
treefb614d69e16fee6587780d8c90314fa6df4e3a53
parent900f78a714c583dd87432a9c89f6ccade8430fac
[WebAssembly] Add support for -mexec-model=reactor

This adds a -mexec-model= command-line flag. The default value is "command"
which is no change from the current behavior. The other option is "reactor"
which enables the WASI Reactor ABI:

https://github.com/WebAssembly/WASI/blob/master/design/application-abi.md

Differential Revision: https://reviews.llvm.org/D62922
clang/docs/ClangCommandLineReference.rst
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/WebAssembly.cpp
clang/test/Driver/wasm-toolchain.c