llvm-project/llvm/lib/Transforms/Coroutines
Nikita Popov 5548e807b5 [IR] Remove support for extractvalue constant expression
This removes the extractvalue constant expression, as part of
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179.
extractvalue is already not supported in bitcode, so we do not need
to worry about bitcode auto-upgrade.

Uses of ConstantExpr::getExtractValue() should be replaced with
IRBuilder::CreateExtractValue() (if the fact that the result is
constant is not important) or ConstantFoldExtractValueInstruction()
(if it is). Though for this particular case, it is also possible
and usually preferable to use getAggregateElement() instead.

The C API function LLVMConstExtractValue() is removed, as the
underlying constant expression no longer exists. Instead,
LLVMBuildExtractValue() should be used (which will constant fold
or create an instruction). Depending on the use-case,
LLVMGetAggregateElement() may also be used instead.

Differential Revision: https://reviews.llvm.org/D125795
2022-06-28 10:40:17 +02:00
..
CMakeLists.txt [PassManager][Coroutine] Run passes under -O0 conditionally and run GlobalDCE 2022-03-23 11:03:26 -07:00
CoroCleanup.cpp [Coroutines] Convert coroutine.presplit to enum attr 2022-06-14 14:23:46 +08:00
CoroConditionalWrapper.cpp [PassManager][Coroutine] Run passes under -O0 conditionally and run GlobalDCE 2022-03-23 11:03:26 -07:00
CoroEarly.cpp [Coroutines] Convert coroutine.presplit to enum attr 2022-06-14 14:23:46 +08:00
CoroElide.cpp [IR] Remove support for extractvalue constant expression 2022-06-28 10:40:17 +02:00
CoroFrame.cpp Revert "[Coroutines] Only do symmetric transfer if optimization is on" 2022-06-27 10:54:56 +08:00
CoroInstr.h [Coroutines] Offering llvm.coro.align intrinsic 2022-01-19 09:52:45 +08:00
CoroInternal.h Revert "[Coroutines] Only do symmetric transfer if optimization is on" 2022-06-27 10:54:56 +08:00
CoroSplit.cpp [Coroutine] Remove the '!func_sanitize' metadata for split functions 2022-06-27 12:09:13 -07:00
Coroutines.cpp [iwyu] Handle regressions in libLLVM header include 2022-05-04 08:32:38 +02:00