[flang][openacc] Add proper TODO for the block construct
authorValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 18:32:35 +0000 (11:32 -0700)
committerValentin Clement <clementval@gmail.com>
Thu, 13 Apr 2023 18:33:16 +0000 (11:33 -0700)
Trigger the not yet implemented message for
block constructs that are not lowered.

Reviewed By: PeteSteinfeld, razvanlupusoru

Differential Revision: https://reviews.llvm.org/D148253

flang/lib/Lower/OpenACC.cpp

index ad08f90..0b8b2e2 100644 (file)
@@ -701,6 +701,12 @@ genACC(Fortran::lower::AbstractConverter &converter,
   } else if (blockDirective.v == llvm::acc::ACCD_data) {
     genACCDataOp(converter, currentLocation, semanticsContext, stmtCtx,
                  accClauseList);
+  } else if (blockDirective.v == llvm::acc::ACCD_serial) {
+    TODO(currentLocation, "serial construct lowering");
+  } else if (blockDirective.v == llvm::acc::ACCD_kernels) {
+    TODO(currentLocation, "kernels construct lowering");
+  } else if (blockDirective.v == llvm::acc::ACCD_host_data) {
+    TODO(currentLocation, "host_data construct lowering");
   }
 }