[flang-commits] [flang] [mlir] [flang][openacc] Add loop expand pass (PR #74045)

via flang-commits flang-commits at lists.llvm.org
Fri Dec 1 15:18:52 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 7169c45efa9055ef518ceba5e3cd28272d84a21f a4f5168842cbb489fc106a2993bab85cf4d3410f -- flang/lib/Optimizer/Transforms/OpenACCLoopExpand.cpp flang/include/flang/Optimizer/Transforms/Passes.h
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Optimizer/Transforms/OpenACCLoopExpand.cpp b/flang/lib/Optimizer/Transforms/OpenACCLoopExpand.cpp
index f345fa0bef..0f6428930b 100644
--- a/flang/lib/Optimizer/Transforms/OpenACCLoopExpand.cpp
+++ b/flang/lib/Optimizer/Transforms/OpenACCLoopExpand.cpp
@@ -107,7 +107,9 @@ void LoopExpand::runOnOperation() {
           builder.createConvert(loc, idxTy, accLoopOp.getUpperbound()[i]));
       steps.push_back(
           builder.createConvert(loc, idxTy, accLoopOp.getStep()[i]));
-      iterArgs.push_back(builder.createConvert(loc, fir::unwrapRefType(ivs[i].getType()), accLoopOp.getLowerbound()[i]));
+      iterArgs.push_back(
+          builder.createConvert(loc, fir::unwrapRefType(ivs[i].getType()),
+                                accLoopOp.getLowerbound()[i]));
       fir::DoLoopOp doLoopOp = builder.create<fir::DoLoopOp>(
           loc, lbs[i], ubs[i], steps[i], /*unordered=*/false, finalCountValue,
           mlir::ValueRange{iterArgs[i]});

``````````

</details>


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


More information about the flang-commits mailing list