[PATCH] D57323: [WebAssembly] Enable main-function signature rewriting for WASI
Dan Gohman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 05:19:19 PST 2019
sunfish created this revision.
sunfish added reviewers: sbc100, dschuff, aheejin.
Herald added a subscriber: jgravelle-google.
Enable the functionality to rewrite the signature of "int main(void)" functions to "int main(int argc, char *argv[])" on WASI, so that they can be called by the C startup code, since WebAssembly requires caller and callee signatures to match.
Repository:
rL LLVM
https://reviews.llvm.org/D57323
Files:
lib/Target/WebAssembly/WebAssemblyFixFunctionBitcasts.cpp
test/CodeGen/WebAssembly/wasi-main-no-args.ll
test/CodeGen/WebAssembly/wasi-main-three-args.ll
test/CodeGen/WebAssembly/wasi-main-with-args.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57323.183833.patch
Type: text/x-patch
Size: 5395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/a439f8c9/attachment.bin>
More information about the llvm-commits
mailing list