[llvm] [llvm-calc-occupancy] Add an AMDGPU occupancy calculator tool (PR #208727)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 30 06:41:14 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/41349

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
68.100 [2/9/4249] Linking CXX executable bin/llvm-reduce
68.452 [2/8/4250] Linking CXX executable bin/llvm-opt-fuzzer
68.479 [2/7/4251] Linking CXX shared library lib/libLTO.so.24.0git
68.488 [1/7/4252] Creating library symlink lib/libLTO.so
68.497 [1/6/4253] Linking CXX executable bin/opt
68.675 [1/5/4254] Linking CXX executable bin/llvm-lto
69.041 [1/4/4255] Linking CXX executable bin/llvm-lto2
69.237 [1/3/4256] Linking CXX executable bin/lld
69.558 [1/2/4257] Linking CXX executable bin/llc
69.842 [1/1/4258] Building CXX object tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o
FAILED: tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/lld-x86_64/build/tools/llvm-calc-occupancy -I/home/buildbot/worker/lld-x86_64/llvm-project/llvm/tools/llvm-calc-occupancy -I/home/buildbot/worker/lld-x86_64/build/include -I/home/buildbot/worker/lld-x86_64/llvm-project/llvm/include -I/home/buildbot/worker/lld-x86_64/llvm-project/llvm/lib/Target/AMDGPU -I/home/buildbot/worker/lld-x86_64/build/lib/Target/AMDGPU -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o -MF tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o.d -o tools/llvm-calc-occupancy/CMakeFiles/llvm-calc-occupancy.dir/llvm-calc-occupancy.cpp.o -c /home/buildbot/worker/lld-x86_64/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/home/buildbot/worker/lld-x86_64/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp: In function ‘int main(int, char**)’:
/home/buildbot/worker/lld-x86_64/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229: error: ‘getAddressableNumSGPRs’ is not a member of ‘llvm::AMDGPU::IsaInfo’; did you mean ‘getAddressableNumVGPRs’?
  229 |   unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
      | 
ninja: build stopped: subcommand failed.

```

</details>

https://github.com/llvm/llvm-project/pull/208727


More information about the llvm-commits mailing list