[flang-commits] [flang] 5064a34 - [flang][OpenMP] Remove `OmpEndLoopDirective` handles from code.
Sourabh Singh Tomar via flang-commits
flang-commits at lists.llvm.org
Thu Apr 15 11:30:46 PDT 2021
Author: Sourabh Singh Tomar
Date: 2021-04-16T00:00:07+05:30
New Revision: 5064a34165ccadf4718b2c159eff41f008261681
URL: https://github.com/llvm/llvm-project/commit/5064a34165ccadf4718b2c159eff41f008261681
DIFF: https://github.com/llvm/llvm-project/commit/5064a34165ccadf4718b2c159eff41f008261681.diff
LOG: [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
Added:
Modified:
flang/include/flang/Lower/OpenMP.h
flang/lib/Lower/OpenMP.cpp
Removed:
################################################################################
diff --git a/flang/include/flang/Lower/OpenMP.h b/flang/include/flang/Lower/OpenMP.h
index 13dd43b60fded..a056443aeda31 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 4bff1cde27052..36c5ebeeb0da0 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");
-}
More information about the flang-commits
mailing list