[all-commits] [llvm/llvm-project] 7283f4: [IR] Remove support for insertvalue constant expre...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Jul 4 00:27:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7283f48a05de46fe8721ee6c29b1b6427e7d1a33
https://github.com/llvm/llvm-project/commit/7283f48a05de46fe8721ee6c29b1b6427e7d1a33
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-07-04 (Mon, 04 Jul 2022)
Changed paths:
M llvm/bindings/go/llvm/ir.go
M llvm/bindings/ocaml/llvm/llvm.ml
M llvm/bindings/ocaml/llvm/llvm.mli
M llvm/bindings/ocaml/llvm/llvm_ocaml.c
M llvm/docs/ReleaseNotes.rst
M llvm/include/llvm-c/Core.h
M llvm/include/llvm/IR/Constants.h
M llvm/lib/AsmParser/LLParser.cpp
M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
M llvm/lib/IR/AsmWriter.cpp
M llvm/lib/IR/Constants.cpp
M llvm/lib/IR/ConstantsContext.h
M llvm/lib/IR/Core.cpp
M llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
M llvm/test/Assembler/insertextractvalue.ll
R llvm/test/Assembler/insertvalue-invalid-type-1.ll
M llvm/test/Assembler/unsupported-constexprs.ll
R llvm/test/CodeGen/X86/nonconst-static-iv.ll
Log Message:
-----------
[IR] Remove support for insertvalue constant expression
This removes the insertvalue constant expression, as part of
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179.
This is very similar to the extractvalue removal from D125795.
insertvalue is also not supported in bitcode, so no auto-ugprade
is necessary.
ConstantExpr::getInsertValue() can be replaced with
IRBuilder::CreateInsertValue() or ConstantFoldInsertValueInstruction(),
depending on whether a constant result is required (with the latter
being fallible).
The ConstantExpr::hasIndices() and ConstantExpr::getIndices()
methods also go away here, because there are no longer any constant
expressions with indices.
Differential Revision: https://reviews.llvm.org/D128719
More information about the All-commits
mailing list