[flang-commits] [flang] [mlir] [flang][OpenMP] Delayed privatization for variable with `equivalence` association (PR #100531)
via flang-commits
flang-commits at lists.llvm.org
Thu Jul 25 01:33:27 PDT 2024
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 91450f1b57b34034376662dae5452af8c992c103 5252b295ab18123e40ce88efceb671b3f1353306 --extensions cpp -- flang/lib/Lower/OpenMP/DataSharingProcessor.cpp mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
index 443979c27c..a8fb4c44f3 100644
--- a/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
+++ b/flang/lib/Lower/OpenMP/DataSharingProcessor.cpp
@@ -555,8 +555,9 @@ void DataSharingProcessor::doPrivatize(const semantics::Symbol *sym,
mlir::Region ©Region = result.getCopyRegion();
// First block argument corresponding to the original/host value while
// second block argument corresponding to the privatized value.
- mlir::Block *copyEntryBlock = firOpBuilder.createBlock(
- ©Region, /*insertPt=*/{}, {symType, yieldedType}, {symLoc, symLoc});
+ mlir::Block *copyEntryBlock =
+ firOpBuilder.createBlock(©Region, /*insertPt=*/{},
+ {symType, yieldedType}, {symLoc, symLoc});
firOpBuilder.setInsertionPointToEnd(copyEntryBlock);
auto addSymbol = [&](unsigned argIdx, bool force = false) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/100531
More information about the flang-commits
mailing list