[llvm] [AMDGPU] Move SGPR Count Queries into TargetParser (PR #209848)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 13:51:25 PDT 2026
================
@@ -6083,7 +6083,8 @@ bool AMDGPUAsmParser::calculateGPRBlocks(
if (Version.Major >= 10)
NumSGPRs = MCConstantExpr::create(0, Ctx);
else {
- unsigned MaxAddressableNumSGPRs = IsaInfo::getAddressableNumSGPRs(getSTI());
+ AMDGPU::GPUKind Kind = AMDGPU::parseArchAMDGCN(getSTI().getCPU());
----------------
theSK2005 wrote:
should I use the SubArch (getSTI().getTargetTriple().getSubArch()) as the parameter instead of GPUKind?
https://github.com/llvm/llvm-project/pull/209848
More information about the llvm-commits
mailing list