From ebb0c9c559b5809be491aa71cbe8235611081194 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Sat, 22 Nov 2025 15:26:17 -0600 Subject: =?UTF-8?q?[flang][OpenMP]=20Move=20some=20utilities=20from=20open?= =?UTF-8?q?mp-parsers=20to=20openmp-uti=E2=80=A6=20(#169188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ls, NFC --- flang/include/flang/Parser/openmp-utils.h | 10 ++++++++++ flang/lib/Parser/openmp-parsers.cpp | 24 ------------------------ flang/lib/Parser/openmp-utils.cpp | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 24 deletions(-) diff --git a/flang/include/flang/Parser/openmp-utils.h b/flang/include/flang/Parser/openmp-utils.h index 7396e57144b9..d4b739f4c952 100644 --- a/flang/include/flang/Parser/openmp-utils.h +++ b/flang/include/flang/Parser/openmp-utils.h @@ -126,6 +126,16 @@ const OpenMPConstruct *GetOmp(const ExecutionPartConstruct &x); const OpenMPLoopConstruct *GetOmpLoop(const ExecutionPartConstruct &x); const DoConstruct *GetDoConstruct(const ExecutionPartConstruct &x); +// Is the template argument "Statement" for some T? +template struct IsStatement { + static constexpr bool value{false}; +}; +template struct IsStatement> { + static constexpr bool value{true}; +}; + +std::optional