Skip to content

Commit 578e7f7

Browse files
chore: apply formatting
1 parent 3e19fbc commit 578e7f7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,11 +3431,10 @@ static bool interp__builtin_ia32_shuffle_generic(
34313431
if (ShouldZero && ShouldZero(DstIdx, ShuffleMask)) {
34323432
// Zero out this element
34333433
if (ElemT == PT_Float) {
3434-
Dst.elem<Floating>(DstIdx) = Floating(S.getASTContext().getFloatTypeSemantics(VecT->getElementType()));
3434+
Dst.elem<Floating>(DstIdx) = Floating(
3435+
S.getASTContext().getFloatTypeSemantics(VecT->getElementType()));
34353436
} else {
3436-
INT_TYPE_SWITCH_NO_BOOL(ElemT, {
3437-
Dst.elem<T>(DstIdx) = T::from(0);
3438-
});
3437+
INT_TYPE_SWITCH_NO_BOOL(ElemT, { Dst.elem<T>(DstIdx) = T::from(0); });
34393438
}
34403439
} else {
34413440
auto [SrcVecIdx, SrcIdx] = GetSourceIndex(DstIdx, ShuffleMask);

clang/lib/AST/ExprConstant.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11647,7 +11647,8 @@ static bool evalShuffleGeneric(
1164711647
if (ShouldZero && ShouldZero(DstIdx, ShuffleMask)) {
1164811648
// Zero out this element
1164911649
QualType ElemTy = VT->getElementType();
11650-
ResultElements.push_back(APValue(APFloat::getZero(Info.Ctx.getFloatTypeSemantics(ElemTy))));
11650+
ResultElements.push_back(
11651+
APValue(APFloat::getZero(Info.Ctx.getFloatTypeSemantics(ElemTy))));
1165111652
} else {
1165211653
auto [SrcVecIdx, SrcIdx] = GetSourceIndex(DstIdx, ShuffleMask);
1165311654
const APValue &Src = (SrcVecIdx == 0) ? A : B;
@@ -12492,7 +12493,8 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1249212493
APValue R;
1249312494
if (!evalShuffleGeneric(
1249412495
Info, E, R,
12495-
[](unsigned DstIdx, unsigned Mask) -> std::pair<unsigned, unsigned> {
12496+
[](unsigned DstIdx,
12497+
unsigned Mask) -> std::pair<unsigned, unsigned> {
1249612498
// Bits [7:6]: select element from source vector Y (0-3)
1249712499
// Bits [5:4]: select destination position (0-3)
1249812500
unsigned SrcElem = (Mask >> 6) & 0x3;

0 commit comments

Comments
 (0)