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)
commitcaf175c28c8bbbe857834a3c885c56419fa30427
tree66e326604e8ebeaafbb4b9025670e2e3e7d36767
parentf7aa7e6f4989c7361a74baf3aadaa7f8f1e1c111
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyInstrControl.td
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
test/CodeGen/WebAssembly/return-void.ll [new file with mode: 0644]