[Mlir-commits] [mlir] [flang][OpenMP] Translate OpenMP scopes when compiling for target device (PR #130078)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 7 00:26:38 PST 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 e15545cad8297ec7555f26e5ae74a9f0511203e7 b55bae368ef822c06cdc61d2556ecd0855ba223a --extensions cpp -- mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index d0dc646ae5..120a7d39fc 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -5256,7 +5256,7 @@ static void forwardPrivateArgs(OMPOp ompOp,
 
 template <typename OMPOp>
 static void forwardReductionArgs(OMPOp ompOp,
-                               LLVM::ModuleTranslation &moduleTranslation) {
+                                 LLVM::ModuleTranslation &moduleTranslation) {
   auto blockArgIface = cast<omp::BlockArgOpenMPOpInterface>(*ompOp);
   if (blockArgIface) {
     forwardArgs(moduleTranslation, blockArgIface.getReductionBlockArgs(),

``````````

</details>


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


More information about the Mlir-commits mailing list