[flang-commits] [flang] [flang][OpenMP] Remove unused DECLARE REDUCTION from openmp-utils.h, NFC (PR #161390)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Tue Sep 30 08:08:42 PDT 2025


https://github.com/kparzysz created https://github.com/llvm/llvm-project/pull/161390

DECLARE REDUCTION is now handled by the generic code, and the special handling no longer applies.

>From 24fe256edfd110a946a6c6bbb18ea3d0bef4c035 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Tue, 30 Sep 2025 10:04:03 -0500
Subject: [PATCH] [flang][OpenMP] Remove unused DECLARE REDUCTION from
 openmp-utils.h, NFC

DECLARE REDUCTION is now handled by the generic code, and the special
handling no longer applies.
---
 flang/include/flang/Parser/openmp-utils.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/flang/include/flang/Parser/openmp-utils.h b/flang/include/flang/Parser/openmp-utils.h
index b8f3559097750..f761332c9cfd7 100644
--- a/flang/include/flang/Parser/openmp-utils.h
+++ b/flang/include/flang/Parser/openmp-utils.h
@@ -39,7 +39,6 @@ struct ConstructId {
   }
 
 MAKE_CONSTR_ID(OpenMPDeclarativeAllocate, D::OMPD_allocate);
-MAKE_CONSTR_ID(OpenMPDeclareReductionConstruct, D::OMPD_declare_reduction);
 MAKE_CONSTR_ID(OpenMPExecutableAllocate, D::OMPD_allocate);
 
 #undef MAKE_CONSTR_ID
@@ -92,7 +91,6 @@ struct DirectiveNameScope {
       if constexpr (std::is_base_of_v<OmpBlockConstruct, T>) {
         return std::get<OmpBeginDirective>(x.t).DirName();
       } else if constexpr (std::is_same_v<T, OpenMPDeclarativeAllocate> ||
-          std::is_same_v<T, OpenMPDeclareReductionConstruct> ||
           std::is_same_v<T, OpenMPExecutableAllocate>) {
         return MakeName(std::get<Verbatim>(x.t).source, ConstructId<T>::id);
       } else {



More information about the flang-commits mailing list