[PATCH] D71496: [WebAssembly] Split and recombine multivalue calls for ISel
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 15:27:32 PST 2019
tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: llvm-commits, sunfish, hiraditya, jgravelle-google, sbc100.
Herald added a project: LLVM.
Multivalue calls both take and return an arbitrary number of
arguments, but ISel only supports one or the other in a single
instruction. To get around this, calls are modeled as two pseudo
instructions during ISel. These pseudo instructions, CALL_PARAMS and
CALL_RESULTS, are recombined into a single CALL MachineInstr in a
custom emit hook.
RegStackification and the MC layer will additionally need to be made
aware of multivalue calls before the tests will produce correct
output.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71496
Files:
llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyInstrCall.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71496.233888.patch
Type: text/x-patch
Size: 4855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191213/f8579445/attachment.bin>
More information about the llvm-commits
mailing list