[PATCH] D62210: [WebAssembly] Implement __builtin_return_address for emscripten
Guanzhong Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 10:50:59 PDT 2019
quantum created this revision.
quantum added reviewers: tlively, aheejin.
Herald added subscribers: llvm-commits, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
In this patch, `ISD::RETURNADDR` is lowered on the emscripten target
to the new Emscripten runtime function `emscripten_return_address`, which
implements the functionality.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62210
Files:
llvm/include/llvm/IR/RuntimeLibcalls.def
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.h
llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
llvm/test/CodeGen/WebAssembly/return-address.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62210.200541.patch
Type: text/x-patch
Size: 4814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190521/b3144b2e/attachment.bin>
More information about the llvm-commits
mailing list