@@ -266,10 +266,11 @@ genDataOperandOperations(const Fortran::parser::AccObjectList &objectList,
266
266
std::stringstream asFortran;
267
267
mlir::Location operandLocation = genOperandLocation (converter, accObject);
268
268
mlir::Value baseAddr = Fortran::lower::gatherDataOperandAddrAndBounds<
269
- Fortran::parser::AccObject, mlir::acc::DataBoundsType,
270
- mlir::acc::DataBoundsOp>(converter, builder, semanticsContext, stmtCtx,
271
- accObject, operandLocation, asFortran, bounds,
272
- /* treatIndexAsSection=*/ true );
269
+ Fortran::parser::AccObject, mlir::acc::DataBoundsOp,
270
+ mlir::acc::DataBoundsType>(converter, builder, semanticsContext,
271
+ stmtCtx, accObject, operandLocation,
272
+ asFortran, bounds,
273
+ /* treatIndexAsSection=*/ true );
273
274
Op op = createDataEntryOp<Op>(builder, operandLocation, baseAddr, asFortran,
274
275
bounds, structured, implicit, dataClause,
275
276
baseAddr.getType ());
@@ -291,9 +292,10 @@ static void genDeclareDataOperandOperations(
291
292
std::stringstream asFortran;
292
293
mlir::Location operandLocation = genOperandLocation (converter, accObject);
293
294
mlir::Value baseAddr = Fortran::lower::gatherDataOperandAddrAndBounds<
294
- Fortran::parser::AccObject, mlir::acc::DataBoundsType,
295
- mlir::acc::DataBoundsOp>(converter, builder, semanticsContext, stmtCtx,
296
- accObject, operandLocation, asFortran, bounds);
295
+ Fortran::parser::AccObject, mlir::acc::DataBoundsOp,
296
+ mlir::acc::DataBoundsType>(converter, builder, semanticsContext,
297
+ stmtCtx, accObject, operandLocation,
298
+ asFortran, bounds);
297
299
EntryOp op = createDataEntryOp<EntryOp>(
298
300
builder, operandLocation, baseAddr, asFortran, bounds, structured,
299
301
implicit, dataClause, baseAddr.getType ());
@@ -748,9 +750,10 @@ genPrivatizations(const Fortran::parser::AccObjectList &objectList,
748
750
std::stringstream asFortran;
749
751
mlir::Location operandLocation = genOperandLocation (converter, accObject);
750
752
mlir::Value baseAddr = Fortran::lower::gatherDataOperandAddrAndBounds<
751
- Fortran::parser::AccObject, mlir::acc::DataBoundsType,
752
- mlir::acc::DataBoundsOp>(converter, builder, semanticsContext, stmtCtx,
753
- accObject, operandLocation, asFortran, bounds);
753
+ Fortran::parser::AccObject, mlir::acc::DataBoundsOp,
754
+ mlir::acc::DataBoundsType>(converter, builder, semanticsContext,
755
+ stmtCtx, accObject, operandLocation,
756
+ asFortran, bounds);
754
757
755
758
RecipeOp recipe;
756
759
mlir::Type retTy = getTypeFromBounds (bounds, baseAddr.getType ());
@@ -1324,9 +1327,10 @@ genReductions(const Fortran::parser::AccObjectListWithReduction &objectList,
1324
1327
std::stringstream asFortran;
1325
1328
mlir::Location operandLocation = genOperandLocation (converter, accObject);
1326
1329
mlir::Value baseAddr = Fortran::lower::gatherDataOperandAddrAndBounds<
1327
- Fortran::parser::AccObject, mlir::acc::DataBoundsType,
1328
- mlir::acc::DataBoundsOp>(converter, builder, semanticsContext, stmtCtx,
1329
- accObject, operandLocation, asFortran, bounds);
1330
+ Fortran::parser::AccObject, mlir::acc::DataBoundsOp,
1331
+ mlir::acc::DataBoundsType>(converter, builder, semanticsContext,
1332
+ stmtCtx, accObject, operandLocation,
1333
+ asFortran, bounds);
1330
1334
1331
1335
mlir::Type reductionTy = fir::unwrapRefType (baseAddr.getType ());
1332
1336
if (auto seqTy = mlir::dyn_cast<fir::SequenceType>(reductionTy))
0 commit comments