[flang-commits] [flang] [flang][openacc] Support array with dynamic extents in reduction recipe (PR #68829)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 16 10:25:32 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 182a65adcf8af922246cac80ea6f3fdb159cd89e 9a20a1eb557ef17f3870d80e2c327a5c2405505b -- flang/lib/Lower/OpenACC.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 01d673f0e..49db55047 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -1086,8 +1086,9 @@ static void genCombiner(fir::FirOpBuilder &builder, mlir::Location loc,
     llvm::SmallVector<fir::DoLoopOp> loops;
     llvm::SmallVector<mlir::Value> ivs;
     if (seqTy.hasDynamicExtents()) {
-      auto shape = genShapeFromBoundsOrArgs(
-        loc, builder, seqTy, bounds, recipe.getCombinerRegion().getArguments());
+      auto shape =
+          genShapeFromBoundsOrArgs(loc, builder, seqTy, bounds,
+                                   recipe.getCombinerRegion().getArguments());
       auto v1DeclareOp = builder.create<hlfir::DeclareOp>(
           loc, value1, llvm::StringRef{}, shape, llvm::ArrayRef<mlir::Value>{},
           fir::FortranVariableFlagsAttr{});

``````````

</details>


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


More information about the flang-commits mailing list