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

via flang-commits flang-commits at lists.llvm.org
Tue Sep 30 08:45:32 PDT 2025


Author: Krzysztof Parzyszek
Date: 2025-09-30T10:45:27-05:00
New Revision: 95069c119668a190afe766cab912a17a432a6f0f

URL: https://github.com/llvm/llvm-project/commit/95069c119668a190afe766cab912a17a432a6f0f
DIFF: https://github.com/llvm/llvm-project/commit/95069c119668a190afe766cab912a17a432a6f0f.diff

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

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

Added: 
    

Modified: 
    flang/include/flang/Parser/openmp-utils.h

Removed: 
    


################################################################################
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