[all-commits] [llvm/llvm-project] 2babd1: [NVPTX] Fix for device function pointer having the...

Daniel Donenfeld via All-commits all-commits at lists.llvm.org
Tue Sep 29 13:14:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2babd10911eb423a52f82a2b4356fe6632f053e9
      https://github.com/llvm/llvm-project/commit/2babd10911eb423a52f82a2b4356fe6632f053e9
  Author: Daniel Donenfeld <ddonenfeld at nvidia.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/lib/Target/NVPTX/NVPTXMachineFunctionInfo.h
    M llvm/test/CodeGen/NVPTX/call_bitcast_byval.ll
    M llvm/test/CodeGen/NVPTX/callchain.ll
    A llvm/test/CodeGen/NVPTX/callprototype-dollar-local-label.ll
    A llvm/test/CodeGen/NVPTX/callprototype-local-label.ll
    M llvm/test/CodeGen/NVPTX/convert-call-to-indirect.ll
    M llvm/test/CodeGen/NVPTX/empty-type.ll
    M llvm/test/CodeGen/NVPTX/indirect_byval.ll
    M llvm/test/CodeGen/NVPTX/lower-args-gridconstant.ll
    M llvm/test/CodeGen/NVPTX/noreturn.ll
    M llvm/test/CodeGen/NVPTX/param-align.ll
    M llvm/test/CodeGen/NVPTX/vaargs.ll

  Log Message:
  -----------
  [NVPTX] Fix for device function pointer having the same name as generated callprototype (#205639)

The NVPTX backend generates `.callprototype` directives for indirect
calls with compiler generated names previously based off a unsigned
unique call site number. If a \_\_device\_\_ global function pointer is
named prototype_N with a call to that function, we emit ptx with a
global and callprototype with the same name. This PR updates ISel
lowering to produce a unique temporary symbol instead to avoid naming
conflicts with user defined variables.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list