aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-03-06 10:46:22 +0100
committerNikita Popov <npopov@redhat.com>2023-03-16 10:32:08 +0100
commitbbfb13a5ffbccf1759ca6b75262a3ffdbe20496e (patch)
tree7b86a9e7b80e0b6684cd784606065d471f85c471 /llvm/lib/IR/Core.cpp
parentb293c6280d06f49c5ca7290855911341ab0bdffa (diff)
downloadllvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.zip
llvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.tar.gz
llvm-bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e.tar.bz2
[ConstExpr] Remove select constant expression
This removes the select constant expression, as part of https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179. Uses of this expressions have already been removed in advance, so this just removes related infrastructure and updates tests. Differential Revision: https://reviews.llvm.org/D145382
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 85b7d17..283296b 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -1799,14 +1799,6 @@ LLVMValueRef LLVMConstFPCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType) {
unwrap(ToType)));
}
-LLVMValueRef LLVMConstSelect(LLVMValueRef ConstantCondition,
- LLVMValueRef ConstantIfTrue,
- LLVMValueRef ConstantIfFalse) {
- return wrap(ConstantExpr::getSelect(unwrap<Constant>(ConstantCondition),
- unwrap<Constant>(ConstantIfTrue),
- unwrap<Constant>(ConstantIfFalse)));
-}
-
LLVMValueRef LLVMConstExtractElement(LLVMValueRef VectorConstant,
LLVMValueRef IndexConstant) {
return wrap(ConstantExpr::getExtractElement(unwrap<Constant>(VectorConstant),