HomePhabricator

[WebAssembly] Implement __builtin_return_address for emscripten

Description

[WebAssembly] Implement __builtin_return_address for emscripten

Summary:
In this patch, ISD::RETURNADDR is lowered on the emscripten target
to the new Emscripten runtime function emscripten_return_address, which
implements the functionality.

Patch by Guanzhong Chen

Reviewers: tlively, aheejin

Reviewed By: tlively

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62210

Details

Committed
tlivelyMay 22 2019, 6:24 PM
Reviewer
tlively
Differential Revision
D62210: [WebAssembly] Implement __builtin_return_address for emscripten
Parents
rL361453: [X86] Support -fno-plt __tls_get_addr calls
Branches
Unknown
Tags
Unknown