@@ -422,7 +422,8 @@ static Value emitCeilFromFloorQuotient(Value q, Value x, Value d,
422422 // s_addc_u32: dst = q + 0 + SCC (carry-in from SCC)
423423 auto sregType = ctx.createSRegType ();
424424 auto sccType = ctx.createSCCType ();
425- return S_ADDC_U32::create (builder, loc, sregType, sccType, sccVal, q, zeroConst)
425+ return S_ADDC_U32::create (builder, loc, sregType, sccType, sccVal, q,
426+ zeroConst)
426427 .getDst ();
427428 }
428429 auto vregType = ctx.createVRegType ();
@@ -629,12 +630,11 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
629630 auto shiftConst =
630631 ConstantOp::create (builder, loc, shiftImm, shiftAmount);
631632 // v_lshl_or_b32: dst = (src << shift) | orend
632- Value base = ensureVGPR (builder, loc, ctx,
633- baseResult.value );
633+ Value base =
634+ ensureVGPR (builder, loc, ctx, baseResult.value );
634635 orend = ensureVGPR (builder, loc, ctx, orend);
635636 Value fusedResult = V_LSHL_OR_B32::create (
636- builder, loc, vregType, base, shiftConst,
637- orend);
637+ builder, loc, vregType, base, shiftConst, orend);
638638 BitRange shiftedRange =
639639 baseResult.range .shiftLeft (shiftAmount);
640640 BitRange resultRange = shiftedRange.merge (orendRange);
@@ -652,12 +652,11 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
652652 auto shiftImm = ctx.createImmType (shiftAmount);
653653 auto shiftConst =
654654 ConstantOp::create (builder, loc, shiftImm, shiftAmount);
655- Value base2 = ensureVGPR (builder, loc, ctx,
656- baseResult.value );
655+ Value base2 =
656+ ensureVGPR (builder, loc, ctx, baseResult.value );
657657 orend = ensureVGPR (builder, loc, ctx, orend);
658658 Value fusedResult = V_LSHL_OR_B32::create (
659- builder, loc, vregType, base2, shiftConst,
660- orend);
659+ builder, loc, vregType, base2, shiftConst, orend);
661660 BitRange shiftedRange =
662661 baseResult.range .shiftLeft (shiftAmount);
663662 BitRange resultRange = shiftedRange.merge (orendRange);
@@ -751,8 +750,7 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
751750 auto shiftAmt = ctx.createImmType (shiftAmount);
752751 auto shiftConst =
753752 ConstantOp::create (builder, loc, shiftAmt, shiftAmount);
754- Value shiftResult =
755- emitLshl (lhs, shiftConst, builder, loc, ctx);
753+ Value shiftResult = emitLshl (lhs, shiftConst, builder, loc, ctx);
756754 BitRange resultRange = lhsRange.shiftLeft (shiftAmount);
757755 ctx.setBitRange (shiftResult, resultRange);
758756 return ExprResult (shiftResult, resultRange);
@@ -765,8 +763,7 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
765763 auto shiftAmt = ctx.createImmType (shiftAmount);
766764 auto shiftConst =
767765 ConstantOp::create (builder, loc, shiftAmt, shiftAmount);
768- Value shiftResult =
769- emitLshl (rhs, shiftConst, builder, loc, ctx);
766+ Value shiftResult = emitLshl (rhs, shiftConst, builder, loc, ctx);
770767 BitRange resultRange = rhsRange.shiftLeft (shiftAmount);
771768 ctx.setBitRange (shiftResult, resultRange);
772769 return ExprResult (shiftResult, resultRange);
@@ -799,8 +796,7 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
799796 auto shiftAmt = ctx.createImmType (shiftAmount);
800797 auto shiftConst =
801798 ConstantOp::create (builder, loc, shiftAmt, shiftAmount);
802- Value shiftResult =
803- emitLshr (lhs, shiftConst, builder, loc, ctx);
799+ Value shiftResult = emitLshr (lhs, shiftConst, builder, loc, ctx);
804800 BitRange resultRange = lhsRange.shiftRight (shiftAmount);
805801 ctx.setBitRange (shiftResult, resultRange);
806802 return ExprResult (shiftResult, resultRange);
@@ -835,14 +831,13 @@ LogicalResult handleAffineApply(Operation *op, TranslationContext &ctx) {
835831 Value rem = emitAnd (lhs, maskConst, builder, loc, ctx);
836832 Value zeroConst = createImmConst (0 , builder, loc, ctx);
837833 if (isScalarOrImm (rem)) {
838- Value sccVal = S_CMP_NE_U32::create (builder, loc,
839- ctx.createSCCType (), rem, zeroConst);
834+ Value sccVal = S_CMP_NE_U32::create (
835+ builder, loc, ctx.createSCCType (), rem, zeroConst);
840836 auto sregType = ctx.createSRegType ();
841837 auto sccType = ctx.createSCCType ();
842- Value result =
843- S_ADDC_U32::create (builder, loc, sregType, sccType, sccVal, q,
844- zeroConst)
845- .getDst ();
838+ Value result = S_ADDC_U32::create (builder, loc, sregType, sccType,
839+ sccVal, q, zeroConst)
840+ .getDst ();
846841 return ExprResult (result, BitRange ());
847842 }
848843 V_CMP_NE_U32::create (builder, loc, rem, zeroConst);
0 commit comments