1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/test
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 [test][NewPM] Make dead-uses.ll work under NPM 2020-10-06 07:33:02 -07:00
Assembler Revert "OpaquePtr: Add type to sret attribute" 2020-09-29 10:31:04 +02:00
Bindings C API: functions to get mask of a ShuffleVector 2020-09-25 16:01:05 -07:00
Bitcode [AttributeFuncs] Consider align in typeIncompatible 2020-10-05 23:23:05 -05:00
BugPoint
CodeGen [WebAssembly] Rename Emscripten EH functions 2020-10-07 09:42:49 -07:00
DebugInfo [SROA] rewritePartition()/findCommonType(): if uses have conflicting type, try getTypePartition() before falling back to largest integral use type (PR47592) 2020-10-07 09:20:19 +03:00
Demangle
Examples
ExecutionEngine [JITLink][ELF] Handle BSS sections, improve some error messages. 2020-10-05 21:35:35 -07:00
Feature
FileCheck
Instrumentation [asan] Stop instrumenting user-defined ELF sections 2020-10-03 19:54:38 +02:00
Integer
JitListener
Linker
LTO
MachineVerifier
MC [AMDGPU] Use @LINE for error checking in gfx10.3 assembler tests 2020-10-07 15:48:01 +01:00
Object [Archive] Don't throw away errors for malformed archive members 2020-10-01 14:03:34 +01:00
ObjectYAML [DWARFYAML][test] Simplify __debug_pubnames/types tests. NFC. 2020-09-23 08:42:54 +08:00
Other [NewPM] collapsing nested pass mangers of the same type 2020-10-04 15:57:13 -07:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen [TableGen][GlobalISel] add handling of nested *_SUBREG 2020-10-05 10:42:18 +02:00
ThinLTO/X86 Revert D87970 "[ThinLTO] Avoid temporaries when loading global decl attachment metadata" 2020-09-23 10:24:08 -07:00
tools [AMDGPU] Support disassembly for AMDGPU kernel descriptors 2020-10-07 20:39:43 +05:30
Transforms [MemCpyOpt] Add additional callslot test cases (NFC) 2020-10-07 18:06:29 +02:00
Unit
Verifier [AttributeFuncs][FIX] Update new tests (D87304, D87306) after sret changes 2020-10-06 00:12:18 -05:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh