[flang-commits] [mlir] [llvm] [flang] [flang][mlir][OpenMP] Add support for COPYPRIVATE (PR #73128)

via flang-commits flang-commits at lists.llvm.org
Thu Dec 21 10:51:09 PST 2023


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 b522675816d6d5c0b0ae23e14115f4aa5a081583 bd85524ffb64a78c21a1b90ecdcfd6fcb2059c58 -- flang/include/flang/Lower/AbstractConverter.h flang/lib/Lower/Bridge.cpp flang/lib/Lower/OpenMP.cpp flang/lib/Semantics/resolve-directives.cpp llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 9c401f8c79..5f8cffcf18 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -3993,8 +3993,7 @@ OpenMPIRBuilder::createCopyPrivate(const LocationDescription &Loc,
 OpenMPIRBuilder::InsertPointTy OpenMPIRBuilder::createSingle(
     const LocationDescription &Loc, BodyGenCallbackTy BodyGenCB,
     FinalizeCallbackTy FiniCB, bool IsNowait, llvm::Value *DidIt,
-    ArrayRef<llvm::Value *> CPVars,
-    ArrayRef<llvm::Function *> CPFuncs) {
+    ArrayRef<llvm::Value *> CPVars, ArrayRef<llvm::Function *> CPFuncs) {
 
   if (!updateToLocation(Loc))
     return Loc.IP;

``````````

</details>


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


More information about the flang-commits mailing list