[all-commits] [llvm/llvm-project] f54004: [NVPTX][AMDGPU][CodeGen] Fix `local_space nullptr`...

mmoadeli via All-commits all-commits at lists.llvm.org
Mon Feb 26 07:49:14 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f54004475110bb0a4033261041594266c8296242
      https://github.com/llvm/llvm-project/commit/f54004475110bb0a4033261041594266c8296242
  Author: mmoadeli <mahmoud.moadeli at codeplay.com>
  Date:   2024-02-26 (Mon, 26 Feb 2024)

  Changed paths:
    M clang/lib/Basic/Targets/AMDGPU.h
    M clang/lib/CodeGen/Targets/NVPTX.cpp
    M clang/test/CodeGenSYCL/address-space-conversions.cpp
    A clang/test/CodeGenSYCL/amd-address-space-conversions.cpp
    A clang/test/CodeGenSYCL/cuda-address-space-conversions.cpp

  Log Message:
  -----------
  [NVPTX][AMDGPU][CodeGen] Fix `local_space nullptr` handling for NVPTX and local/private `nullptr` value for AMDGPU. (#78759)

- Address space cast of nullptr in local_space into a generic_space for
the CUDA backend. The reason for this cast was having invalid local
memory base address for the associated variable.
- In the context of AMD GPU, assigns a NULL value as ~0 for the address
spaces of sycl_local and sycl_private to match the ones for opencl_local
and opencl_private.



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