[llvm] 7c3becf - [IRBuilder] Remove unnecessary NoFolder methods; NFCI

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 10:08:54 PST 2020


Author: Nikita Popov
Date: 2020-02-03T19:08:41+01:00
New Revision: 7c3becf4231cde79b0448756e5bfc4ef5bd76089

URL: https://github.com/llvm/llvm-project/commit/7c3becf4231cde79b0448756e5bfc4ef5bd76089
DIFF: https://github.com/llvm/llvm-project/commit/7c3becf4231cde79b0448756e5bfc4ef5bd76089.diff

LOG: [IRBuilder] Remove unnecessary NoFolder methods; NFCI

Split out from D73835: These methods are not part of the
ConstantFolder API and as such don't serve a purpose.

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 835236b1eac0..85fd2ab6a605 100644
--- a/llvm/include/llvm/IR/NoFolder.h
+++ b/llvm/include/llvm/IR/NoFolder.h
@@ -46,14 +46,6 @@ class NoFolder {
     return BO;
   }
 
-  Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNSWAdd(LHS, RHS);
-  }
-
-  Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNUWAdd(LHS, RHS);
-  }
-
   Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const {
     return BinaryOperator::CreateFAdd(LHS, RHS);
   }
@@ -66,14 +58,6 @@ class NoFolder {
     return BO;
   }
 
-  Instruction *CreateNSWSub(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNSWSub(LHS, RHS);
-  }
-
-  Instruction *CreateNUWSub(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNUWSub(LHS, RHS);
-  }
-
   Instruction *CreateFSub(Constant *LHS, Constant *RHS) const {
     return BinaryOperator::CreateFSub(LHS, RHS);
   }
@@ -86,14 +70,6 @@ class NoFolder {
     return BO;
   }
 
-  Instruction *CreateNSWMul(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNSWMul(LHS, RHS);
-  }
-
-  Instruction *CreateNUWMul(Constant *LHS, Constant *RHS) const {
-    return BinaryOperator::CreateNUWMul(LHS, RHS);
-  }
-
   Instruction *CreateFMul(Constant *LHS, Constant *RHS) const {
     return BinaryOperator::CreateFMul(LHS, RHS);
   }


        


More information about the llvm-commits mailing list