[all-commits] [llvm/llvm-project] 4479e2: [HIP] Perform implicit pointer cast when compiling...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Fri Nov 21 01:15:21 PST 2025


  Branch: refs/heads/users/jmmartinez/fix/load_lds_typesignature/1
  Home:   https://github.com/llvm/llvm-project
  Commit: 4479e246311be1b1175e9e95a2e00a9930d424fb
      https://github.com/llvm/llvm-project/commit/4479e246311be1b1175e9e95a2e00a9930d424fb
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2025-11-21 (Fri, 21 Nov 2025)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/SemaHIP/amdgpu-gfx950-load-to-lds.hip

  Log Message:
  -----------
  [HIP] Perform implicit pointer cast when compiling device code, not when -fcuda-is-device

When compiling HIP device code, we add implicit casts for the pointer
arguments being passed to builtin calls.

When compiling for the host, apply the same casts for __device__ or __kernel__ functions,
since the device side of the source should still pass type checks.

This patch changes the condition depending on -fcuda-is-device to depend
on if the builtin's caller is marked as __device__ or __kernel__.

stack-info: PR: https://github.com/llvm/llvm-project/pull/165387, branch: users/jmmartinez/fix/load_lds_typesignature/1


  Commit: 011550bafcb51a39ee23b036c0b6d8707beb3f42
      https://github.com/llvm/llvm-project/commit/011550bafcb51a39ee23b036c0b6d8707beb3f42
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2025-11-21 (Fri, 21 Nov 2025)

  Changed paths:
    M clang/lib/Sema/SemaExpr.cpp

  Log Message:
  -----------
  [Review] Drop the caller is device condition


Compare: https://github.com/llvm/llvm-project/compare/69ab91400ecc...011550bafcb5

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