[flang-commits] [flang] [OpenACC][flang] Emit NYI when unstructured loops are associated with OpenACC directives (PR #202948)
via flang-commits
flang-commits at lists.llvm.org
Thu Jun 11 02:29:15 PDT 2026
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 origin/main HEAD --extensions cpp -- flang/lib/Lower/OpenACC.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 e9cd17e37..51c9356cc 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -2348,10 +2348,9 @@ static mlir::acc::LoopOp createLoopOp(
reductionOperands, /*async=*/{},
/*asyncDeviceTypes=*/{}, /*asyncOnlyDeviceTypes=*/{},
&dataMap);
- } else if (tryHandleLoopParModeClause(builder, clause, crtDeviceTypes,
- seqDeviceTypes,
- independentDeviceTypes,
- autoDeviceTypes)) {
+ } else if (tryHandleLoopParModeClause(
+ builder, clause, crtDeviceTypes, seqDeviceTypes,
+ independentDeviceTypes, autoDeviceTypes)) {
// Updates to the relevant variables is already handled in
// tryHandleLoopParModeClause.
} else if (const auto *collapseClause =
@@ -2480,7 +2479,8 @@ genACC(Fortran::lower::AbstractConverter &converter,
if (outerDoConstruct.has_value() && eval.lowerAsUnstructured() &&
loopWillBeIndependent(converter, accClauseList, loopDirective.v))
- TODO(currentLocation, "unstructured do loop in independent OpenACC loop construct");
+ TODO(currentLocation,
+ "unstructured do loop in independent OpenACC loop construct");
auto loopOp = createLoopOp(converter, currentLocation, semanticsContext,
stmtCtx, *outerDoConstruct, eval, accClauseList,
``````````
</details>
https://github.com/llvm/llvm-project/pull/202948
More information about the flang-commits
mailing list