[PATCH] D105507: AMDGPU: Add gfx10 assembler directive to specify shared VGPR count
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 6 13:54:20 PDT 2021
rampitec added a comment.
Also needs disassembler change.
================
Comment at: llvm/docs/AMDGPUUsage.rst:12110
:ref:`amdgpu-amdhsa-compute_pgm_rsrc1-gfx6-gfx10-table`.
+ ``.amdhsa_shared_vgpr_count`` 0 GFX10 Controls SHARED_VGPR_COUNT in
+ :ref:`amdgpu-amdhsa-compute_pgm_rsrc3-gfx10-table`.
----------------
Should probably specify it is GFX10 only.
================
Comment at: llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp:437
amdhsa::COMPUTE_PGM_RSRC1_FWD_PROGRESS);
+ PRINT_FIELD(OS, ".amdhsa_shared_vgpr_count", KD,
+ compute_pgm_rsrc3,
----------------
Only print it if IVersion.Major >= 10.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105507/new/
https://reviews.llvm.org/D105507
More information about the llvm-commits
mailing list