[all-commits] [llvm/llvm-project] 568ace: [AMDGPU] Model LDS allocation granularity with sub...

Chinmay Deshpande via All-commits all-commits at lists.llvm.org
Sat Sep 12 14:35:27 PDT 2026


  Branch: refs/heads/users/chinmaydd/lds-alloc-granule
  Home:   https://github.com/llvm/llvm-project
  Commit: 568ace4c41ac1508d62b0026f1ea61d0c538c64a
      https://github.com/llvm/llvm-project/commit/568ace4c41ac1508d62b0026f1ea61d0c538c64a
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-12 (Sat, 12 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/AMDGPUFeatures.td
    M llvm/lib/Target/AMDGPU/R600Processors.td
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp

  Log Message:
  -----------
  [AMDGPU] Model LDS allocation granularity with subtarget features

Add numeric LDS allocation granularity features, expose them through the TargetParser feature bitset, and use them in the existing backend query.

Generic targets select the largest covered allocation granularity so their resource calculations remain conservative.

Change-Id: Icdd501d008c9d3cd566bdc8bde4a75d566ecb90a


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

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

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

Expose the LDS allocation granule from GPUKind and subarch without an
MCSubtargetInfo. Use the dedicated granularity features and consolidate
backend users on the byte-valued query.

Change-Id: Ic0c9345e7657ec3c6978a646628598cb7608b390


Compare: https://github.com/llvm/llvm-project/compare/af9833f16a88...ae7f200a8ded

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