From 5064a34165ccadf4718b2c159eff41f008261681 Mon Sep 17 00:00:00 2001 From: Sourabh Singh Tomar Date: Thu, 15 Apr 2021 21:55:43 +0530 Subject: [PATCH] [flang][OpenMP] Remove `OmpEndLoopDirective` handles from code. 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 | 4 ---- flang/lib/Lower/OpenMP.cpp | 7 ------- 2 files changed, 11 deletions(-) diff --git a/flang/include/flang/Lower/OpenMP.h b/flang/include/flang/Lower/OpenMP.h index 13dd43b..a056443 100644 --- a/flang/include/flang/Lower/OpenMP.h +++ b/flang/include/flang/Lower/OpenMP.h @@ -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 diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp index 4bff1cd..36c5ebe 100644 --- a/flang/lib/Lower/OpenMP.cpp +++ b/flang/lib/Lower/OpenMP.cpp @@ -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"); -} -- 2.7.4