[all-commits] [llvm/llvm-project] e0649a: [NVPTX] Fix internal indirect call prototypes not ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jul 23 10:54:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e0649a5dfc6b859d652318f578bc3d49674787a4
      https://github.com/llvm/llvm-project/commit/e0649a5dfc6b859d652318f578bc3d49674787a4
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-23 (Tue, 23 Jul 2024)

  Changed paths:
    M libc/config/gpu/entrypoints.txt
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    A llvm/test/CodeGen/NVPTX/indirect_byval.ll

  Log Message:
  -----------
  [NVPTX] Fix internal indirect call prototypes not obeying the ABI (#100131)

Summary:
The NVPTX backend optimizes the ABI for functions that are internal,
however, this is not legal for indirect call prototypes. Previously, we
would modify the ABI on an aggregate byval type passed to an indirect
call prototype, which would make PTXAS error. This patch just passes the
function as a nullptr to force strict ABI compliance without
modification in the helper function.

Fixes https://github.com/llvm/llvm-project/issues/100055



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