[Mlir-commits] [mlir] Pretty print on -dump-pass-pipeline (PR #143223)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jun 6 19:56:51 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 -- mlir/include/mlir/Pass/Pass.h mlir/include/mlir/Pass/PassManager.h mlir/lib/Pass/Pass.cpp mlir/lib/Pass/PassCrashRecovery.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp
index 66f8fc4d0..399930266 100644
--- a/mlir/lib/Pass/Pass.cpp
+++ b/mlir/lib/Pass/Pass.cpp
@@ -406,7 +406,8 @@ void printAsTextualPipeline(
os.indent();
}
llvm::interleave(
- passes, [&](mlir::Pass &pass) { pass.printAsTextualPipeline(os, pretty); },
+ passes,
+ [&](mlir::Pass &pass) { pass.printAsTextualPipeline(os, pretty); },
[&]() {
os << ",";
if (pretty)
@@ -420,7 +421,8 @@ void printAsTextualPipeline(
}
void printAsTextualPipeline(
raw_ostream &os, StringRef anchorName,
- const llvm::iterator_range<OpPassManager::pass_iterator> &passes, bool pretty) {
+ const llvm::iterator_range<OpPassManager::pass_iterator> &passes,
+ bool pretty) {
raw_indented_ostream indentedOS(os);
printAsTextualPipeline(indentedOS, anchorName, passes, pretty);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/143223
More information about the Mlir-commits
mailing list