diff options
author | JF Bastien <jfb@google.com> | 2015-07-31 21:04:18 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2015-07-31 21:04:18 +0000 |
commit | caf175c28c8bbbe857834a3c885c56419fa30427 (patch) | |
tree | 66e326604e8ebeaafbb4b9025670e2e3e7d36767 /lib/Target/WebAssembly/WebAssemblyInstrInfo.td | |
parent | f7aa7e6f4989c7361a74baf3aadaa7f8f1e1c111 (diff) |
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
Diffstat (limited to 'lib/Target/WebAssembly/WebAssemblyInstrInfo.td')
-rw-r--r-- | lib/Target/WebAssembly/WebAssemblyInstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td index 6084d14874a..912f84c6b9a 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInfo.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrInfo.td @@ -26,7 +26,7 @@ def HasSIMD128 : Predicate<"Subtarget->hasSIMD128()">, //===----------------------------------------------------------------------===// def SDT_WebAssemblyArgument : SDTypeProfile<1, 1, [SDTCisVT<1, i32>]>; -def SDT_WebAssemblyReturn : SDTypeProfile<0, 1, []>; +def SDT_WebAssemblyReturn : SDTypeProfile<0, -1, []>; //===----------------------------------------------------------------------===// // WebAssembly-specific DAG Nodes. |