llvm-project/llvm/test/CodeGen/WebAssembly
JF Bastien 1d20a5e9e8 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

llvm-svn: 250480
2015-10-16 00:53:49 +00:00
..
call.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
cfg-stackify.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
comparisons_f32.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
comparisons_f64.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
comparisons_i32.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
comparisons_i64.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
conv.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
cpus.ll WebAssembly: print basic integer assembly. 2015-07-31 17:53:38 +00:00
f32.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
f64.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
fast-isel.ll [WebAssembly] Switch to a more traditional assembly syntax 2015-10-06 00:27:55 +00:00
func.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
global.ll [WebAssembly] Switch to a more traditional assembly syntax 2015-10-06 00:27:55 +00:00
globl.ll [WebAssembly] Switch to a more traditional assembly syntax 2015-10-06 00:27:55 +00:00
i32.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
i64.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
immediates.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
lit.local.cfg
load-ext.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
load-store-i1.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
load.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
memory-addr32.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
memory-addr64.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
phi.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
return-void.ll [WebAssembly] Switch to a more traditional assembly syntax 2015-10-06 00:27:55 +00:00
store-trunc.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
store.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00
switch.ll [WebAssembly] Switch to a more traditional assembly syntax 2015-10-06 00:27:55 +00:00
unused-argument.ll WebAssembly: update syntax 2015-10-16 00:53:49 +00:00