@@ -3094,16 +3094,11 @@ static mlir::omp::DistributeOp genCompositeDistributeSimd(
3094
3094
genSimdClauses (converter, semaCtx, simdItem->clauses , loc, simdClauseOps,
3095
3095
simdReductionSyms);
3096
3096
3097
- DataSharingProcessor distributeItemDSP (
3098
- converter, semaCtx, distributeItem->clauses , eval,
3099
- /* shouldCollectPreDeterminedSymbols=*/ false ,
3100
- /* useDelayedPrivatization=*/ true , symTable);
3101
- distributeItemDSP.processStep1 (&distributeClauseOps);
3102
-
3103
- DataSharingProcessor simdItemDSP (converter, semaCtx, simdItem->clauses , eval,
3104
- /* shouldCollectPreDeterminedSymbols=*/ true ,
3105
- /* useDelayedPrivatization=*/ true , symTable);
3106
- simdItemDSP.processStep1 (&simdClauseOps);
3097
+ // TODO: Support delayed privatization.
3098
+ DataSharingProcessor dsp (converter, semaCtx, simdItem->clauses , eval,
3099
+ /* shouldCollectPreDeterminedSymbols=*/ true ,
3100
+ /* useDelayedPrivatization=*/ false , symTable);
3101
+ dsp.processStep1 ();
3107
3102
3108
3103
// Pass the innermost leaf construct's clauses because that's where COLLAPSE
3109
3104
// is placed by construct decomposition.
@@ -3114,15 +3109,13 @@ static mlir::omp::DistributeOp genCompositeDistributeSimd(
3114
3109
3115
3110
// Operation creation.
3116
3111
EntryBlockArgs distributeArgs;
3117
- distributeArgs.priv .syms = distributeItemDSP.getDelayedPrivSymbols ();
3118
- distributeArgs.priv .vars = distributeClauseOps.privateVars ;
3112
+ // TODO: Add private syms and vars.
3119
3113
auto distributeOp = genWrapperOp<mlir::omp::DistributeOp>(
3120
3114
converter, loc, distributeClauseOps, distributeArgs);
3121
3115
distributeOp.setComposite (/* val=*/ true );
3122
3116
3123
3117
EntryBlockArgs simdArgs;
3124
- simdArgs.priv .syms = simdItemDSP.getDelayedPrivSymbols ();
3125
- simdArgs.priv .vars = simdClauseOps.privateVars ;
3118
+ // TODO: Add private syms and vars.
3126
3119
simdArgs.reduction .syms = simdReductionSyms;
3127
3120
simdArgs.reduction .vars = simdClauseOps.reductionVars ;
3128
3121
auto simdOp =
@@ -3132,7 +3125,7 @@ static mlir::omp::DistributeOp genCompositeDistributeSimd(
3132
3125
genLoopNestOp (converter, symTable, semaCtx, eval, loc, queue, simdItem,
3133
3126
loopNestClauseOps, iv,
3134
3127
{{distributeOp, distributeArgs}, {simdOp, simdArgs}},
3135
- llvm::omp::Directive::OMPD_distribute_simd, simdItemDSP );
3128
+ llvm::omp::Directive::OMPD_distribute_simd, dsp );
3136
3129
return distributeOp;
3137
3130
}
3138
3131
0 commit comments