[all-commits] [llvm/llvm-project] 98aa2b: [AMDGPU] Add getLocalMemorySize to TargetParser

Chinmay Deshpande via All-commits all-commits at lists.llvm.org
Thu Sep 10 14:39:55 PDT 2026


  Branch: refs/heads/users/chinmaydd/lds-local-memory-size
  Home:   https://github.com/llvm/llvm-project
  Commit: 98aa2bf21b2ee7b530198e663f8f9746130f9639
      https://github.com/llvm/llvm-project/commit/98aa2bf21b2ee7b530198e663f8f9746130f9639
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
    M llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp

  Log Message:
  -----------
  [AMDGPU] Add getLocalMemorySize to TargetParser

Add getLocalMemorySize and getAddressableLocalMemorySize, both taking a
GPUKind or a Triple::SubArchType, so the LDS a work-group gets can be
queried from a GPU name alone without an MCSubtargetInfo. The first
returns the physical block available in the current mode, the second
caps it at what one work-group can address, mirroring the IsaInfo pair.

The number of SIMDs a work-group runs on is a per-kernel mode rather
than a property of the GPU, so it stays a parameter. GCNSubtarget
initializes its cached sizes from the new entry points. There is no
functional change.

Change-Id: Ib71428b66032a231ed491d6294122b359abfe7e2
Co-Authored-By: Claude Opus 5 (1M context) <noreply at anthropic.com>


  Commit: b9cb0d5de8b273ed7026775cfc21a064e3472ac4
      https://github.com/llvm/llvm-project/commit/b9cb0d5de8b273ed7026775cfc21a064e3472ac4
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp

  Log Message:
  -----------
  [AMDGPU] Use SIMD-mode terminology for LDS queries

Change-Id: I6d6900868d58374d295126c52f67ffcdd8676902


Compare: https://github.com/llvm/llvm-project/compare/23c729e4c7f8...b9cb0d5de8b2

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