[all-commits] [llvm/llvm-project] 747024: [AMDGPU] Add agpr_count to metadata and AsmParser

Jacob Lambert via All-commits all-commits at lists.llvm.org
Wed Feb 16 15:18:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7470244475f85e9c8d7c46da87780935860d8026
      https://github.com/llvm/llvm-project/commit/7470244475f85e9c8d7c46da87780935860d8026
  Author: Jacob Lambert <jacob.lambert at amd.com>
  Date:   2022-02-16 (Wed, 16 Feb 2022)

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
    M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
    A llvm/test/CodeGen/AMDGPU/amdpal-metadata-agpr-register-count.ll
    A llvm/test/CodeGen/AMDGPU/hsa-metadata-agpr-register-count.ll
    A llvm/test/CodeGen/AMDGPU/hsa-metadata-agpr-small.ll
    A llvm/test/MC/AMDGPU/sym_kernel_scope_agpr.s

  Log Message:
  -----------
  [AMDGPU] Add agpr_count to metadata and AsmParser

gfx90a allows the number of ACC registers (AGPRs) to be set
independently to the VGPR registers. For both HSA and PAL metadata, we
now include an "agpr_count" key to report the number of AGPRs set for
supported devices (gfx90a, gfx908, as determined by hasMAIInsts()).
This is collected from SIProgramInfo.NumAccVGPR for both HSA and PAL.
The AsmParser also now recognizes ".kernel.agpr_count" for supported
devices.

Differential Revision: https://reviews.llvm.org/D116140




More information about the All-commits mailing list