@@ -465,7 +465,7 @@ static void genBodyOfTargetDataOp(
465
465
Fortran::lower::AbstractConverter &converter,
466
466
Fortran::semantics::SemanticsContext &semaCtx,
467
467
Fortran::lower::pft::Evaluation &eval, bool genNested,
468
- mlir::omp::DataOp &dataOp, llvm::ArrayRef<mlir::Type> useDeviceTypes,
468
+ mlir::omp::TargetDataOp &dataOp, llvm::ArrayRef<mlir::Type> useDeviceTypes,
469
469
llvm::ArrayRef<mlir::Location> useDeviceLocs,
470
470
llvm::ArrayRef<const Fortran::semantics::Symbol *> useDeviceSymbols,
471
471
const mlir::Location ¤tLocation) {
@@ -775,8 +775,8 @@ genTaskOp(Fortran::lower::AbstractConverter &converter,
775
775
dependOperands, allocateOperands, allocatorOperands);
776
776
}
777
777
778
- static mlir::omp::TaskGroupOp
779
- genTaskGroupOp (Fortran::lower::AbstractConverter &converter,
778
+ static mlir::omp::TaskgroupOp
779
+ genTaskgroupOp (Fortran::lower::AbstractConverter &converter,
780
780
Fortran::semantics::SemanticsContext &semaCtx,
781
781
Fortran::lower::pft::Evaluation &eval, bool genNested,
782
782
mlir::Location currentLocation,
@@ -786,7 +786,7 @@ genTaskGroupOp(Fortran::lower::AbstractConverter &converter,
786
786
cp.processAllocate (allocatorOperands, allocateOperands);
787
787
cp.processTODO <Fortran::parser::OmpClause::TaskReduction>(
788
788
currentLocation, llvm::omp::Directive::OMPD_taskgroup);
789
- return genOpWithBody<mlir::omp::TaskGroupOp >(
789
+ return genOpWithBody<mlir::omp::TaskgroupOp >(
790
790
OpWithBodyGenInfo (converter, semaCtx, currentLocation, eval)
791
791
.setGenNested (genNested)
792
792
.setClauses (&clauseList),
@@ -847,12 +847,12 @@ static void promoteNonCPtrUseDevicePtrArgsToUseDeviceAddr(
847
847
}
848
848
}
849
849
850
- static mlir::omp::DataOp
851
- genDataOp (Fortran::lower::AbstractConverter &converter,
852
- Fortran::semantics::SemanticsContext &semaCtx,
853
- Fortran::lower::pft::Evaluation &eval, bool genNested,
854
- mlir::Location currentLocation,
855
- const Fortran::parser::OmpClauseList &clauseList) {
850
+ static mlir::omp::TargetDataOp
851
+ genTargetDataOp (Fortran::lower::AbstractConverter &converter,
852
+ Fortran::semantics::SemanticsContext &semaCtx,
853
+ Fortran::lower::pft::Evaluation &eval, bool genNested,
854
+ mlir::Location currentLocation,
855
+ const Fortran::parser::OmpClauseList &clauseList) {
856
856
Fortran::lower::StatementContext stmtCtx;
857
857
mlir::Value ifClauseOperand, deviceOperand;
858
858
llvm::SmallVector<mlir::Value> mapOperands, devicePtrOperands,
@@ -885,7 +885,7 @@ genDataOp(Fortran::lower::AbstractConverter &converter,
885
885
cp.processMap (currentLocation, llvm::omp::Directive::OMPD_target_data,
886
886
stmtCtx, mapOperands);
887
887
888
- auto dataOp = converter.getFirOpBuilder ().create <mlir::omp::DataOp >(
888
+ auto dataOp = converter.getFirOpBuilder ().create <mlir::omp::TargetDataOp >(
889
889
currentLocation, ifClauseOperand, deviceOperand, devicePtrOperands,
890
890
deviceAddrOperands, mapOperands);
891
891
genBodyOfTargetDataOp (converter, semaCtx, eval, genNested, dataOp,
@@ -896,7 +896,7 @@ genDataOp(Fortran::lower::AbstractConverter &converter,
896
896
897
897
template <typename OpTy>
898
898
static OpTy
899
- genEnterExitUpdateDataOp (Fortran::lower::AbstractConverter &converter,
899
+ genTargetEnterExitUpdateDataOp (Fortran::lower::AbstractConverter &converter,
900
900
Fortran::semantics::SemanticsContext &semaCtx,
901
901
mlir::Location currentLocation,
902
902
const Fortran::parser::OmpClauseList &clauseList) {
@@ -910,13 +910,13 @@ genEnterExitUpdateDataOp(Fortran::lower::AbstractConverter &converter,
910
910
clause::If::DirectiveNameModifier directiveName;
911
911
// GCC 9.3.0 emits a (probably) bogus warning about an unused variable.
912
912
[[maybe_unused]] llvm::omp::Directive directive;
913
- if constexpr (std::is_same_v<OpTy, mlir::omp::EnterDataOp >) {
913
+ if constexpr (std::is_same_v<OpTy, mlir::omp::TargetEnterDataOp >) {
914
914
directiveName = clause::If::DirectiveNameModifier::TargetEnterData;
915
915
directive = llvm::omp::Directive::OMPD_target_enter_data;
916
- } else if constexpr (std::is_same_v<OpTy, mlir::omp::ExitDataOp >) {
916
+ } else if constexpr (std::is_same_v<OpTy, mlir::omp::TargetExitDataOp >) {
917
917
directiveName = clause::If::DirectiveNameModifier::TargetExitData;
918
918
directive = llvm::omp::Directive::OMPD_target_exit_data;
919
- } else if constexpr (std::is_same_v<OpTy, mlir::omp::UpdateDataOp >) {
919
+ } else if constexpr (std::is_same_v<OpTy, mlir::omp::TargetUpdateOp >) {
920
920
directiveName = clause::If::DirectiveNameModifier::TargetUpdate;
921
921
directive = llvm::omp::Directive::OMPD_target_update;
922
922
} else {
@@ -929,7 +929,7 @@ genEnterExitUpdateDataOp(Fortran::lower::AbstractConverter &converter,
929
929
cp.processDepend (dependTypeOperands, dependOperands);
930
930
cp.processNowait (nowaitAttr);
931
931
932
- if constexpr (std::is_same_v<OpTy, mlir::omp::UpdateDataOp >) {
932
+ if constexpr (std::is_same_v<OpTy, mlir::omp::TargetUpdateOp >) {
933
933
cp.processMotionClauses <Fortran::parser::OmpClause::To>(stmtCtx,
934
934
mapOperands);
935
935
cp.processMotionClauses <Fortran::parser::OmpClause::From>(stmtCtx,
@@ -1401,19 +1401,19 @@ genOmpSimpleStandalone(Fortran::lower::AbstractConverter &converter,
1401
1401
firOpBuilder.create <mlir::omp::TaskyieldOp>(currentLocation);
1402
1402
break ;
1403
1403
case llvm::omp::Directive::OMPD_target_data:
1404
- genDataOp (converter, semaCtx, eval, genNested, currentLocation,
1405
- opClauseList);
1404
+ genTargetDataOp (converter, semaCtx, eval, genNested, currentLocation,
1405
+ opClauseList);
1406
1406
break ;
1407
1407
case llvm::omp::Directive::OMPD_target_enter_data:
1408
- genEnterExitUpdateDataOp <mlir::omp::EnterDataOp >(
1408
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetEnterDataOp >(
1409
1409
converter, semaCtx, currentLocation, opClauseList);
1410
1410
break ;
1411
1411
case llvm::omp::Directive::OMPD_target_exit_data:
1412
- genEnterExitUpdateDataOp <mlir::omp::ExitDataOp >(
1412
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetExitDataOp >(
1413
1413
converter, semaCtx, currentLocation, opClauseList);
1414
1414
break ;
1415
1415
case llvm::omp::Directive::OMPD_target_update:
1416
- genEnterExitUpdateDataOp <mlir::omp::UpdateDataOp >(
1416
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetUpdateOp >(
1417
1417
converter, semaCtx, currentLocation, opClauseList);
1418
1418
break ;
1419
1419
case llvm::omp::Directive::OMPD_ordered:
@@ -1898,15 +1898,15 @@ genOMP(Fortran::lower::AbstractConverter &converter,
1898
1898
beginClauseList, directive.v );
1899
1899
break ;
1900
1900
case llvm::omp::Directive::OMPD_target_data:
1901
- genDataOp (converter, semaCtx, eval, /* genNested=*/ true , currentLocation ,
1902
- beginClauseList);
1901
+ genTargetDataOp (converter, semaCtx, eval, /* genNested=*/ true ,
1902
+ currentLocation, beginClauseList);
1903
1903
break ;
1904
1904
case llvm::omp::Directive::OMPD_task:
1905
1905
genTaskOp (converter, semaCtx, eval, /* genNested=*/ true , currentLocation,
1906
1906
beginClauseList);
1907
1907
break ;
1908
1908
case llvm::omp::Directive::OMPD_taskgroup:
1909
- genTaskGroupOp (converter, semaCtx, eval, /* genNested=*/ true ,
1909
+ genTaskgroupOp (converter, semaCtx, eval, /* genNested=*/ true ,
1910
1910
currentLocation, beginClauseList);
1911
1911
break ;
1912
1912
case llvm::omp::Directive::OMPD_teams:
0 commit comments