@@ -347,7 +347,7 @@ static void createBodyOfOp(Op &op, OpWithBodyGenInfo &info) {
347
347
348
348
// Start with privatization, so that the lowering of the nested
349
349
// code will use the right symbols.
350
- constexpr bool isLoop = std::is_same_v<Op, mlir::omp::WsLoopOp > ||
350
+ constexpr bool isLoop = std::is_same_v<Op, mlir::omp::WsloopOp > ||
351
351
std::is_same_v<Op, mlir::omp::SimdLoopOp>;
352
352
bool privatize = info.clauses && !info.outerCombined ;
353
353
@@ -1140,15 +1140,15 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
1140
1140
converter.getCurrentLocation ());
1141
1141
if (fir::unwrapRefType (info.addr .getType ()).isa <fir::BaseBoxType>())
1142
1142
bounds =
1143
- Fortran::lower::genBoundsOpsFromBox<mlir::omp::DataBoundsOp ,
1144
- mlir::omp::DataBoundsType >(
1143
+ Fortran::lower::genBoundsOpsFromBox<mlir::omp::MapBoundsOp ,
1144
+ mlir::omp::MapBoundsType >(
1145
1145
converter.getFirOpBuilder (), converter.getCurrentLocation (),
1146
1146
converter, dataExv, info);
1147
1147
if (fir::unwrapRefType (info.addr .getType ()).isa <fir::SequenceType>()) {
1148
1148
bool dataExvIsAssumedSize =
1149
1149
Fortran::semantics::IsAssumedSizeArray (sym.GetUltimate ());
1150
- bounds = Fortran::lower::genBaseBoundsOps<mlir::omp::DataBoundsOp ,
1151
- mlir::omp::DataBoundsType >(
1150
+ bounds = Fortran::lower::genBaseBoundsOps<mlir::omp::MapBoundsOp ,
1151
+ mlir::omp::MapBoundsType >(
1152
1152
converter.getFirOpBuilder (), converter.getCurrentLocation (),
1153
1153
converter, dataExv, dataExvIsAssumedSize);
1154
1154
}
@@ -1580,7 +1580,7 @@ createSimdLoop(Fortran::lower::AbstractConverter &converter,
1580
1580
.setGenRegionEntryCb (ivCallback));
1581
1581
}
1582
1582
1583
- static void createWsLoop (Fortran::lower::AbstractConverter &converter,
1583
+ static void createWsloop (Fortran::lower::AbstractConverter &converter,
1584
1584
Fortran::semantics::SemanticsContext &semaCtx,
1585
1585
Fortran::lower::pft::Evaluation &eval,
1586
1586
llvm::omp::Directive ompDirective,
@@ -1616,7 +1616,7 @@ static void createWsLoop(Fortran::lower::AbstractConverter &converter,
1616
1616
if (ReductionProcessor::doReductionByRef (reductionVars))
1617
1617
byrefOperand = firOpBuilder.getUnitAttr ();
1618
1618
1619
- auto wsLoopOp = firOpBuilder.create <mlir::omp::WsLoopOp >(
1619
+ auto wsLoopOp = firOpBuilder.create <mlir::omp::WsloopOp >(
1620
1620
loc, lowerBound, upperBound, step, linearVars, linearStepVars,
1621
1621
reductionVars,
1622
1622
reductionDeclSymbols.empty ()
@@ -1658,15 +1658,15 @@ static void createWsLoop(Fortran::lower::AbstractConverter &converter,
1658
1658
reductionTypes);
1659
1659
};
1660
1660
1661
- createBodyOfOp<mlir::omp::WsLoopOp >(
1661
+ createBodyOfOp<mlir::omp::WsloopOp >(
1662
1662
wsLoopOp, OpWithBodyGenInfo (converter, semaCtx, loc, *nestedEval)
1663
1663
.setClauses (&beginClauseList)
1664
1664
.setDataSharingProcessor (&dsp)
1665
1665
.setReductions (&reductionSymbols, &reductionTypes)
1666
1666
.setGenRegionEntryCb (ivCallback));
1667
1667
}
1668
1668
1669
- static void createSimdWsLoop (
1669
+ static void createSimdWsloop (
1670
1670
Fortran::lower::AbstractConverter &converter,
1671
1671
Fortran::semantics::SemanticsContext &semaCtx,
1672
1672
Fortran::lower::pft::Evaluation &eval, llvm::omp::Directive ompDirective,
@@ -1686,7 +1686,7 @@ static void createSimdWsLoop(
1686
1686
// When support for vectorization is enabled, then we need to add handling of
1687
1687
// if clause. Currently if clause can be skipped because we always assume
1688
1688
// SIMD length = 1.
1689
- createWsLoop (converter, semaCtx, eval, ompDirective, beginClauseList,
1689
+ createWsloop (converter, semaCtx, eval, ompDirective, beginClauseList,
1690
1690
endClauseList, loc);
1691
1691
}
1692
1692
@@ -1758,7 +1758,7 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
1758
1758
1759
1759
if (llvm::omp::allDoSimdSet.test (ompDirective)) {
1760
1760
// 2.9.3.2 Workshare SIMD construct
1761
- createSimdWsLoop (converter, semaCtx, eval, ompDirective, loopOpClauseList,
1761
+ createSimdWsloop (converter, semaCtx, eval, ompDirective, loopOpClauseList,
1762
1762
endClauseList, currentLocation);
1763
1763
1764
1764
} else if (llvm::omp::allSimdSet.test (ompDirective)) {
@@ -1767,7 +1767,7 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
1767
1767
currentLocation);
1768
1768
genOpenMPReduction (converter, semaCtx, loopOpClauseList);
1769
1769
} else {
1770
- createWsLoop (converter, semaCtx, eval, ompDirective, loopOpClauseList,
1770
+ createWsloop (converter, semaCtx, eval, ompDirective, loopOpClauseList,
1771
1771
endClauseList, currentLocation);
1772
1772
}
1773
1773
}
@@ -2206,7 +2206,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
2206
2206
mlir::Operation *Fortran::lower::genOpenMPTerminator (fir::FirOpBuilder &builder,
2207
2207
mlir::Operation *op,
2208
2208
mlir::Location loc) {
2209
- if (mlir::isa<mlir::omp::WsLoopOp , mlir::omp::ReductionDeclareOp ,
2209
+ if (mlir::isa<mlir::omp::WsloopOp , mlir::omp::DeclareReductionOp ,
2210
2210
mlir::omp::AtomicUpdateOp, mlir::omp::SimdLoopOp>(op))
2211
2211
return builder.create <mlir::omp::YieldOp>(loc);
2212
2212
else
0 commit comments