File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
flang/lib/Optimizer/Transforms Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,11 @@ class DoConcurrentConversion
186
186
llvm::cast<mlir::SymbolRefAttr>(localizerSym);
187
187
fir::LocalitySpecifierOp localizer = findLocalizer (loop, localizerName);
188
188
189
+ if (!localizer.getInitRegion ().empty () ||
190
+ !localizer.getDeallocRegion ().empty ())
191
+ TODO (localizer.getLoc (), " localizers with `init` and `dealloc` "
192
+ " regions are not handled yet." );
193
+
189
194
// TODO Should this be a heap allocation instead? For now, we allocate
190
195
// on the stack for each loop iteration.
191
196
mlir::Value localAlloc =
@@ -212,9 +217,6 @@ class DoConcurrentConversion
212
217
}
213
218
214
219
rewriter.replaceAllUsesWith (localArg, localAlloc);
215
-
216
- // TODO localizers with `init` and `dealloc` regions are not handled
217
- // yet.
218
220
}
219
221
220
222
loop.getRegion ().front ().eraseArguments (loop.getNumInductionVars (),
You can’t perform that action at this time.
0 commit comments