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

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 24 00:12:28 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: dcc22f984454ef3e390b6a9183b3f79ac4b860e7
      https://github.com/llvm/llvm-project/commit/dcc22f984454ef3e390b6a9183b3f79ac4b860e7
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-24 (Wed, 24 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

(cherry picked from commit e0649a5dfc6b859d652318f578bc3d49674787a4)



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