[llvm] 800ac15 - [VP] Make VectorBuilder take IRBuilderBase instead of IRBuilder<>

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 21 09:17:46 PDT 2022


Author: Craig Topper
Date: 2022-03-21T09:17:37-07:00
New Revision: 800ac15dcce48d4a95e3349e9c9509e22905b4f6

URL: https://github.com/llvm/llvm-project/commit/800ac15dcce48d4a95e3349e9c9509e22905b4f6
DIFF: https://github.com/llvm/llvm-project/commit/800ac15dcce48d4a95e3349e9c9509e22905b4f6.diff

LOG: [VP] Make VectorBuilder take IRBuilderBase instead of IRBuilder<>

IRBuilder<> assumes specific values for template parameters.
IRBuilderBase abstracts away the template.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D122032

Added: 
    

Modified: 
    llvm/include/llvm/IR/VectorBuilder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/VectorBuilder.h b/llvm/include/llvm/IR/VectorBuilder.h
index a24338adf3c5d..301edaed70fe8 100644
--- a/llvm/include/llvm/IR/VectorBuilder.h
+++ b/llvm/include/llvm/IR/VectorBuilder.h
@@ -36,7 +36,7 @@ class VectorBuilder {
   };
 
 private:
-  IRBuilder<> &Builder;
+  IRBuilderBase &Builder;
   Behavior ErrorHandling;
 
   // Explicit mask parameter.
@@ -58,7 +58,7 @@ class VectorBuilder {
   }
 
 public:
-  VectorBuilder(IRBuilder<> &Builder,
+  VectorBuilder(IRBuilderBase &Builder,
                 Behavior ErrorHandling = Behavior::ReportAndAbort)
       : Builder(Builder), ErrorHandling(ErrorHandling), Mask(nullptr),
         ExplicitVectorLength(nullptr),


        


More information about the llvm-commits mailing list