[llvm] [NVPTX][NVPTXLowerArgs] Add NewPM interface for NVPTXLowerArgs (PR #128960)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 11:58:05 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 26ac7429d1d6aed080430e8f5d890531b1054f2d dde7018bcd29ae6b28796c2e1ce29d3b918f5366 --extensions cpp,h -- llvm/lib/Target/NVPTX/NVPTX.h llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
index 53fbeacbc0..831cd18c31 100644
--- a/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
@@ -273,15 +273,14 @@ void NVPTXTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
});
PB.registerPipelineParsingCallback(
- [this](StringRef PassName, FunctionPassManager &PM,
- ArrayRef<PassBuilder::PipelineElement>) {
- if (PassName == "nvptx-lower-args") {
- PM.addPass(NVPTXLowerArgsPass(*this));
- return true;
- }
- return false;
- }
- );
+ [this](StringRef PassName, FunctionPassManager &PM,
+ ArrayRef<PassBuilder::PipelineElement>) {
+ if (PassName == "nvptx-lower-args") {
+ PM.addPass(NVPTXLowerArgsPass(*this));
+ return true;
+ }
+ return false;
+ });
if (!NoKernelInfoEndLTO) {
PB.registerFullLinkTimeOptimizationLastEPCallback(
``````````
</details>
https://github.com/llvm/llvm-project/pull/128960
More information about the llvm-commits
mailing list