[flang-commits] [flang] [flang][MLIR][OpenMP] Extend delayed privatization for scalar allocatables (PR #84740)

via flang-commits flang-commits at lists.llvm.org
Mon Mar 11 03:22:22 PDT 2024


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 3b30559c088d679ca8fe491158e6c32db630f223 a6180f0ca60c8601bc797fcfe400eaed7ab57aff -- flang/include/flang/Optimizer/Builder/BoxValue.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/include/flang/Optimizer/Builder/BoxValue.h b/flang/include/flang/Optimizer/Builder/BoxValue.h
index 698a5afa17..9b84bfb5ab 100644
--- a/flang/include/flang/Optimizer/Builder/BoxValue.h
+++ b/flang/include/flang/Optimizer/Builder/BoxValue.h
@@ -540,9 +540,10 @@ public:
   /// TODO So far, this is only a shallow clone; only the base address is
   /// replaced. This will probably be extended to implement deep cloning to
   /// support scenarios such as delayed privatization for ArrayBoxValue's.
-  ExtendedValue clone(mlir::Value newBase) const  {
-    return match([&](const UnboxedValue &box) -> ExtendedValue { return newBase; },
-                 [&](const auto &box) -> ExtendedValue { return box.clone(newBase); });
+  ExtendedValue clone(mlir::Value newBase) const {
+    return match(
+        [&](const UnboxedValue &box) -> ExtendedValue { return newBase; },
+        [&](const auto &box) -> ExtendedValue { return box.clone(newBase); });
   }
 
 private:

``````````

</details>


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


More information about the flang-commits mailing list