[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:19:36 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `profcheck` running on `profcheck-b1` while building `llvm` at step 5 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/223/builds/8324
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/profcheck.sh --jobs=64' (failure)
...
[549/647] Generating ../../bin/llvm-lib
[550/647] Generating ../../bin/llvm-dlltool
[551/647] Linking CXX executable bin/llvm-objdump
[552/647] Linking CXX executable bin/sancov
[553/647] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
[554/647] Linking CXX executable bin/llvm-cfi-verify
[555/647] Linking CXX executable bin/llvm-nm
[556/647] Generating ../../bin/llvm-otool
[557/647] Linking CXX executable bin/llvm-debuginfo-analyzer
[558/647] 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 /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/b/profcheck-build/build/tools/llvm-calc-occupancy -I/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy -I/b/profcheck-build/build/include -I/b/profcheck-build/llvm-project/llvm/include -I/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU -I/b/profcheck-build/build/lib/Target/AMDGPU -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -Winvalid-pch -Xclang -include-pch -Xclang /b/profcheck-build/build/lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /b/profcheck-build/build/lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/cmake_pch.hxx -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 /b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:41: error: no member named 'getAddressableNumSGPRs' in namespace 'llvm::AMDGPU::IsaInfo'; did you mean 'getAddressableNumVGPRs'?
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ^~~~~~~~~~~~~~~~~~~~~~
| getAddressableNumVGPRs
/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^
/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:67: error: too few arguments to function call, expected 2, have 1
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
282 | unsigned DynamicVGPRBlockSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[559/647] Building CXX object unittests/ExecutionEngine/Orc/CMakeFiles/OrcJITTests.dir/CoreAPIsTest.cpp.o
[560/647] Building CXX object tools/llc/CMakeFiles/llc.dir/llc.cpp.o
[561/647] Building CXX object tools/llvm-mc/CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o
[562/647] Building CXX object tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/llvm-lto2.cpp.o
[563/647] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULegalizerInfo.cpp.o
[564/647] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o
In file included from <built-in>:1:
In file included from /b/profcheck-build/build/lib/IR/CMakeFiles/LLVMCore.dir/cmake_pch.hxx:5:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/IR/pch.h:13:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:17:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/DenseMap.h:27:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:21:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/functional:64:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<std::tuple<llvm::Value *, long, unsigned int>>' is deprecated [-Wdeprecated-declarations]
263 | std::get_temporary_buffer<value_type>(_M_original_len));
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<std::tuple<llvm::Value *, long, unsigned int> *, std::tuple<llvm::Value *, long, unsigned int>>::_Temporary_buffer' requested here
4996 | _TmpBuf __buf(__first, (__last - __first + 1) / 2);
| ^
Step 7 (Ninja) failure: Ninja (failure)
...
[549/647] Generating ../../bin/llvm-lib
[550/647] Generating ../../bin/llvm-dlltool
[551/647] Linking CXX executable bin/llvm-objdump
[552/647] Linking CXX executable bin/sancov
[553/647] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
[554/647] Linking CXX executable bin/llvm-cfi-verify
[555/647] Linking CXX executable bin/llvm-nm
[556/647] Generating ../../bin/llvm-otool
[557/647] Linking CXX executable bin/llvm-debuginfo-analyzer
[558/647] 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 /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/b/profcheck-build/build/tools/llvm-calc-occupancy -I/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy -I/b/profcheck-build/build/include -I/b/profcheck-build/llvm-project/llvm/include -I/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU -I/b/profcheck-build/build/lib/Target/AMDGPU -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Xclang -fno-pch-timestamp -O3 -DNDEBUG -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -Winvalid-pch -Xclang -include-pch -Xclang /b/profcheck-build/build/lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /b/profcheck-build/build/lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/cmake_pch.hxx -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 /b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp
/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:41: error: no member named 'getAddressableNumSGPRs' in namespace 'llvm::AMDGPU::IsaInfo'; did you mean 'getAddressableNumVGPRs'?
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ^~~~~~~~~~~~~~~~~~~~~~
| getAddressableNumVGPRs
/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^
/b/profcheck-build/llvm-project/llvm/tools/llvm-calc-occupancy/llvm-calc-occupancy.cpp:229:67: error: too few arguments to function call, expected 2, have 1
229 | unsigned AddrSGPRs = AMDGPU::IsaInfo::getAddressableNumSGPRs(STI);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/b/profcheck-build/llvm-project/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h:281:10: note: 'getAddressableNumVGPRs' declared here
281 | unsigned getAddressableNumVGPRs(const MCSubtargetInfo &STI,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
282 | unsigned DynamicVGPRBlockSize);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[559/647] Building CXX object unittests/ExecutionEngine/Orc/CMakeFiles/OrcJITTests.dir/CoreAPIsTest.cpp.o
[560/647] Building CXX object tools/llc/CMakeFiles/llc.dir/llc.cpp.o
[561/647] Building CXX object tools/llvm-mc/CMakeFiles/llvm-mc.dir/llvm-mc.cpp.o
[562/647] Building CXX object tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/llvm-lto2.cpp.o
[563/647] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPULegalizerInfo.cpp.o
[564/647] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o
In file included from <built-in>:1:
In file included from /b/profcheck-build/build/lib/IR/CMakeFiles/LLVMCore.dir/cmake_pch.hxx:5:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/IR/pch.h:13:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/IR/BasicBlock.h:17:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/DenseMap.h:27:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /b/profcheck-build/llvm-project/llvm/include/llvm/ADT/STLForwardCompat.h:21:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/functional:64:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:61:
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_tempbuf.h:263:8: warning: 'get_temporary_buffer<std::tuple<llvm::Value *, long, unsigned int>>' is deprecated [-Wdeprecated-declarations]
263 | std::get_temporary_buffer<value_type>(_M_original_len));
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:4996:15: note: in instantiation of member function 'std::_Temporary_buffer<std::tuple<llvm::Value *, long, unsigned int> *, std::tuple<llvm::Value *, long, unsigned int>>::_Temporary_buffer' requested here
4996 | _TmpBuf __buf(__first, (__last - __first + 1) / 2);
| ^
```
</details>
https://github.com/llvm/llvm-project/pull/208727
More information about the llvm-commits
mailing list