18
18
#include " flang/Optimizer/OpenMP/Passes.h"
19
19
#include " flang/Optimizer/OpenMP/Utils.h"
20
20
#include " flang/Support/OpenMP-utils.h"
21
+ #include " flang/Utils/OpenMP.h"
21
22
#include " mlir/Analysis/SliceAnalysis.h"
22
23
#include " mlir/Dialect/Func/IR/FuncOps.h"
23
24
#include " mlir/Dialect/OpenMP/OpenMPDialect.h"
@@ -631,7 +632,7 @@ class DoConcurrentConversion
631
632
llvm::SmallVector<mlir::Value> boundsOps;
632
633
genBoundsOps (builder, liveIn, rawAddr, boundsOps);
633
634
634
- return Fortran::common ::openmp::createMapInfoOp (
635
+ return Fortran::utils ::openmp::createMapInfoOp (
635
636
builder, liveIn.getLoc (), rawAddr,
636
637
/* varPtrPtr=*/ {}, name.str (), boundsOps,
637
638
/* members=*/ {},
@@ -720,7 +721,7 @@ class DoConcurrentConversion
720
721
// MemoryEffectFree, or else copy them to a new temporary and add them to
721
722
// the map and block_argument lists and replace their uses with the new
722
723
// temporary.
723
- Fortran::common ::openmp::cloneOrMapRegionOutsiders (builder, targetOp);
724
+ Fortran::utils ::openmp::cloneOrMapRegionOutsiders (builder, targetOp);
724
725
rewriter.setInsertionPoint (
725
726
rewriter.create <mlir::omp::TerminatorOp>(targetOp.getLoc ()));
726
727
@@ -753,11 +754,11 @@ class DoConcurrentConversion
753
754
llvm::zip_equal (targetShapeCreationInfo.startIndices ,
754
755
targetShapeCreationInfo.extents )) {
755
756
shapeShiftOperands.push_back (
756
- Fortran::common ::openmp::mapTemporaryValue (
757
+ Fortran::utils ::openmp::mapTemporaryValue (
757
758
builder, targetOp, startIndex,
758
759
liveInName + " .start_idx.dim" + std::to_string (shapeIdx)));
759
760
shapeShiftOperands.push_back (
760
- Fortran::common ::openmp::mapTemporaryValue (
761
+ Fortran::utils ::openmp::mapTemporaryValue (
761
762
builder, targetOp, extent,
762
763
liveInName + " .extent.dim" + std::to_string (shapeIdx)));
763
764
++shapeIdx;
@@ -772,7 +773,7 @@ class DoConcurrentConversion
772
773
llvm::SmallVector<mlir::Value> shapeOperands;
773
774
size_t shapeIdx = 0 ;
774
775
for (auto extent : targetShapeCreationInfo.extents ) {
775
- shapeOperands.push_back (Fortran::common ::openmp::mapTemporaryValue (
776
+ shapeOperands.push_back (Fortran::utils ::openmp::mapTemporaryValue (
776
777
builder, targetOp, extent,
777
778
liveInName + " .extent.dim" + std::to_string (shapeIdx)));
778
779
++shapeIdx;
0 commit comments