[llvm] [AMDGPU] Add APIs `getTotalNumVGPRs` and `getAddressableNumVGPRs` to TargetParser (PR #220695)
Chinmay Deshpande via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 19:27:20 PDT 2026
================
@@ -869,7 +869,14 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
/// \returns Addressable number of VGPRs supported by the subtarget.
unsigned getAddressableNumVGPRs(unsigned DynamicVGPRBlockSize) const {
- return AMDGPU::IsaInfo::getAddressableNumVGPRs(*this, DynamicVGPRBlockSize);
+ // Dynamic VGPR mode is a per-kernel mode, so it is not covered by the
+ // TargetParser query.
+ if (DynamicVGPRBlockSize != 0) {
+ return AMDGPU::IsaInfo::getAddressableNumVGPRs(*this,
----------------
chinmaydd wrote:
No particular reason. I missed it during the initial cleanup. Raised https://github.com/llvm/llvm-project/pull/226744
https://github.com/llvm/llvm-project/pull/220695
More information about the llvm-commits
mailing list