@@ -718,7 +718,8 @@ static void createBodyOfOp(mlir::Operation &op, const OpWithBodyGenInfo &info,
718
718
std::optional<DataSharingProcessor> tempDsp;
719
719
if (privatize && !info.dsp ) {
720
720
tempDsp.emplace (info.converter , info.semaCtx , *info.clauses , info.eval ,
721
- Fortran::lower::omp::isLastItemInQueue (item, queue));
721
+ Fortran::lower::omp::isLastItemInQueue (item, queue),
722
+ /* useDelayedPrivatization=*/ false , info.symTable );
722
723
tempDsp->processStep1 ();
723
724
}
724
725
@@ -1423,7 +1424,7 @@ static void genLoopOp(lower::AbstractConverter &converter,
1423
1424
1424
1425
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
1425
1426
/* shouldCollectPreDeterminedSymbols=*/ true ,
1426
- /* useDelayedPrivatization=*/ true , & symTable);
1427
+ /* useDelayedPrivatization=*/ true , symTable);
1427
1428
dsp.processStep1 (&loopClauseOps);
1428
1429
1429
1430
mlir::omp::LoopNestOperands loopNestClauseOps;
@@ -1544,7 +1545,8 @@ genSectionsOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
1544
1545
// Insert privatizations before SECTIONS
1545
1546
lower::SymMapScope scope (symTable);
1546
1547
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
1547
- lower::omp::isLastItemInQueue (item, queue));
1548
+ lower::omp::isLastItemInQueue (item, queue),
1549
+ /* useDelayedPrivatization=*/ false , symTable);
1548
1550
dsp.processStep1 ();
1549
1551
1550
1552
List<Clause> nonDsaClauses;
@@ -1695,7 +1697,7 @@ genTargetOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
1695
1697
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
1696
1698
/* shouldCollectPreDeterminedSymbols=*/
1697
1699
lower::omp::isLastItemInQueue (item, queue),
1698
- /* useDelayedPrivatization=*/ true , & symTable);
1700
+ /* useDelayedPrivatization=*/ true , symTable);
1699
1701
dsp.processStep1 (&clauseOps);
1700
1702
1701
1703
// 5.8.1 Implicit Data-Mapping Attribute Rules
@@ -1896,7 +1898,7 @@ genTaskOp(lower::AbstractConverter &converter, lower::SymMap &symTable,
1896
1898
1897
1899
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
1898
1900
lower::omp::isLastItemInQueue (item, queue),
1899
- /* useDelayedPrivatization=*/ true , & symTable);
1901
+ /* useDelayedPrivatization=*/ true , symTable);
1900
1902
dsp.processStep1 (&clauseOps);
1901
1903
1902
1904
EntryBlockArgs taskArgs;
@@ -2011,7 +2013,7 @@ static void genStandaloneDistribute(lower::AbstractConverter &converter,
2011
2013
2012
2014
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
2013
2015
/* shouldCollectPreDeterminedSymbols=*/ true ,
2014
- enableDelayedPrivatizationStaging, & symTable);
2016
+ enableDelayedPrivatizationStaging, symTable);
2015
2017
dsp.processStep1 (&distributeClauseOps);
2016
2018
2017
2019
mlir::omp::LoopNestOperands loopNestClauseOps;
@@ -2045,7 +2047,7 @@ static void genStandaloneDo(lower::AbstractConverter &converter,
2045
2047
2046
2048
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
2047
2049
/* shouldCollectPreDeterminedSymbols=*/ true ,
2048
- enableDelayedPrivatizationStaging, & symTable);
2050
+ enableDelayedPrivatizationStaging, symTable);
2049
2051
dsp.processStep1 (&wsloopClauseOps);
2050
2052
2051
2053
mlir::omp::LoopNestOperands loopNestClauseOps;
@@ -2084,7 +2086,7 @@ static void genStandaloneParallel(lower::AbstractConverter &converter,
2084
2086
if (enableDelayedPrivatization) {
2085
2087
dsp.emplace (converter, semaCtx, item->clauses , eval,
2086
2088
lower::omp::isLastItemInQueue (item, queue),
2087
- /* useDelayedPrivatization=*/ true , & symTable);
2089
+ /* useDelayedPrivatization=*/ true , symTable);
2088
2090
dsp->processStep1 (¶llelClauseOps);
2089
2091
}
2090
2092
@@ -2113,7 +2115,7 @@ static void genStandaloneSimd(lower::AbstractConverter &converter,
2113
2115
// TODO: Support delayed privatization.
2114
2116
DataSharingProcessor dsp (converter, semaCtx, item->clauses , eval,
2115
2117
/* shouldCollectPreDeterminedSymbols=*/ true ,
2116
- /* useDelayedPrivatization=*/ false , & symTable);
2118
+ /* useDelayedPrivatization=*/ false , symTable);
2117
2119
dsp.processStep1 ();
2118
2120
2119
2121
mlir::omp::LoopNestOperands loopNestClauseOps;
@@ -2167,7 +2169,7 @@ static void genCompositeDistributeParallelDo(
2167
2169
2168
2170
DataSharingProcessor dsp (converter, semaCtx, doItem->clauses , eval,
2169
2171
/* shouldCollectPreDeterminedSymbols=*/ true ,
2170
- /* useDelayedPrivatization=*/ true , & symTable);
2172
+ /* useDelayedPrivatization=*/ true , symTable);
2171
2173
dsp.processStep1 (¶llelClauseOps);
2172
2174
2173
2175
EntryBlockArgs parallelArgs;
@@ -2235,7 +2237,7 @@ static void genCompositeDistributeParallelDoSimd(
2235
2237
2236
2238
DataSharingProcessor dsp (converter, semaCtx, simdItem->clauses , eval,
2237
2239
/* shouldCollectPreDeterminedSymbols=*/ true ,
2238
- /* useDelayedPrivatization=*/ true , & symTable);
2240
+ /* useDelayedPrivatization=*/ true , symTable);
2239
2241
dsp.processStep1 (¶llelClauseOps);
2240
2242
2241
2243
EntryBlockArgs parallelArgs;
@@ -2323,7 +2325,7 @@ static void genCompositeDistributeSimd(lower::AbstractConverter &converter,
2323
2325
// TODO: Support delayed privatization.
2324
2326
DataSharingProcessor dsp (converter, semaCtx, simdItem->clauses , eval,
2325
2327
/* shouldCollectPreDeterminedSymbols=*/ true ,
2326
- /* useDelayedPrivatization=*/ false , & symTable);
2328
+ /* useDelayedPrivatization=*/ false , symTable);
2327
2329
dsp.processStep1 ();
2328
2330
2329
2331
// Pass the innermost leaf construct's clauses because that's where COLLAPSE
@@ -2380,7 +2382,7 @@ static void genCompositeDoSimd(lower::AbstractConverter &converter,
2380
2382
// TODO: Support delayed privatization.
2381
2383
DataSharingProcessor dsp (converter, semaCtx, simdItem->clauses , eval,
2382
2384
/* shouldCollectPreDeterminedSymbols=*/ true ,
2383
- /* useDelayedPrivatization=*/ false , & symTable);
2385
+ /* useDelayedPrivatization=*/ false , symTable);
2384
2386
dsp.processStep1 ();
2385
2387
2386
2388
// Pass the innermost leaf construct's clauses because that's where COLLAPSE
0 commit comments