1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/lib
Heejin Ahn 0ab2923b30 [WebAssembly] Rename Emscripten EH functions
Renaming for some Emscripten EH functions has so far been done in
wasm-emscripten-finalize tool in Binaryen. But recently we decided to
make a compilation/linking path that does not rely on
wasm-emscripten-finalize for modifications, so here we move that
functionality to LLVM.

Invoke wrappers are generated in LowerEmscriptenEHSjLj pass, but final
wasm types are not available in the IR pass, we need to rename them at
the end of the pipeline.

This patch also removes uses of `emscripten_longjmp_jmpbuf` in
LowerEmscriptenEHSjLj pass, replacing that with `emscripten_longjmp`.
`emscripten_longjmp_jmpbuf` is lowered to `emscripten_longjmp`, but
previously we generated calls to `emscripten_longjmp_jmpbuf` in
LowerEmscriptenEHSjLj pass because it takes `jmp_buf*` instead of `i32`.
But we were able use `ptrtoint` to make it use `emscripten_longjmp`
directly here.

Addresses:
https://github.com/WebAssembly/binaryen/issues/3043
https://github.com/WebAssembly/binaryen/issues/3081

Companions:
https://github.com/WebAssembly/binaryen/pull/3191
https://github.com/emscripten-core/emscripten/pull/12399

Reviewed By: dschuff, tlively, sbc100

Differential Revision: https://reviews.llvm.org/D88697
2020-10-07 09:42:49 -07:00
..
Analysis [SimplifyLibCalls] Optimize mempcpy_chk to mempcpy 2020-10-06 17:08:46 +02:00
AsmParser Reapply [ADT] function_ref's constructor is unavailable if the argument is not callable. 2020-10-07 18:31:12 +02:00
BinaryFormat DebugInfo: Cleanup RLE dumping, using a length-constrained DataExtractor rather than carrying the end offset separately 2020-09-18 19:32:38 -07:00
Bitcode Reapply [ADT] function_ref's constructor is unavailable if the argument is not callable. 2020-10-07 18:31:12 +02:00
Bitstream [Bitstream] Use alignTo to make code more readable. NFC 2020-09-01 11:06:45 -07:00
CodeGen [SDag] SimplifyDemandedBits: simplify to FP constant if all bits known 2020-10-07 09:24:38 +01:00
DebugInfo Show register names in DWARF unwind info. 2020-10-05 15:34:33 -07:00
Demangle
DWARFLinker [llvm] Rename DwarfFile to DWARFFile to fix ODR violation (NFC) 2020-10-04 23:46:36 -07:00
ExecutionEngine [RuntimeDyld][COFF] Report fatal error on error, rather than emiting diagnostic. 2020-10-06 15:16:29 -07:00
Extensions Remove unused variable(s) 2020-09-08 16:58:01 -07:00
FileCheck Reland [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library 2020-09-01 14:59:28 +02:00
Frontend [OpenMP][OMPBuilder] Adding support for omp single 2020-08-16 01:15:16 -04:00
Fuzzer
FuzzMutate
InterfaceStub [lib/Object] - Refine interface of ELFFile<ELFT>. NFCI. 2020-09-15 11:38:31 +03:00
IR [AttributeFuncs] Consider noundef in typeIncompatible 2020-10-05 23:23:06 -05:00
IRReader
LineEditor
Linker [ThinLTO] Fix a metadata lost issue with DICompileUnit import. 2020-09-02 14:40:41 -07:00
LTO [ThinLTO] Option to bypass function importing. 2020-09-22 13:12:11 -07:00
MC Revert "[CFGuard] Add address-taken IAT tables and delay-load support" 2020-10-01 11:29:54 -07:00
MCA [APInt] New member function setBitVal 2020-09-02 21:40:31 +01:00
Object [llvm-objcopy][MachO] Add support for universal binaries 2020-10-06 04:01:40 -07:00
ObjectYAML [obj2yaml] - Rename Group to GroupSection. NFC. 2020-10-07 17:04:15 +03:00
Option [NFC] Fix the signature and definition of findByPrefix 2020-09-11 12:38:28 +01:00
Passes [NewPM] Set -enable-npm-optnone to true by default 2020-10-05 18:42:32 -07:00
ProfileData [Coverage] Add empty line regions to SkippedRegions 2020-09-21 12:42:53 -07:00
Remarks BitstreamRemarkParser.h - remove unnecessary includes. NFCI. 2020-08-06 13:17:53 +01:00
Support [json] Provide a means to delegate writing a value to another API 2020-10-07 18:31:45 +02:00
TableGen [TableGen] New backend to print detailed records. 2020-10-02 10:22:13 -04:00
Target [WebAssembly] Rename Emscripten EH functions 2020-10-07 09:42:49 -07:00
Testing [cmake] Make gtest include directories a part of the library interface 2020-08-27 15:35:57 +02:00
TextAPI [TextAPI] update DriverKit string value 2020-08-15 06:44:30 -07:00
ToolDrivers
Transforms InstCombine: Negator: don't rely on complexity sorting already being performed (PR47752) 2020-10-07 15:09:50 +03:00
WindowsManifest [CMake] Simplify CMake handling for libxml2 2020-09-09 21:44:44 -07:00
XRay
CMakeLists.txt Reland [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library 2020-09-01 14:59:28 +02:00
LLVMBuild.txt [elfabi] Move llvm-elfabi related code to InterfaceStub library 2020-08-13 11:51:44 -07:00