[all-commits] [llvm/llvm-project] df43b6: [SPIRV][SPIRVPrepareGlobals] Map AMD's dynamic LDS...

Juan Manuel Martinez Caamaño via All-commits all-commits at lists.llvm.org
Fri Nov 7 07:00:24 PST 2025


  Branch: refs/heads/users/jmmartinez/spirv/hip_dyn_lds
  Home:   https://github.com/llvm/llvm-project
  Commit: df43b6346491e7b78ff27956da4bc77d720124ba
      https://github.com/llvm/llvm-project/commit/df43b6346491e7b78ff27956da4bc77d720124ba
  Author: Juan Manuel Martinez Caamaño <jmartinezcaamao at gmail.com>
  Date:   2025-11-07 (Fri, 07 Nov 2025)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVPrepareGlobals.cpp
    A llvm/test/CodeGen/SPIRV/hip_dyn_lds.ll

  Log Message:
  -----------
  [SPIRV][SPIRVPrepareGlobals] Map AMD's dynamic LDS 0-element globals to arrays with UINT32_MAX elements

In HIP, dynamic LDS globals are represented using 0-element global
arrays in the __shared__ language addressspace.

  extern __shared__ LDS[];

These are not representable in SPIRV directly.
To represent them, for AMD, we use an array with UINT32_MAX-elements.
These are reverse translated to 0-element arrays later in AMD's SPIRV runtime
pipeline.



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