[Mlir-commits] [mlir] [flang] [flang][openacc] Lower loop directive to the new acc.loop op design (PR #65417)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 29 14:13:36 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 b92bf0dad6ec9760e008a0fa22d7dbd0b045c776 b0fff85a5d6950c8048b3b962caa470acccdb4f1 -- flang/include/flang/Lower/OpenACC.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenACC.cpp mlir/include/mlir/Dialect/OpenACC/OpenACC.h mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index d7e4c40ae4..78a5ac75a7 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -2401,7 +2401,8 @@ private:
collapseValue = Fortran::lower::getCollapseValue(clauseList);
} else if (accCombined) {
const Fortran::parser::AccBeginCombinedDirective &beginCombinedDir =
- std::get<Fortran::parser::AccBeginCombinedDirective>(accCombined->t);
+ std::get<Fortran::parser::AccBeginCombinedDirective>(
+ accCombined->t);
const Fortran::parser::AccClauseList &clauseList =
std::get<Fortran::parser::AccClauseList>(beginCombinedDir.t);
collapseValue = Fortran::lower::getCollapseValue(clauseList);
``````````
</details>
https://github.com/llvm/llvm-project/pull/65417
More information about the Mlir-commits
mailing list