@@ -402,8 +402,8 @@ class CastConversion : public OpConversionPattern<ArithOp> {
402
402
Value actualOp = adaptValueType (adaptor.getIn (), rewriter, castSrcType);
403
403
404
404
// 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);
407
407
408
408
// Cast to the expected output type
409
409
auto result = adaptValueType (cast, rewriter, opReturnType);
@@ -507,8 +507,8 @@ class IntegerOpConversion final : public OpConversionPattern<ArithOp> {
507
507
Value lhs = adaptValueType (adaptor.getLhs (), rewriter, arithmeticType);
508
508
Value rhs = adaptValueType (adaptor.getRhs (), rewriter, arithmeticType);
509
509
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);
512
512
513
513
Value result = adaptValueType (arithmeticResult, rewriter, type);
514
514
@@ -547,8 +547,8 @@ class BitwiseOpConversion : public OpConversionPattern<ArithOp> {
547
547
Value lhs = adaptValueType (adaptor.getLhs (), rewriter, arithmeticType);
548
548
Value rhs = adaptValueType (adaptor.getRhs (), rewriter, arithmeticType);
549
549
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);
552
552
553
553
Value result = adaptValueType (arithmeticResult, rewriter, type);
554
554
@@ -748,8 +748,8 @@ class ItoFCastOpConversion : public OpConversionPattern<CastOp> {
748
748
}
749
749
Value fpCastOperand = adaptor.getIn ();
750
750
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);
753
753
}
754
754
rewriter.replaceOpWithNewOp <emitc::CastOp>(castOp, dstType, fpCastOperand);
755
755
0 commit comments