[flang-commits] [flang] [Flang] Add Maxloc to fir simplify intrinsics pass (PR #75463)

via flang-commits flang-commits at lists.llvm.org
Fri Dec 15 05:06:50 PST 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 3e8b175eec6fef1a073fb7d0d867fbc6a7837f57 7c1fd8d4c678a755efede188dc434f82bf553410 -- flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp b/flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
index 968056ceda..c89ee6d5e2 100644
--- a/flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
+++ b/flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
@@ -359,8 +359,8 @@ using MinMaxlocBodyOpGeneratorTy = llvm::function_ref<mlir::Value(
 
 static void genMinMaxlocReductionLoop(
     fir::FirOpBuilder &builder, mlir::func::FuncOp &funcOp,
-    InitValGeneratorTy initVal, MinMaxlocBodyOpGeneratorTy genBody, unsigned rank,
-    mlir::Type elementType, mlir::Location loc, bool hasMask,
+    InitValGeneratorTy initVal, MinMaxlocBodyOpGeneratorTy genBody,
+    unsigned rank, mlir::Type elementType, mlir::Location loc, bool hasMask,
     mlir::Type maskElemType, mlir::Value resultArr) {
 
   mlir::IndexType idxTy = builder.getIndexType();

``````````

</details>


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


More information about the flang-commits mailing list