diff options
author | Nikita Popov <npopov@redhat.com> | 2023-03-06 10:46:22 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-03-16 10:32:08 +0100 |
commit | bbfb13a5ffbccf1759ca6b75262a3ffdbe20496e (patch) | |
tree | 7b86a9e7b80e0b6684cd784606065d471f85c471 /llvm/lib/IR/Core.cpp | |
parent | b293c6280d06f49c5ca7290855911341ab0bdffa (diff) | |
download | llvm-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.cpp | 8 |
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), |