[clang] [llvm] [NVPTX] Fix for device function pointer having the same name as generated callprototype (PR #205639)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 10:53:58 PDT 2026


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 origin/main HEAD --extensions cpp,h -- llvm/lib/Target/NVPTX/NVPTXPreEmitSymbolLowering.cpp llvm/lib/Target/NVPTX/NVPTX.h llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp llvm/lib/Target/NVPTX/NVPTXMachineFunctionInfo.h llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXPreEmitSymbolLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXPreEmitSymbolLowering.cpp
index 722279bbe..50a575cad 100644
--- a/llvm/lib/Target/NVPTX/NVPTXPreEmitSymbolLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXPreEmitSymbolLowering.cpp
@@ -1,4 +1,5 @@
-//===-- NVPTXPreEmitSymbolLowering.cpp - Lower symbols before emission -*- C++ -*-===//
+//===-- NVPTXPreEmitSymbolLowering.cpp - Lower symbols before emission -*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -81,7 +82,8 @@ public:
 
 char NVPTXPreEmitSymbolLoweringLegacy::ID = 0;
 
-INITIALIZE_PASS(NVPTXPreEmitSymbolLoweringLegacy, "nvptx-pre-emit-symbol-lowering",
+INITIALIZE_PASS(NVPTXPreEmitSymbolLoweringLegacy,
+                "nvptx-pre-emit-symbol-lowering",
                 "NVPTX Pre-Emit Symbol Lowering", false, false)
 
 MachineFunctionPass *

``````````

</details>


https://github.com/llvm/llvm-project/pull/205639


More information about the llvm-commits mailing list