[all-commits] [llvm/llvm-project] 11d7c9: [llvm-calc-occupancy] Fix build after SGPR queries...

michaelselehov via All-commits all-commits at lists.llvm.org
Thu Jul 30 07:13:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11d7c9c9b4e8ebaf5f9bfb6ba80aecd498aa25ca
      https://github.com/llvm/llvm-project/commit/11d7c9c9b4e8ebaf5f9bfb6ba80aecd498aa25ca
  Author: michaelselehov <michael.selehov at amd.com>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp

  Log Message:
  -----------
  [llvm-calc-occupancy] Fix build after SGPR queries moved to TargetParser (#213023)

Urgent buildbot fix for #208727.

That PR was developed before #209848, which moved the SGPR count queries
into TargetParser and removed
`AMDGPU::IsaInfo::getAddressableNumSGPRs()`, so
`llvm-calc-occupancy.cpp` fails to compile on current `main`:

```
llvm-calc-occupancy.cpp:229:41: error: no member named 'getAddressableNumSGPRs' in namespace 'llvm::AMDGPU::IsaInfo'
```

This switches to the equivalent
`GCNSubtarget::getAddressableNumSGPRs()`, which forwards to the
TargetParser version. All other `IsaInfo::*` calls in the file were
checked against the new API and are unaffected.

Verified locally: `ninja llvm-calc-occupancy` builds clean,
`llvm/test/tools/llvm-calc-occupancy` passes, and the reported
addressable SGPR count is unchanged (102 on gfx90a).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list