From 571b54cc38d997ea00a5d6f8e9514c64be257c49 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 11 Feb 2020 17:41:32 +0100 Subject: [PATCH] [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. --- llvm/include/llvm/IR/NoFolder.h | 16 ---------------- 1 file changed, 16 deletions(-) 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 @@ public: 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 @@ public: 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 @@ public: 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); }