[flang-commits] [flang] [flang][OpenACC] Generalize cross-region GOTO exit handling for all ACC region ops (PR #187613)
via flang-commits
flang-commits at lists.llvm.org
Fri Mar 20 14:02:50 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,h -- flang/include/flang/Lower/OpenACC.h flang/lib/Lower/Bridge.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 d0093a28d..02c4efe73 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -4590,9 +4590,9 @@ bool Fortran::lower::genOpenACCRegionExitBranch(fir::FirOpBuilder &builder,
for (mlir::Region *r = curRegion->getParentRegion(); r && r != targetRegion;
r = r->getParentRegion()) {
mlir::Operation *op = r->getParentOp();
- if (op && mlir::isa<ACC_COMPUTE_CONSTRUCT_OPS,
- ACC_DATA_CONSTRUCT_STRUCTURED_OPS,
- mlir::acc::LoopOp>(op))
+ if (op &&
+ mlir::isa<ACC_COMPUTE_CONSTRUCT_OPS, ACC_DATA_CONSTRUCT_STRUCTURED_OPS,
+ mlir::acc::LoopOp>(op))
TODO(loc, "GOTO exiting OpenACC region from a nested region");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/187613
More information about the flang-commits
mailing list