[flang-commits] [flang] [flang][OpenMP] Move some class definitions into right place, NFC (PR #172736)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Dec 17 12:53:30 PST 2025


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

They were accidentally committed out of the alphabetical order.

>From e691dbd85f569abb4b3ede04f4ab81f8e73e3933 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Wed, 17 Dec 2025 14:51:25 -0600
Subject: [PATCH] [flang][OpenMP] Move some class definitions into right place,
 NFC

They were accidentally committed out of the alphabetical order.
---
 flang/include/flang/Parser/parse-tree.h | 68 ++++++++++++-------------
 1 file changed, 34 insertions(+), 34 deletions(-)

diff --git a/flang/include/flang/Parser/parse-tree.h b/flang/include/flang/Parser/parse-tree.h
index 93743709f10d2..97737b46e6401 100644
--- a/flang/include/flang/Parser/parse-tree.h
+++ b/flang/include/flang/Parser/parse-tree.h
@@ -4031,40 +4031,6 @@ struct OmpFallbackModifier {
   WRAPPER_CLASS_BOILERPLATE(OmpFallbackModifier, Value);
 };
 
-// Ref: [6.0:470-471]
-//
-// preference-selector ->                           // since 6.0
-//    FR(foreign-runtime-identifier) |
-//    ATTR(preference-property-extension, ...)
-struct OmpPreferenceSelector {
-  UNION_CLASS_BOILERPLATE(OmpPreferenceSelector);
-  using ForeignRuntimeIdentifier = common::Indirection<Expr>;
-  using PreferencePropertyExtension = common::Indirection<Expr>;
-  using Extensions = std::list<PreferencePropertyExtension>;
-  std::variant<ForeignRuntimeIdentifier, Extensions> u;
-};
-
-// Ref: [6.0:470-471]
-//
-// preference-specification ->
-//    {preference-selector...} |                    // since 6.0
-//    foreign-runtime-identifier                    // since 5.1
-struct OmpPreferenceSpecification {
-  UNION_CLASS_BOILERPLATE(OmpPreferenceSpecification);
-  using ForeignRuntimeIdentifier =
-      OmpPreferenceSelector::ForeignRuntimeIdentifier;
-  std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
-};
-
-// REF: [5.1:217-220], [5.2:293-294], [6.0:470-471]
-//
-// prefer-type ->                                   // since 5.1
-//    PREFER_TYPE(preference-specification...)
-struct OmpPreferType {
-  WRAPPER_CLASS_BOILERPLATE(
-      OmpPreferType, std::list<OmpPreferenceSpecification>);
-};
-
 // REF: [5.1:217-220], [5.2:293-294], [6.0:470-471]
 //
 // interop-type ->                                  // since 5.1
@@ -4182,6 +4148,40 @@ struct OmpOrderModifier {
   WRAPPER_CLASS_BOILERPLATE(OmpOrderModifier, Value);
 };
 
+// Ref: [6.0:470-471]
+//
+// preference-selector ->                           // since 6.0
+//    FR(foreign-runtime-identifier) |
+//    ATTR(preference-property-extension, ...)
+struct OmpPreferenceSelector {
+  UNION_CLASS_BOILERPLATE(OmpPreferenceSelector);
+  using ForeignRuntimeIdentifier = common::Indirection<Expr>;
+  using PreferencePropertyExtension = common::Indirection<Expr>;
+  using Extensions = std::list<PreferencePropertyExtension>;
+  std::variant<ForeignRuntimeIdentifier, Extensions> u;
+};
+
+// Ref: [6.0:470-471]
+//
+// preference-specification ->
+//    {preference-selector...} |                    // since 6.0
+//    foreign-runtime-identifier                    // since 5.1
+struct OmpPreferenceSpecification {
+  UNION_CLASS_BOILERPLATE(OmpPreferenceSpecification);
+  using ForeignRuntimeIdentifier =
+      OmpPreferenceSelector::ForeignRuntimeIdentifier;
+  std::variant<std::list<OmpPreferenceSelector>, ForeignRuntimeIdentifier> u;
+};
+
+// REF: [5.1:217-220], [5.2:293-294], [6.0:470-471]
+//
+// prefer-type ->                                   // since 5.1
+//    PREFER_TYPE(preference-specification...)
+struct OmpPreferType {
+  WRAPPER_CLASS_BOILERPLATE(
+      OmpPreferType, std::list<OmpPreferenceSpecification>);
+};
+
 // Ref: [5.1:166-171], [5.2:269-270]
 //
 // prescriptiveness ->



More information about the flang-commits mailing list