1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
Go to file
Daniel Paoliello 24ad32b97c [Coroutine] Split PHI Nodes in cleanuppad blocks in a way that obeys EH pad rules
Issue Details:
In order to support coroutine splitting, any multi-value PHI node in a coroutine is split into multiple blocks with single-value PHI Nodes, which then allows a subsequent transform to generate `reload` instructions as required (i.e., to reload the value if required if the coroutine has been resumed). This causes issues with EH pads (`catchswitch` and `catchpad`) as all pads within a `catchswitch` must have the same unwind destination, but the coroutine splitting logic may modify them to each have a unique unwind destination if there is a PHI node in the unwind `cleanuppad` that is set from values in the `catchswitch` and `cleanuppad` blocks.

Fix Details:
During splitting, if such a PHI node is detected, then create a "dispatcher" `cleanuppad` as well as the blocks with single-value PHI Nodes: thus the "dispatcher" is the unwind destination and it will detect which predecessor called it and then branch to the appropriate single-value PHI node block, which will then branch back to the original `cleanuppad` block.

Reviewed By: GorNishanov, lxfind

Differential Revision: https://reviews.llvm.org/D88059
2020-09-25 11:30:38 -07:00
benchmarks
bindings [OCaml] Remove add_constant_propagation 2020-08-27 09:30:21 -07:00
cmake [CMake] Make sure _cmake_system_name has a default 2020-09-25 11:33:12 -04:00
docs OpaquePtr: Add type to sret attribute 2020-09-25 14:07:30 -04:00
examples [ORC][examples] Add missing library dependencies. 2020-09-22 16:18:00 -07:00
include OpaquePtr: Add type to sret attribute 2020-09-25 14:07:30 -04:00
lib [Coroutine] Split PHI Nodes in cleanuppad blocks in a way that obeys EH pad rules 2020-09-25 11:30:38 -07:00
projects
resources
runtimes [AIX] Try to not use LLVM tools while building runtimes 2020-09-25 10:55:24 -04:00
test [Coroutine] Split PHI Nodes in cleanuppad blocks in a way that obeys EH pad rules 2020-09-25 11:30:38 -07:00
tools [llvm-exegesis] Add whitespace between words in error message 2020-09-24 18:20:57 +00:00
unittests [ValueTracking] Check uses of Argument if it is given to isGuaranteedNotToBeUndefOrPoison 2020-09-25 08:57:57 +09:00
utils [gn build] Port e336b74c995 2020-09-25 12:13:19 +00:00
.clang-format
.clang-tidy
.gitattributes
.gitignore [clangd] Store index in '.cache/clangd/index' instead of '.clangd/index' 2020-07-07 14:53:45 +02:00
CMakeLists.txt [cmake] Centralize LLVM_ENABLE_WARNINGS option 2020-09-21 10:23:17 -07:00
CODE_OWNERS.TXT Update PowerPC backend ownership in CODE_OWNERS.TXT 2020-09-14 15:45:57 -05:00
configure
CREDITS.TXT Update my email address. 2020-08-21 10:15:26 -07:00
LICENSE.TXT
llvm.spec.in
LLVMBuild.txt
README.txt Test commit. 2020-03-14 18:08:26 -07:00
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.