Skip to content

Commit

Permalink
Update llvm/lib/IR/VectorBuilder.cpp
Browse files Browse the repository at this point in the history
Fix lambda format

Co-authored-by: Alexey Bataev <[email protected]>
  • Loading branch information
Mel-Chen and alexey-bataev committed May 6, 2024
1 parent 04e787e commit 2881f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/IR/VectorBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Value *VectorBuilder::createVectorInstruction(unsigned Opcode, Type *ReturnTy,
Value *VectorBuilder::createSimpleTargetReduction(RecurKind Kind, Type *ValTy,
ArrayRef<Value *> InstOpArray,
const Twine &Name) {
auto getForRecurKind = [](RecurKind Kind) {
auto GetForRecurKind = [](RecurKind Kind) {
switch (Kind) {
case RecurKind::Add:
return Intrinsic::vp_reduce_add;
Expand Down Expand Up @@ -96,7 +96,7 @@ Value *VectorBuilder::createSimpleTargetReduction(RecurKind Kind, Type *ValTy,
return Intrinsic::not_intrinsic;
}
};
auto VPID = getForRecurKind(Kind);
auto VPID = GetForRecurKind(Kind);
if (VPID == Intrinsic::not_intrinsic)
return returnWithError<Value *>("No VPIntrinsic for this reduction");
return createVectorInstructionImpl(VPID, ValTy, InstOpArray, Name);
Expand Down

0 comments on commit 2881f92

Please sign in to comment.