diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td --- a/flang/include/flang/Optimizer/Dialect/FIROps.td +++ b/flang/include/flang/Optimizer/Dialect/FIROps.td @@ -1976,7 +1976,7 @@ $adt `,` $val `,` $coor attr-dict `:` functional-type(operands, results) }]; - let builders = [ + let builders = [ OpBuilder<(ins "mlir::Type":$rty, "mlir::Value":$adt, "mlir::Value":$val, "llvm::ArrayRef":$vcoor)> ]; @@ -2011,11 +2011,6 @@ $seq `,` $val `,` $coor attr-dict `:` functional-type(operands, results) }]; - let builders = [ - OpBuilder<(ins "mlir::Type":$rty, "mlir::Value":$adt, "mlir::Value":$val, - "llvm::ArrayRef":$vcoor)> - ]; - let verifier = "return ::verify(*this);"; } diff --git a/flang/lib/Optimizer/Dialect/FIROps.cpp b/flang/lib/Optimizer/Dialect/FIROps.cpp --- a/flang/lib/Optimizer/Dialect/FIROps.cpp +++ b/flang/lib/Optimizer/Dialect/FIROps.cpp @@ -1430,14 +1430,6 @@ // InsertOnRangeOp //===----------------------------------------------------------------------===// -void fir::InsertOnRangeOp::build(mlir::OpBuilder &builder, - OperationState &result, mlir::Type resTy, - mlir::Value aggVal, mlir::Value eleVal, - llvm::ArrayRef inds) { - auto aa = collectAsAttributes(builder.getContext(), result, inds); - build(builder, result, resTy, aggVal, eleVal, aa); -} - /// Range bounds must be nonnegative, and the range must not be empty. static mlir::LogicalResult verify(fir::InsertOnRangeOp op) { if (op.coor().size() < 2 || op.coor().size() % 2 != 0)