[llvm] 571b54c - [IRBuilder] Remove more unnecessary NoFolder methods
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 11 08:42:29 PST 2020
Author: Nikita Popov
Date: 2020-02-11T17:41:32+01:00
New Revision: 571b54cc38d997ea00a5d6f8e9514c64be257c49
URL: https://github.com/llvm/llvm-project/commit/571b54cc38d997ea00a5d6f8e9514c64be257c49
DIFF: https://github.com/llvm/llvm-project/commit/571b54cc38d997ea00a5d6f8e9514c64be257c49.diff
LOG: [IRBuilder] Remove more unnecessary NoFolder methods
Split out from D73835. I removed some of these before, but missed
these ones. They are not part of the ConstantFolder interface
and are not going to be used by the IRBuilder.
Added:
Modified:
llvm/include/llvm/IR/NoFolder.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/NoFolder.h b/llvm/include/llvm/IR/NoFolder.h
index 9073878476b6..c03cdee1eb83 100644
--- a/llvm/include/llvm/IR/NoFolder.h
+++ b/llvm/include/llvm/IR/NoFolder.h
@@ -81,10 +81,6 @@ class NoFolder {
return BinaryOperator::CreateExactUDiv(LHS, RHS);
}
- Instruction *CreateExactUDiv(Constant *LHS, Constant *RHS) const {
- return BinaryOperator::CreateExactUDiv(LHS, RHS);
- }
-
Instruction *CreateSDiv(Constant *LHS, Constant *RHS,
bool isExact = false) const {
if (!isExact)
@@ -92,10 +88,6 @@ class NoFolder {
return BinaryOperator::CreateExactSDiv(LHS, RHS);
}
- Instruction *CreateExactSDiv(Constant *LHS, Constant *RHS) const {
- return BinaryOperator::CreateExactSDiv(LHS, RHS);
- }
-
Instruction *CreateFDiv(Constant *LHS, Constant *RHS) const {
return BinaryOperator::CreateFDiv(LHS, RHS);
}
@@ -163,14 +155,6 @@ class NoFolder {
return BO;
}
- Instruction *CreateNSWNeg(Constant *C) const {
- return BinaryOperator::CreateNSWNeg(C);
- }
-
- Instruction *CreateNUWNeg(Constant *C) const {
- return BinaryOperator::CreateNUWNeg(C);
- }
-
Instruction *CreateFNeg(Constant *C) const {
return UnaryOperator::CreateFNeg(C);
}
More information about the llvm-commits
mailing list