llvm-project/llvm/include/llvm-c
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
..
Transforms [ArgPromotion] Remove legacy PM support 2022-06-27 09:42:17 +02:00
Analysis.h
BitReader.h
BitWriter.h
Comdat.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Core.h [IR] Remove support for extractvalue constant expression 2022-06-28 10:40:17 +02:00
DataTypes.h
DebugInfo.h Cleanup header dependencies in LLVMCore 2022-02-02 06:54:20 +01:00
Deprecated.h [llvm-c] Add header deprecations 2021-12-06 09:17:10 +01:00
Disassembler.h
DisassemblerTypes.h [MCDisassembler] Disambiguate Size parameter in tryAddingSymbolicOperand() 2022-05-25 13:44:32 -07:00
Error.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
ErrorHandling.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
ExecutionEngine.h
ExternC.h
IRReader.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Initialization.h
LLJIT.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Linker.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Object.h [Binary] Promote OffloadBinary to inherit from Binary 2022-06-01 18:40:57 -04:00
Orc.h [C-API][ORC] Add C API to suspend lookups during definition generation. 2022-06-13 17:20:07 -07:00
OrcEE.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Remarks.h
Support.h [NFC][Docs] Add missing Doxygen group comments for LLVM-C 2021-11-07 12:23:17 +01:00
Target.h
TargetMachine.h const char* for LLVMTargetMachineEmitToFile's argument 2022-05-07 14:40:55 +00:00
Types.h
blake3.h [Support/BLAKE3] LLVM-specific changes over the original BLAKE3 C implementation 2022-03-24 10:26:39 -07:00
lto.h [LTO][Legacy] Add new API to check presence of ctor/dtor functions. 2021-07-28 12:41:56 +00:00
module.modulemap