[llvm-branch-commits] [flang] [flang][fir][OpenMP] Refactor privtization code into shared location (PR #141767)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed May 28 06:50:17 PDT 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 HEAD~1 HEAD --extensions h,cpp -- flang/include/flang/Lower/Support/Utils.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenMP/DataSharingProcessor.cpp flang/lib/Lower/OpenMP/DataSharingProcessor.h flang/lib/Lower/Support/Utils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/Support/Utils.cpp b/flang/lib/Lower/Support/Utils.cpp
index f93c42386..de810cb2f 100644
--- a/flang/lib/Lower/Support/Utils.cpp
+++ b/flang/lib/Lower/Support/Utils.cpp
@@ -645,8 +645,7 @@ void copyFirstPrivateSymbol(lower::AbstractConverter &converter,
template <typename OpType, typename OperandsStructType>
void privatizeSymbol(
lower::AbstractConverter &converter, fir::FirOpBuilder &firOpBuilder,
- lower::SymMap &symTable,
- std::function<void(OpType, mlir::Type)> initGen,
+ lower::SymMap &symTable, std::function<void(OpType, mlir::Type)> initGen,
llvm::SetVector<const semantics::Symbol *> &allPrivatizedSymbols,
const semantics::Symbol *symToPrivatize, OperandsStructType *clauseOps) {
const semantics::Symbol *sym = symToPrivatize->HasLocalLocality()
``````````
</details>
https://github.com/llvm/llvm-project/pull/141767
More information about the llvm-branch-commits
mailing list