Skip to content

Commit c33681d

Browse files
author
Razvan Lupusoru
committed
Add TODO for unstructured case
1 parent f14235d commit c33681d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flang/lib/Lower/OpenACC.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5013,13 +5013,14 @@ mlir::Operation *Fortran::lower::genOpenACCLoopFromDoConstruct(
50135013
if (!doConstruct.IsDoNormal() && !doConstruct.IsDoConcurrent())
50145014
return nullptr;
50155015

5016-
// If the evaluation is not structured, then we cannot convert the loop
5016+
// If the evaluation is unstructured, then we cannot convert the loop
50175017
// because acc loop does not have an unstructured form.
50185018
// TODO: There may be other strategies that can be employed such
50195019
// as generating acc.private for the loop variables without attaching
50205020
// them to acc.loop.
50215021
if (eval.lowerAsUnstructured())
5022-
return nullptr;
5022+
TODO(converter.getCurrentLocation(),
5023+
"unstructured do loops in acc regions");
50235024

50245025
// Open up a new scope for the loop variables.
50255026
localSymbols.pushScope();

0 commit comments

Comments
 (0)