//===-- README.txt - Notes for WebAssembly code gen -----------------------===// This WebAssembly backend is presently under development. Currently the easiest way to use it is through Emscripten, which provides a compilation environment that includes standard libraries, tools, and packaging for producing WebAssembly applications that can run in browsers and other environments. For more information, see the Emscripten documentation in general, and this page in particular: * https://github.com/kripken/emscripten/wiki/New-WebAssembly-Backend Other ways of using this backend, such as via a standalone "clang", are also under development, though they are not generally usable yet. For more information on WebAssembly itself, see the home page: * https://webassembly.github.io/ The following documents contain some information on the semantics and binary encoding of WebAssembly itself: * https://github.com/WebAssembly/design/blob/master/Semantics.md * https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md The backend is built, tested and archived on the following waterfall: https://wasm-stat.us The backend's bringup is done in part by using the GCC torture test suite, since it doesn't require C library support. Current known failures are in known_gcc_test_failures.txt, all other tests should pass. The waterfall will turn red if not. Once most of these pass, further testing will use LLVM's own test suite. The tests can be run locally using: https://github.com/WebAssembly/waterfall/blob/master/src/compile_torture_tests.py //===---------------------------------------------------------------------===// Br, br_if, and br_table instructions can support having a value on the value stack across the jump (sometimes). We should (a) model this, and (b) extend the stackifier to utilize it. //===---------------------------------------------------------------------===// The min/max instructions aren't exactly a