Files
archived-llvm/test/CodeGen/WebAssembly
JF Bastien 8cafdf539b WebAssembly: update syntax
Summary:
Follow the same syntax as for the spec repo. Both have evolved slightly
independently and need to converge again.

This, along with wasmate changes, allows me to do the following:

  echo "int add(int a, int b) { return a + b; }" > add.c
  ./out/bin/clang -O2 -S --target=wasm32-unknown-unknown add.c -o add.wack
  ./experimental/prototype-wasmate/wasmate.py add.wack > add.wast
  ./sexpr-wasm-prototype/out/sexpr-wasm add.wast -o add.wasm
  ./sexpr-wasm-prototype/third_party/v8-native-prototype/v8/v8/out/Release/d8 -e "print(WASM.instantiateModule(readbuffer('add.wasm'), {print:print}).add(42, 1337));"

As you'd expect, the d8 shell prints out the right value.

Reviewers: sunfish

Subscribers: jfb, llvm-commits, dschuff

Differential Revision: http://reviews.llvm.org/D13712

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250480 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-16 00:53:49 +00:00
..
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00
2015-10-16 00:53:49 +00:00