[flang][OpenMP] Remove `OmpEndLoopDirective` handles from code.
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Thu, 15 Apr 2021 16:25:43 +0000 (21:55 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Thu, 15 Apr 2021 18:30:07 +0000 (00:00 +0530)
This directive is currently lowered as NOP.

Patch is an attempt upstream code from:
PR: https://github.com/flang-compiler/f18-llvm-project/pull/573

Reviewed By: kiranchandramohan, schweitz, clementval

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

flang/include/flang/Lower/OpenMP.h
flang/lib/Lower/OpenMP.cpp

index 13dd43b..a056443 100644 (file)
@@ -16,7 +16,6 @@
 namespace Fortran {
 namespace parser {
 struct OpenMPConstruct;
-struct OmpEndLoopDirective;
 } // namespace parser
 
 namespace lower {
@@ -30,9 +29,6 @@ struct Evaluation;
 void genOpenMPConstruct(AbstractConverter &, pft::Evaluation &,
                         const parser::OpenMPConstruct &);
 
-void genOpenMPEndLoop(AbstractConverter &, pft::Evaluation &,
-                      const parser::OmpEndLoopDirective &);
-
 } // namespace lower
 } // namespace Fortran
 
index 4bff1cd..36c5ebe 100644 (file)
@@ -286,10 +286,3 @@ void Fortran::lower::genOpenMPConstruct(
       },
       ompConstruct.u);
 }
-
-void Fortran::lower::genOpenMPEndLoop(
-    Fortran::lower::AbstractConverter &converter,
-    Fortran::lower::pft::Evaluation &,
-    const Fortran::parser::OmpEndLoopDirective &) {
-  TODO(converter.getCurrentLocation(), "OmpEndLoopDirective");
-}