[flang-commits] [flang] bc7c9be - [flang][openacc] Add proper TODO for the block construct

Valentin Clement via flang-commits flang-commits at lists.llvm.org
Thu Apr 13 11:33:22 PDT 2023


Author: Valentin Clement
Date: 2023-04-13T11:33:16-07:00
New Revision: bc7c9be7b1e924553270175b10efec43898d0ff6

URL: https://github.com/llvm/llvm-project/commit/bc7c9be7b1e924553270175b10efec43898d0ff6
DIFF: https://github.com/llvm/llvm-project/commit/bc7c9be7b1e924553270175b10efec43898d0ff6.diff

LOG: [flang][openacc] Add proper TODO for the block construct

Trigger the not yet implemented message for
block constructs that are not lowered.

Reviewed By: PeteSteinfeld, razvanlupusoru

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

Added: 
    

Modified: 
    flang/lib/Lower/OpenACC.cpp

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index ad08f902a3d0..0b8b2e2fa31b 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -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");
   }
 }
 


        


More information about the flang-commits mailing list