This is an archive of the discontinued LLVM Phabricator instance.

WebAssembly: handle `ret void`.
ClosedPublic

Authored by jfb on Jul 31 2015, 1:21 PM.

Details

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).

Diff Detail

Repository
rL LLVM

Event Timeline

jfb updated this revision to Diff 31158.Jul 31 2015, 1:21 PM
jfb retitled this revision from to WebAssembly: handle `ret void`..
jfb updated this object.
jfb added a reviewer: sunfish.
jfb added a subscriber: llvm-commits.
sunfish accepted this revision.Jul 31 2015, 1:53 PM
sunfish edited edge metadata.

lgtm

This revision is now accepted and ready to land.Jul 31 2015, 1:53 PM
This revision was automatically updated to reflect the committed changes.