1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
Go to file
Heejin Ahn 4214250471 [WebAssemblly] Fix rethrow's argument computation
Previously we assumed `rethrow`'s argument was always 0, but it turned
out `rethrow` follows the same rule with `br` or `delegate`:
https://github.com/WebAssembly/exception-handling/pull/137
https://github.com/WebAssembly/exception-handling/issues/146#issuecomment-777349038

Currently `rethrow`s generated by our backend always rethrow the
exception caught by the innermost enclosing catch, so this adds a
function to compute that and replaces `rethrow`'s argument with its
computed result.

This also renames `EHPadStack` in `InstPrinter` to `TryStack`, because
in CFGStackify we use `EHPadStack` to mean the range between
`catch`~`end`, while in `InstPrinter` we used it to mean the range
between `try`~`catch`, so choosing different names would look clearer.
Doesn't contain any functional changes in `InstPrinter`.

Reviewed By: dschuff

Differential Revision: https://reviews.llvm.org/D96595
2021-02-13 03:43:15 -08:00
benchmarks
bindings
cmake Support multi-configuration generators correctly in several config files 2021-02-11 09:32:20 -08:00
docs [LangRef] Update memory access ops to raise UB if ptrs are not well defined 2021-02-13 14:13:19 +09:00
examples [Draft] [examples] Move llvm/examples/OCaml-Kaleidoscope/ to llvm-archive 2021-02-11 06:52:24 +05:30
include [LTO] Perform DSOLocal propagation in combined index 2021-02-12 22:58:26 -08:00
lib [WebAssemblly] Fix rethrow's argument computation 2021-02-13 03:43:15 -08:00
projects
resources
runtimes
test [WebAssemblly] Fix rethrow's argument computation 2021-02-13 03:43:15 -08:00
tools [llvm-objcopy] preserve file ownership when overwritten by root 2021-02-12 18:01:43 -08:00
unittests [RGT][GlobalIsel] Add missing setUp() calls to legalizer unittests 2021-02-12 10:45:48 -08:00
utils [TableGen] Use ListSeparator (NFC) 2021-02-12 23:44:30 -08:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [Timer] On macOS count number of executed instructions 2021-02-11 17:26:37 +01:00
CODE_OWNERS.TXT
configure
CREDITS.TXT
LICENSE.TXT
llvm.spec.in
README.txt
RELEASE_TESTERS.TXT

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.