[llvm] [AMDGPU] Add APIs `getTotalNumVGPRs` and `getAddressableNumVGPRs` to TargetParser (PR #220695)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 15:08:35 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,
----------------
shiltian wrote:
What was the reason that this `getAddressableNumVGPRs` is still in `IsaInfo`?
https://github.com/llvm/llvm-project/pull/220695
More information about the llvm-commits
mailing list