@@ -383,7 +383,8 @@ LogicalResult TruncfToFloat16RewritePattern::matchAndRewrite(
383383 int64_t numElements = outVecType.getNumElements ();
384384 Value zero = rewriter.createOrFold <arith::ConstantOp>(
385385 loc, outElemType, rewriter.getFloatAttr (outElemType, 0.0 ));
386- Value result = rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
386+ Value result =
387+ rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
387388
388389 if (inVectorTy.getRank () > 1 ) {
389390 inVectorTy = VectorType::get (SmallVector<int64_t >{numElements},
@@ -478,8 +479,8 @@ ScalingExtFRewritePattern::matchAndRewrite(arith::ScalingExtFOp op,
478479 VectorType extScaleResultType = VectorType::get (opWidth, outType);
479480
480481 if (!outVecType) {
481- Value inCast =
482- rewriter. create <vector::BroadcastOp>( loc, VectorType::get (1 , inType), in);
482+ Value inCast = rewriter. create <vector::BroadcastOp>(
483+ loc, VectorType::get (1 , inType), in);
483484 // TODO: replace this with non-packed ScaledExtOp
484485 Value scaleExt = rewriter.create <amdgpu::ScaledExtPackedOp>(
485486 loc, extScaleResultType, inCast, scale, 0 );
@@ -509,7 +510,8 @@ ScalingExtFRewritePattern::matchAndRewrite(arith::ScalingExtFOp op,
509510
510511 Value zero = rewriter.create <arith::ConstantOp>(
511512 loc, outType, rewriter.getFloatAttr (outType, 0.0 ));
512- Value result = rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
513+ Value result =
514+ rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
513515
514516 for (SmallVector<int64_t > offsets : StaticTileOffsetRange (inShape, ratio)) {
515517 SmallVector<int64_t > strides (offsets.size (), 1 );
@@ -616,7 +618,8 @@ ScalingTruncFRewritePattern::matchAndRewrite(arith::ScalingTruncFOp op,
616618
617619 int64_t blockSize = computeProduct (ratio);
618620
619- Value result = rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
621+ Value result =
622+ rewriter.createOrFold <vector::BroadcastOp>(loc, outVecType, zero);
620623
621624 for (SmallVector<int64_t > offsets : StaticTileOffsetRange (inShape, ratio)) {
622625 SmallVector<int64_t > strides (offsets.size (), 1 );
0 commit comments