[llvm] Add option to print entire function instead of just the loops for loo… (PR #123229)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 11:45:59 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 404d0e9966a46c29e6539e20d9295adcbc8bf9bf 35361b7d6d3057cf3c9574f0b78559203b9fad65 --extensions h,cpp -- llvm/include/llvm/IR/PrintPasses.h llvm/lib/Analysis/LoopInfo.cpp llvm/lib/IR/PrintPasses.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/PrintPasses.cpp b/llvm/lib/IR/PrintPasses.cpp
index 466d16ccf3..610411a3cf 100644
--- a/llvm/lib/IR/PrintPasses.cpp
+++ b/llvm/lib/IR/PrintPasses.cpp
@@ -88,11 +88,11 @@ static cl::opt<bool>
"always print a module IR"),
cl::init(false), cl::Hidden);
-static cl::opt<bool>
- LoopPrintFuncScope("print-loop-func-scope",
- cl::desc("When printing IR for print-[before|after]{-all} "
- "for a loop pass, always print function IR"),
- cl::init(false), cl::Hidden);
+static cl::opt<bool> LoopPrintFuncScope(
+ "print-loop-func-scope",
+ cl::desc("When printing IR for print-[before|after]{-all} "
+ "for a loop pass, always print function IR"),
+ cl::init(false), cl::Hidden);
// See the description for -print-changed for an explanation of the use
// of this option.
``````````
</details>
https://github.com/llvm/llvm-project/pull/123229
More information about the llvm-commits
mailing list