[flang-commits] [flang] [Flang][Lower][OpenMP] Add initial lowering of pointers/allocatables/target in map clauses to map_info and entries (PR #68600)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 9 08:43:46 PDT 2023


github-actions[bot] wrote:


<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff e44cfe0fb1ae977eeef654406eca7d42b18df2c8 873c181efe0d813c79c4f5d96b68b14469a95a7d -- flang/lib/Lower/OpenMP.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index 8002423e0..0714d1f5a 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -1754,25 +1754,25 @@ bool ClauseProcessor::processMap(
                                        semanticsContext, stmtCtx, ompObject,
                                        clauseLocation, asFortran, bounds);
 
-          auto checkIfStructComponent = [](const Fortran::parser::OmpObject
-                                               &ompObject) {
-            bool isComponent = false;
-            std::visit(
-                Fortran::common::visitors{
-                    [&](const Fortran::parser::Designator &designator) {
-                      if (auto *structComp = Fortran::parser::Unwrap<
-                              Fortran::parser::StructureComponent>(
-                              designator)) {
-                        if (std::holds_alternative<Fortran::parser::Name>(
-                                structComp->base.u))
-                          isComponent = true;
-                      }
-                    },
-                    [&](const Fortran::parser::Name &name) {}},
-                ompObject.u);
-
-            return isComponent;
-          };
+          auto checkIfStructComponent =
+              [](const Fortran::parser::OmpObject &ompObject) {
+                bool isComponent = false;
+                std::visit(
+                    Fortran::common::visitors{
+                        [&](const Fortran::parser::Designator &designator) {
+                          if (auto *structComp = Fortran::parser::Unwrap<
+                                  Fortran::parser::StructureComponent>(
+                                  designator)) {
+                            if (std::holds_alternative<Fortran::parser::Name>(
+                                    structComp->base.u))
+                              isComponent = true;
+                          }
+                        },
+                        [&](const Fortran::parser::Name &name) {}},
+                    ompObject.u);
+
+                return isComponent;
+              };
 
           // TODO: Currently, it appears there's missing symbol information
           // and bounds information for allocatables and pointers inside

``````````

</details>


https://github.com/llvm/llvm-project/pull/68600


More information about the flang-commits mailing list