WebAssembly: handle `ret void`.
authorJF Bastien <jfb@google.com>
Fri, 31 Jul 2015 21:04:18 +0000 (21:04 +0000)
committerJF Bastien <jfb@google.com>
Fri, 31 Jul 2015 21:04:18 +0000 (21:04 +0000)
commit4a2d56044f966007ec76519d2998f5d687aa16fc
tree378c20eb334a8fbee3abf73a135081f4f3b86ce8
parentc18daf29ae8ca5edcceea7270dbf4b7bc682ca48
WebAssembly: handle `ret void`.

Summary:
Use -1 as numoperands for the return SDTypeProfile, denoting that return is variadic. Note that the patterns in InstrControl.td still need to match the inputs, so this ins't an "anything goes" variadic on ret!

The next step will be to handle other local types (not just int32).

Reviewers: sunfish

Subscribers: llvm-commits, jfb

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

llvm-svn: 243783
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
llvm/test/CodeGen/WebAssembly/return-void.ll [new file with mode: 0644]