[PATCH] D116140: [AMDGPU] Add agpr_count to metadata and AsmParser

Jacob Lambert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 21 20:58:38 PST 2021


lamb-j created this revision.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, arsenm.
lamb-j requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116140

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116140.395792.patch
Type: text/x-patch
Size: 18059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211222/977b5b28/attachment.bin>


More information about the llvm-commits mailing list