@@ -402,8 +402,8 @@ class CastConversion : public OpConversionPattern<ArithOp> {
402402 Value actualOp = adaptValueType (adaptor.getIn (), rewriter, castSrcType);
403403
404404 // Actual cast (may change bitwidth)
405- auto cast = rewriter. template create <emitc::CastOp>(op. getLoc (),
406- castDestType, actualOp);
405+ auto cast =
406+ emitc::CastOp::create (rewriter, op. getLoc (), castDestType, actualOp);
407407
408408 // Cast to the expected output type
409409 auto result = adaptValueType (cast, rewriter, opReturnType);
@@ -507,8 +507,8 @@ class IntegerOpConversion final : public OpConversionPattern<ArithOp> {
507507 Value lhs = adaptValueType (adaptor.getLhs (), rewriter, arithmeticType);
508508 Value rhs = adaptValueType (adaptor.getRhs (), rewriter, arithmeticType);
509509
510- Value arithmeticResult = rewriter. template create <EmitCOp>(
511- op.getLoc (), arithmeticType, lhs, rhs);
510+ Value arithmeticResult =
511+ EmitCOp::create (rewriter, op.getLoc (), arithmeticType, lhs, rhs);
512512
513513 Value result = adaptValueType (arithmeticResult, rewriter, type);
514514
@@ -547,8 +547,8 @@ class BitwiseOpConversion : public OpConversionPattern<ArithOp> {
547547 Value lhs = adaptValueType (adaptor.getLhs (), rewriter, arithmeticType);
548548 Value rhs = adaptValueType (adaptor.getRhs (), rewriter, arithmeticType);
549549
550- Value arithmeticResult = rewriter. template create <EmitCOp>(
551- op.getLoc (), arithmeticType, lhs, rhs);
550+ Value arithmeticResult =
551+ EmitCOp::create (rewriter, op.getLoc (), arithmeticType, lhs, rhs);
552552
553553 Value result = adaptValueType (arithmeticResult, rewriter, type);
554554
@@ -748,8 +748,8 @@ class ItoFCastOpConversion : public OpConversionPattern<CastOp> {
748748 }
749749 Value fpCastOperand = adaptor.getIn ();
750750 if (actualOperandType != operandType) {
751- fpCastOperand = rewriter. template create < emitc::CastOp>(
752- castOp. getLoc (), actualOperandType, fpCastOperand);
751+ fpCastOperand = emitc::CastOp::create (rewriter, castOp. getLoc (),
752+ actualOperandType, fpCastOperand);
753753 }
754754 rewriter.replaceOpWithNewOp <emitc::CastOp>(castOp, dstType, fpCastOperand);
755755
0 commit comments