[flang-commits] [flang] [flang][OpenMP] Lower DO, SIMD, and DO SIMD metadirective variants (PR #218555)
via flang-commits
flang-commits at lists.llvm.org
Mon Aug 24 16:46:53 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/PFTBuilder.h flang/include/flang/Semantics/openmp-utils.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenMP/DataSharingProcessor.cpp flang/lib/Lower/OpenMP/DataSharingProcessor.h flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Lower/OpenMP/Utils.cpp flang/lib/Lower/OpenMP/Utils.h flang/lib/Semantics/openmp-utils.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/OpenMP/OpenMP.cpp b/flang/lib/Lower/OpenMP/OpenMP.cpp
index 4523b47db..165f7c63f 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -6907,8 +6907,8 @@ static lower::pft::Evaluation *spliceAssociatedDoEval(
// A delimited metadirective owns only its nested evaluations. An empty body
// must not capture a following sibling loop as its associated DO.
if (const auto *omp = eval.getIf<parser::OpenMPConstruct>();
- omp && std::holds_alternative<
- parser::OmpDelimitedMetadirectiveDirective>(omp->u))
+ omp && std::holds_alternative<parser::OmpDelimitedMetadirectiveDirective>(
+ omp->u))
return nullptr;
// A metadirective in a specification part (e.g. at module scope) has no
``````````
</details>
https://github.com/llvm/llvm-project/pull/218555
More information about the flang-commits
mailing list