[llvm] 20f6ec4 - [VPlan] Make VPBuilder APIs uniformly take ArrayRef (NFC) (#151484)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 03:33:07 PDT 2025


Author: Ramkumar Ramachandra
Date: 2025-07-31T11:33:04+01:00
New Revision: 20f6ec4b29e045a29023b31f776da31eb9c011a4

URL: https://github.com/llvm/llvm-project/commit/20f6ec4b29e045a29023b31f776da31eb9c011a4
DIFF: https://github.com/llvm/llvm-project/commit/20f6ec4b29e045a29023b31f776da31eb9c011a4.diff

LOG: [VPlan] Make VPBuilder APIs uniformly take ArrayRef (NFC) (#151484)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
index f57ce0c3ccb4d..ea0fa0668ef6b 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
@@ -170,8 +170,7 @@ class VPBuilder {
         new VPInstruction(Opcode, Operands, Flags, DL, Name));
   }
 
-  VPInstruction *createNaryOp(unsigned Opcode,
-                              std::initializer_list<VPValue *> Operands,
+  VPInstruction *createNaryOp(unsigned Opcode, ArrayRef<VPValue *> Operands,
                               Type *ResultTy, const VPIRFlags &Flags = {},
                               DebugLoc DL = DebugLoc::getUnknown(),
                               const Twine &Name = "") {
@@ -180,7 +179,7 @@ class VPBuilder {
   }
 
   VPInstruction *createOverflowingOp(unsigned Opcode,
-                                     std::initializer_list<VPValue *> Operands,
+                                     ArrayRef<VPValue *> Operands,
                                      VPRecipeWithIRFlags::WrapFlagsTy WrapFlags,
                                      DebugLoc DL = DebugLoc::getUnknown(),
                                      const Twine &Name = "") {


        


More information about the llvm-commits mailing list