@@ -709,7 +709,8 @@ static void wmmaPushInputOperand(
709709 } else if (elemType.isSignedInteger ()) {
710710 localIsUnsigned = false ;
711711 }
712- attrs.push_back (NamedAttribute (attrName, rewriter.getBoolAttr (!localIsUnsigned)));
712+ attrs.push_back (
713+ NamedAttribute (attrName, rewriter.getBoolAttr (!localIsUnsigned)));
713714 }
714715
715716 int64_t numBits =
@@ -1290,7 +1291,6 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
12901291 LogicalResult
12911292 matchAndRewrite (WMMAOp op, WMMAOpAdaptor adaptor,
12921293 ConversionPatternRewriter &rewriter) const override {
1293-
12941294 Location loc = op.getLoc ();
12951295 auto outType =
12961296 typeConverter->convertType <VectorType>(op.getDestD ().getType ());
@@ -1329,6 +1329,7 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
13291329 rewriter, loc, destCType.clone (rewriter.getI16Type ()), destC);
13301330
13311331 std::optional<StringRef> maybeIntrinsic = wmmaOpToIntrinsic (op, chipset);
1332+
13321333 if (!maybeIntrinsic.has_value ())
13331334 return op.emitOpError (" no intrinsic matching WMMA on the given chipset" );
13341335
@@ -1350,6 +1351,7 @@ struct WMMAOpLowering : public ConvertOpToLLVMPattern<WMMAOp> {
13501351 loweredOp.addOperands (operands);
13511352 loweredOp.addAttributes (attrs);
13521353 Operation *lowered = rewriter.create (loweredOp);
1354+
13531355 Operation *maybeCastBack = lowered;
13541356 if (rawOutType != outType)
13551357 maybeCastBack = LLVM::BitcastOp::create (rewriter, loc, outType,
0 commit comments