[llvm] [NewPM][CodeGen] add TargetPassConfig like API (PR #70906)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 20:22:06 PST 2024
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 620280c4f97ea066d63edcf59b7378c6025999a1 db110d03fc966ba87ac1deb875b5c4fa5083af01 -- llvm/include/llvm/CodeGen/CodeGenPassBuilder.h llvm/include/llvm/CodeGen/MachinePassManager.h llvm/lib/CodeGen/MachinePassManager.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/CodeGenPassBuilder.h b/llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
index 649c3810af..42601baa1d 100644
--- a/llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
+++ b/llvm/include/llvm/CodeGen/CodeGenPassBuilder.h
@@ -1018,7 +1018,7 @@ Error CodeGenPassBuilder<Derived>::addMachinePasses(
bool IsOptimizeRegAlloc =
Opt.OptimizeRegAlloc.value_or(getOptLevel() != CodeGenOptLevel::None);
if (IsOptimizeRegAlloc) {
- if(auto Err = derived().addOptimizedRegAlloc(addPass))
+ if (auto Err = derived().addOptimizedRegAlloc(addPass))
return Err;
} else {
if (auto Err = derived().addFastRegAlloc(addPass))
``````````
</details>
https://github.com/llvm/llvm-project/pull/70906
More information about the llvm-commits
mailing list