[IRBuilder] Remove more unnecessary NoFolder methods
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Feb 2020 16:41:32 +0000 (17:41 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Feb 2020 16:41:32 +0000 (17:41 +0100)
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

index 9073878476b6af532f5a79c339c6c390fd046bc0..c03cdee1eb8313d44e83d5561f0622d1dd8208b7 100644 (file)
@@ -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);
   }