[Mlir-commits] [mlir] [mlir][scf] Implement Conversion from scf.parallel to Nested scf.for (PR #147692)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jul 21 09:53:14 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 cpp,h -- mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp mlir/include/mlir/Dialect/SCF/Transforms/Passes.h mlir/include/mlir/Dialect/SCF/Transforms/Transforms.h mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp b/mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp
index 08f3fbdf6..8d1ca21a9 100644
--- a/mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp
+++ b/mlir/lib/Dialect/SCF/Transforms/ParallelForToNestedFors.cpp
@@ -23,8 +23,9 @@ namespace mlir {
using namespace mlir;
-FailureOr<scf::LoopNest> mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
- scf::ParallelOp parallelOp) {
+FailureOr<scf::LoopNest>
+mlir::scf::parallelForToNestedFors(RewriterBase &rewriter,
+ scf::ParallelOp parallelOp) {
if (!parallelOp.getResults().empty()) {
parallelOp->emitError("Currently scf.parallel to scf.for conversion "
``````````
</details>
https://github.com/llvm/llvm-project/pull/147692
More information about the Mlir-commits
mailing list