@@ -549,7 +549,7 @@ static Value createLinalgPayloadCalculationForElementwiseOp(
549549 }
550550 if (isa<AtenLogicalOrOp, AtenLogicalAndOp, AtenLogicalXorOp>(op)) {
551551 MLIRContext *context = op->getContext ();
552- Type floatDtype = mlir::FloatType::getF64 (context);
552+ Type floatDtype = mlir::Float64Type::get (context);
553553 Value lhs = convertScalarToDtype (b, loc, payloadArgs[0 ], floatDtype);
554554 Value rhs = convertScalarToDtype (b, loc, payloadArgs[1 ], floatDtype);
555555 Value zero =
@@ -569,7 +569,7 @@ static Value createLinalgPayloadCalculationForElementwiseOp(
569569 }
570570 if (isa<AtenLogicalNotOp>(op)) {
571571 MLIRContext *context = op->getContext ();
572- Type floatDtype = mlir::FloatType::getF64 (context);
572+ Type floatDtype = mlir::Float64Type::get (context);
573573 Value self = convertScalarToDtype (b, loc, payloadArgs[0 ], floatDtype);
574574 Value zero =
575575 b.create <arith::ConstantOp>(loc, b.getFloatAttr (floatDtype, 0 ));
@@ -1028,7 +1028,7 @@ static Value createLinalgPayloadCalculationForElementwiseOp(
10281028 Type powType = dtype;
10291029 if (payloadArgs[0 ].getType ().isInteger () ||
10301030 payloadArgs[1 ].getType ().isInteger ())
1031- powType = mlir::FloatType::getF64 (op->getContext ());
1031+ powType = mlir::Float64Type::get (op->getContext ());
10321032 Value lhs = convertScalarToDtype (b, loc, payloadArgs[0 ], powType);
10331033 Value rhs = convertScalarToDtype (b, loc, payloadArgs[1 ], powType);
10341034 auto powOp = b.create <math::PowFOp>(loc, lhs, rhs);
0 commit comments