Skip to content

Commit 20f6ec4

Browse files
authored
[VPlan] Make VPBuilder APIs uniformly take ArrayRef (NFC) (#151484)
1 parent 16d7383 commit 20f6ec4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ class VPBuilder {
170170
new VPInstruction(Opcode, Operands, Flags, DL, Name));
171171
}
172172

173-
VPInstruction *createNaryOp(unsigned Opcode,
174-
std::initializer_list<VPValue *> Operands,
173+
VPInstruction *createNaryOp(unsigned Opcode, ArrayRef<VPValue *> Operands,
175174
Type *ResultTy, const VPIRFlags &Flags = {},
176175
DebugLoc DL = DebugLoc::getUnknown(),
177176
const Twine &Name = "") {
@@ -180,7 +179,7 @@ class VPBuilder {
180179
}
181180

182181
VPInstruction *createOverflowingOp(unsigned Opcode,
183-
std::initializer_list<VPValue *> Operands,
182+
ArrayRef<VPValue *> Operands,
184183
VPRecipeWithIRFlags::WrapFlagsTy WrapFlags,
185184
DebugLoc DL = DebugLoc::getUnknown(),
186185
const Twine &Name = "") {

0 commit comments

Comments
 (0)