@@ -447,7 +447,7 @@ static void genBodyOfTargetDataOp(
447
447
Fortran::lower::AbstractConverter &converter,
448
448
Fortran::semantics::SemanticsContext &semaCtx,
449
449
Fortran::lower::pft::Evaluation &eval, bool genNested,
450
- mlir::omp::DataOp &dataOp, llvm::ArrayRef<mlir::Type> useDeviceTypes,
450
+ mlir::omp::TargetDataOp &dataOp, llvm::ArrayRef<mlir::Type> useDeviceTypes,
451
451
llvm::ArrayRef<mlir::Location> useDeviceLocs,
452
452
llvm::ArrayRef<const Fortran::semantics::Symbol *> useDeviceSymbols,
453
453
const mlir::Location ¤tLocation) {
@@ -753,8 +753,8 @@ genTaskOp(Fortran::lower::AbstractConverter &converter,
753
753
dependOperands, allocateOperands, allocatorOperands);
754
754
}
755
755
756
- static mlir::omp::TaskGroupOp
757
- genTaskGroupOp (Fortran::lower::AbstractConverter &converter,
756
+ static mlir::omp::TaskgroupOp
757
+ genTaskgroupOp (Fortran::lower::AbstractConverter &converter,
758
758
Fortran::semantics::SemanticsContext &semaCtx,
759
759
Fortran::lower::pft::Evaluation &eval, bool genNested,
760
760
mlir::Location currentLocation,
@@ -764,7 +764,7 @@ genTaskGroupOp(Fortran::lower::AbstractConverter &converter,
764
764
cp.processAllocate (allocatorOperands, allocateOperands);
765
765
cp.processTODO <Fortran::parser::OmpClause::TaskReduction>(
766
766
currentLocation, llvm::omp::Directive::OMPD_taskgroup);
767
- return genOpWithBody<mlir::omp::TaskGroupOp >(
767
+ return genOpWithBody<mlir::omp::TaskgroupOp >(
768
768
OpWithBodyGenInfo (converter, semaCtx, currentLocation, eval)
769
769
.setGenNested (genNested)
770
770
.setClauses (&clauseList),
@@ -825,12 +825,12 @@ static void promoteNonCPtrUseDevicePtrArgsToUseDeviceAddr(
825
825
}
826
826
}
827
827
828
- static mlir::omp::DataOp
829
- genDataOp (Fortran::lower::AbstractConverter &converter,
830
- Fortran::semantics::SemanticsContext &semaCtx,
831
- Fortran::lower::pft::Evaluation &eval, bool genNested,
832
- mlir::Location currentLocation,
833
- const Fortran::parser::OmpClauseList &clauseList) {
828
+ static mlir::omp::TargetDataOp
829
+ genTargetDataOp (Fortran::lower::AbstractConverter &converter,
830
+ Fortran::semantics::SemanticsContext &semaCtx,
831
+ Fortran::lower::pft::Evaluation &eval, bool genNested,
832
+ mlir::Location currentLocation,
833
+ const Fortran::parser::OmpClauseList &clauseList) {
834
834
Fortran::lower::StatementContext stmtCtx;
835
835
mlir::Value ifClauseOperand, deviceOperand;
836
836
llvm::SmallVector<mlir::Value> mapOperands, devicePtrOperands,
@@ -863,7 +863,7 @@ genDataOp(Fortran::lower::AbstractConverter &converter,
863
863
cp.processMap (currentLocation, llvm::omp::Directive::OMPD_target_data,
864
864
stmtCtx, mapOperands);
865
865
866
- auto dataOp = converter.getFirOpBuilder ().create <mlir::omp::DataOp >(
866
+ auto dataOp = converter.getFirOpBuilder ().create <mlir::omp::TargetDataOp >(
867
867
currentLocation, ifClauseOperand, deviceOperand, devicePtrOperands,
868
868
deviceAddrOperands, mapOperands);
869
869
genBodyOfTargetDataOp (converter, semaCtx, eval, genNested, dataOp,
@@ -874,7 +874,7 @@ genDataOp(Fortran::lower::AbstractConverter &converter,
874
874
875
875
template <typename OpTy>
876
876
static OpTy
877
- genEnterExitUpdateDataOp (Fortran::lower::AbstractConverter &converter,
877
+ genTargetEnterExitUpdateDataOp (Fortran::lower::AbstractConverter &converter,
878
878
Fortran::semantics::SemanticsContext &semaCtx,
879
879
mlir::Location currentLocation,
880
880
const Fortran::parser::OmpClauseList &clauseList) {
@@ -888,13 +888,13 @@ genEnterExitUpdateDataOp(Fortran::lower::AbstractConverter &converter,
888
888
clause::If::DirectiveNameModifier directiveName;
889
889
// GCC 9.3.0 emits a (probably) bogus warning about an unused variable.
890
890
[[maybe_unused]] llvm::omp::Directive directive;
891
- if constexpr (std::is_same_v<OpTy, mlir::omp::EnterDataOp >) {
891
+ if constexpr (std::is_same_v<OpTy, mlir::omp::TargetEnterDataOp >) {
892
892
directiveName = clause::If::DirectiveNameModifier::TargetEnterData;
893
893
directive = llvm::omp::Directive::OMPD_target_enter_data;
894
- } else if constexpr (std::is_same_v<OpTy, mlir::omp::ExitDataOp >) {
894
+ } else if constexpr (std::is_same_v<OpTy, mlir::omp::TargetExitDataOp >) {
895
895
directiveName = clause::If::DirectiveNameModifier::TargetExitData;
896
896
directive = llvm::omp::Directive::OMPD_target_exit_data;
897
- } else if constexpr (std::is_same_v<OpTy, mlir::omp::UpdateDataOp >) {
897
+ } else if constexpr (std::is_same_v<OpTy, mlir::omp::TargetUpdateOp >) {
898
898
directiveName = clause::If::DirectiveNameModifier::TargetUpdate;
899
899
directive = llvm::omp::Directive::OMPD_target_update;
900
900
} else {
@@ -907,7 +907,7 @@ genEnterExitUpdateDataOp(Fortran::lower::AbstractConverter &converter,
907
907
cp.processDepend (dependTypeOperands, dependOperands);
908
908
cp.processNowait (nowaitAttr);
909
909
910
- if constexpr (std::is_same_v<OpTy, mlir::omp::UpdateDataOp >) {
910
+ if constexpr (std::is_same_v<OpTy, mlir::omp::TargetUpdateOp >) {
911
911
cp.processMotionClauses <Fortran::parser::OmpClause::To>(stmtCtx,
912
912
mapOperands);
913
913
cp.processMotionClauses <Fortran::parser::OmpClause::From>(stmtCtx,
@@ -1379,19 +1379,19 @@ genOmpSimpleStandalone(Fortran::lower::AbstractConverter &converter,
1379
1379
firOpBuilder.create <mlir::omp::TaskyieldOp>(currentLocation);
1380
1380
break ;
1381
1381
case llvm::omp::Directive::OMPD_target_data:
1382
- genDataOp (converter, semaCtx, eval, genNested, currentLocation,
1383
- opClauseList);
1382
+ genTargetDataOp (converter, semaCtx, eval, genNested, currentLocation,
1383
+ opClauseList);
1384
1384
break ;
1385
1385
case llvm::omp::Directive::OMPD_target_enter_data:
1386
- genEnterExitUpdateDataOp <mlir::omp::EnterDataOp >(
1386
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetEnterDataOp >(
1387
1387
converter, semaCtx, currentLocation, opClauseList);
1388
1388
break ;
1389
1389
case llvm::omp::Directive::OMPD_target_exit_data:
1390
- genEnterExitUpdateDataOp <mlir::omp::ExitDataOp >(
1390
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetExitDataOp >(
1391
1391
converter, semaCtx, currentLocation, opClauseList);
1392
1392
break ;
1393
1393
case llvm::omp::Directive::OMPD_target_update:
1394
- genEnterExitUpdateDataOp <mlir::omp::UpdateDataOp >(
1394
+ genTargetEnterExitUpdateDataOp <mlir::omp::TargetUpdateOp >(
1395
1395
converter, semaCtx, currentLocation, opClauseList);
1396
1396
break ;
1397
1397
case llvm::omp::Directive::OMPD_ordered:
@@ -1844,15 +1844,15 @@ genOMP(Fortran::lower::AbstractConverter &converter,
1844
1844
beginClauseList, directive.v );
1845
1845
break ;
1846
1846
case llvm::omp::Directive::OMPD_target_data:
1847
- genDataOp (converter, semaCtx, eval, /* genNested=*/ true , currentLocation ,
1848
- beginClauseList);
1847
+ genTargetDataOp (converter, semaCtx, eval, /* genNested=*/ true ,
1848
+ currentLocation, beginClauseList);
1849
1849
break ;
1850
1850
case llvm::omp::Directive::OMPD_task:
1851
1851
genTaskOp (converter, semaCtx, eval, /* genNested=*/ true , currentLocation,
1852
1852
beginClauseList);
1853
1853
break ;
1854
1854
case llvm::omp::Directive::OMPD_taskgroup:
1855
- genTaskGroupOp (converter, semaCtx, eval, /* genNested=*/ true ,
1855
+ genTaskgroupOp (converter, semaCtx, eval, /* genNested=*/ true ,
1856
1856
currentLocation, beginClauseList);
1857
1857
break ;
1858
1858
case llvm::omp::Directive::OMPD_teams:
0 commit comments