Skip to content

Commit 07e6e90

Browse files
committed
clang-format
1 parent 7b2cb0b commit 07e6e90

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ class VPBuilder {
165165
return createInstruction(Opcode, Operands, DL, Name);
166166
}
167167
VPInstruction *createNaryOp(unsigned Opcode, ArrayRef<VPValue *> Operands,
168-
const VPIRFlags &Flags, DebugLoc DL = DebugLoc::getUnknown(),
168+
const VPIRFlags &Flags,
169+
DebugLoc DL = DebugLoc::getUnknown(),
169170
const Twine &Name = "") {
170171
return tryInsertInstruction(
171172
new VPInstruction(Opcode, Operands, Flags, DL, Name));
@@ -174,15 +175,17 @@ class VPBuilder {
174175
VPInstruction *createNaryOp(unsigned Opcode,
175176
std::initializer_list<VPValue *> Operands,
176177
Type *ResultTy, const VPIRFlags &Flags = {},
177-
DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = "") {
178+
DebugLoc DL = DebugLoc::getUnknown(),
179+
const Twine &Name = "") {
178180
return tryInsertInstruction(
179181
new VPInstructionWithType(Opcode, Operands, ResultTy, Flags, DL, Name));
180182
}
181183

182184
VPInstruction *createOverflowingOp(unsigned Opcode,
183185
std::initializer_list<VPValue *> Operands,
184186
VPRecipeWithIRFlags::WrapFlagsTy WrapFlags,
185-
DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = "") {
187+
DebugLoc DL = DebugLoc::getUnknown(),
188+
const Twine &Name = "") {
186189
return tryInsertInstruction(
187190
new VPInstruction(Opcode, Operands, WrapFlags, DL, Name));
188191
}
@@ -192,27 +195,31 @@ class VPBuilder {
192195
return createInstruction(VPInstruction::Not, {Operand}, DL, Name);
193196
}
194197

195-
VPValue *createAnd(VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown(),
198+
VPValue *createAnd(VPValue *LHS, VPValue *RHS,
199+
DebugLoc DL = DebugLoc::getUnknown(),
196200
const Twine &Name = "") {
197201
return createInstruction(Instruction::BinaryOps::And, {LHS, RHS}, DL, Name);
198202
}
199203

200-
VPValue *createOr(VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown(),
204+
VPValue *createOr(VPValue *LHS, VPValue *RHS,
205+
DebugLoc DL = DebugLoc::getUnknown(),
201206
const Twine &Name = "") {
202207

203208
return tryInsertInstruction(new VPInstruction(
204209
Instruction::BinaryOps::Or, {LHS, RHS},
205210
VPRecipeWithIRFlags::DisjointFlagsTy(false), DL, Name));
206211
}
207212

208-
VPValue *createLogicalAnd(VPValue *LHS, VPValue *RHS, DebugLoc DL = DebugLoc::getUnknown(),
213+
VPValue *createLogicalAnd(VPValue *LHS, VPValue *RHS,
214+
DebugLoc DL = DebugLoc::getUnknown(),
209215
const Twine &Name = "") {
210216
return tryInsertInstruction(
211217
new VPInstruction(VPInstruction::LogicalAnd, {LHS, RHS}, DL, Name));
212218
}
213219

214220
VPValue *createSelect(VPValue *Cond, VPValue *TrueVal, VPValue *FalseVal,
215-
DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = "",
221+
DebugLoc DL = DebugLoc::getUnknown(),
222+
const Twine &Name = "",
216223
std::optional<FastMathFlags> FMFs = std::nullopt) {
217224
auto *Select =
218225
FMFs ? new VPInstruction(Instruction::Select, {Cond, TrueVal, FalseVal},
@@ -226,20 +233,23 @@ class VPBuilder {
226233
/// and \p B.
227234
/// TODO: add createFCmp when needed.
228235
VPValue *createICmp(CmpInst::Predicate Pred, VPValue *A, VPValue *B,
229-
DebugLoc DL = DebugLoc::getUnknown(), const Twine &Name = "") {
236+
DebugLoc DL = DebugLoc::getUnknown(),
237+
const Twine &Name = "") {
230238
assert(Pred >= CmpInst::FIRST_ICMP_PREDICATE &&
231239
Pred <= CmpInst::LAST_ICMP_PREDICATE && "invalid predicate");
232240
return tryInsertInstruction(
233241
new VPInstruction(Instruction::ICmp, {A, B}, Pred, DL, Name));
234242
}
235243

236-
VPInstruction *createPtrAdd(VPValue *Ptr, VPValue *Offset, DebugLoc DL = DebugLoc::getUnknown(),
244+
VPInstruction *createPtrAdd(VPValue *Ptr, VPValue *Offset,
245+
DebugLoc DL = DebugLoc::getUnknown(),
237246
const Twine &Name = "") {
238247
return tryInsertInstruction(
239248
new VPInstruction(VPInstruction::PtrAdd, {Ptr, Offset},
240249
GEPNoWrapFlags::none(), DL, Name));
241250
}
242-
VPValue *createInBoundsPtrAdd(VPValue *Ptr, VPValue *Offset, DebugLoc DL = DebugLoc::getUnknown(),
251+
VPValue *createInBoundsPtrAdd(VPValue *Ptr, VPValue *Offset,
252+
DebugLoc DL = DebugLoc::getUnknown(),
243253
const Twine &Name = "") {
244254
return tryInsertInstruction(
245255
new VPInstruction(VPInstruction::PtrAdd, {Ptr, Offset},

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,8 +1813,8 @@ class VPHeaderPHIRecipe : public VPSingleDefRecipe, public VPPhiAccessors {
18131813
protected:
18141814
VPHeaderPHIRecipe(unsigned char VPDefID, Instruction *UnderlyingInstr,
18151815
VPValue *Start, DebugLoc DL = DebugLoc::getUnknown())
1816-
: VPSingleDefRecipe(VPDefID, ArrayRef<VPValue *>({Start}), UnderlyingInstr, DL) {
1817-
}
1816+
: VPSingleDefRecipe(VPDefID, ArrayRef<VPValue *>({Start}),
1817+
UnderlyingInstr, DL) {}
18181818

18191819
const VPRecipeBase *getAsRecipe() const override { return this; }
18201820

0 commit comments

Comments
 (0)