[flang-commits] [flang] [flang][OpenMP] Lower cross-module operator declare reduction (PR #207493)

via flang-commits flang-commits at lists.llvm.org
Wed Jul 8 04:28: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 h,cpp -- flang/include/flang/Lower/OpenMP.h flang/include/flang/Semantics/openmp-utils.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenMP/OpenMP.cpp flang/lib/Lower/Support/ReductionProcessor.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/mod-file.cpp flang/lib/Semantics/mod-file.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/Semantics/mod-file.h b/flang/lib/Semantics/mod-file.h
index c2680fec7..83834671a 100644
--- a/flang/lib/Semantics/mod-file.h
+++ b/flang/lib/Semantics/mod-file.h
@@ -54,8 +54,8 @@ private:
   UnorderedSymbolSet emittedDECStructures_, emittedDECFields_;
   UnorderedSymbolSet usedNonIntrinsicModules_;
   // Modules already re-exported by a plain USE for an operator-less declare
-  // reduction, so the USE is written once even when several such reductions come
-  // from the same module.
+  // reduction, so the USE is written once even when several such reductions
+  // come from the same module.
   UnorderedSymbolSet reexportedReductionModules_;
 
   llvm::raw_string_ostream needs_{needsBuf_};

``````````

</details>


https://github.com/llvm/llvm-project/pull/207493


More information about the flang-commits mailing list