[Mlir-commits] [flang] [mlir] [flang][acc] Ensure data exit action is generated for present & nocreate (PR #126560)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 10 10:03:20 PST 2025
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 1c583c19bb7914a2686e245b7e1d14f82fe454eb 5f85b93b237bab51d3582527c3f4f0076c3dc0f3 --extensions cpp -- flang/lib/Lower/OpenACC.cpp 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/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index da534107b1..bbca4cab58 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -2464,7 +2464,7 @@ static Op createComputeOp(
/*structured=*/true, /*implicit=*/false, async, asyncDeviceTypes,
asyncOnlyDeviceTypes);
nocreateEntryOperands.append(dataClauseOperands.begin() + crtDataStart,
- dataClauseOperands.end());
+ dataClauseOperands.end());
} else if (const auto *presentClause =
std::get_if<Fortran::parser::AccClause::Present>(
&clause.u)) {
@@ -2475,7 +2475,7 @@ static Op createComputeOp(
/*structured=*/true, /*implicit=*/false, async, asyncDeviceTypes,
asyncOnlyDeviceTypes);
presentEntryOperands.append(dataClauseOperands.begin() + crtDataStart,
- dataClauseOperands.end());
+ dataClauseOperands.end());
} else if (const auto *devicePtrClause =
std::get_if<Fortran::parser::AccClause::Deviceptr>(
&clause.u)) {
@@ -2763,7 +2763,7 @@ static void genACCDataOp(Fortran::lower::AbstractConverter &converter,
/*structured=*/true, /*implicit=*/false, async, asyncDeviceTypes,
asyncOnlyDeviceTypes);
nocreateEntryOperands.append(dataClauseOperands.begin() + crtDataStart,
- dataClauseOperands.end());
+ dataClauseOperands.end());
} else if (const auto *presentClause =
std::get_if<Fortran::parser::AccClause::Present>(
&clause.u)) {
@@ -2774,7 +2774,7 @@ static void genACCDataOp(Fortran::lower::AbstractConverter &converter,
/*structured=*/true, /*implicit=*/false, async, asyncDeviceTypes,
asyncOnlyDeviceTypes);
presentEntryOperands.append(dataClauseOperands.begin() + crtDataStart,
- dataClauseOperands.end());
+ dataClauseOperands.end());
} else if (const auto *deviceptrClause =
std::get_if<Fortran::parser::AccClause::Deviceptr>(
&clause.u)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/126560
More information about the Mlir-commits
mailing list