Skip to content

[CFIFixup] Factor logic into helpers and use range-based loops (NFC) #125137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

dhoekwater
Copy link
Contributor

runOnMachineFunction is getting long (>100 lines), and the logic
for computing block info and performing block fixup can be abstracted
away.

Reduce nesting in the main block fixup loop and name conditions to
reflect their purpose.

Replace manual usage of iterators with a range-based for loop.

Source:

Copy link
Contributor

@kazutakahirata kazutakahirata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

`runOnMachineFunction` is getting long (>100 lines), and the logic
for computing block info and performing block fixup can be abstracted
away.

Reduce nesting in the main block fixup loop and name conditions to
reflect their purpose.

Replace manual usage of iterators with a range-based for loop.

Source:
- https://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
- https://llvm.org/docs/CodingStandards.html#use-range-based-for-loops-wherever-possible
- https://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop
@dhoekwater dhoekwater merged commit f14f197 into llvm:main Jan 31, 2025
8 checks passed
@dhoekwater dhoekwater deleted the cfi-fixup branch January 31, 2025 19:44
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder cross-project-tests-sie-ubuntu-dwarf5 running on doug-worker-1b while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
5.462 [103/8/18] Linking CXX executable bin/llvm-ar
5.479 [102/8/19] Generating ../../bin/llvm-dlltool
5.497 [101/8/20] Generating ../../bin/llvm-lib
5.514 [100/8/21] Generating ../../bin/llvm-ranlib
5.608 [99/8/22] Linking CXX executable bin/llvm-profdata
5.751 [98/8/23] Linking CXX executable bin/llvm-cat
5.883 [97/8/24] Linking CXX executable bin/llvm-as
5.886 [96/8/25] Linking CXX executable bin/sanstats
6.026 [95/8/26] Linking CXX executable bin/apinotes-test
6.566 [94/8/27] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/lib/CodeGen -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/build/include -I/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/buildbot/buildbot-root/cross-project-tests-sie-ubuntu-dwarf5/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
7.611 [94/7/28] Linking CXX shared module lib/SampleAnalyzerPlugin.so
7.674 [94/6/29] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
7.800 [94/5/30] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
7.855 [94/4/31] Linking CXX executable bin/diagtool
8.555 [94/3/32] Linking CXX executable bin/clang-diff
20.494 [94/2/33] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
21.470 [94/1/34] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
3.028 [49/30/54] Copying llvm-locstats into /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/./bin
3.032 [49/29/55] Linking CXX executable bin/llvm-objdump
3.036 [48/29/56] Generating ../../bin/llvm-otool
3.054 [48/28/57] Linking CXX executable bin/llvm-debuginfo-analyzer
3.055 [48/27/58] Linking CXX executable bin/llvm-xray
3.075 [48/26/59] Linking CXX executable bin/clang-apply-replacements
3.087 [48/25/60] Linking CXX executable bin/nvptx-arch
3.092 [48/24/61] Linking CXX executable bin/clang-offload-bundler
3.284 [48/23/62] Linking CXX executable bin/llvm-profgen
3.407 [48/22/63] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/include -I/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
3.851 [48/21/64] Linking CXX executable bin/diagtool
3.977 [48/20/65] Linking CXX shared module lib/SampleAnalyzerPlugin.so
4.120 [48/19/66] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
4.200 [48/18/67] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
4.388 [48/17/68] Linking CXX executable bin/clang-reorder-fields
4.461 [48/16/69] Linking CXX executable bin/find-all-symbols
4.463 [48/15/70] Linking CXX executable bin/clang-change-namespace
4.463 [48/14/71] Linking CXX executable bin/clang-installapi
4.464 [48/13/72] Linking CXX executable bin/clang-refactor
4.467 [48/12/73] Linking CXX executable bin/pp-trace
4.507 [48/11/74] Linking CXX executable bin/tool-template
4.551 [48/10/75] Linking CXX executable bin/clang-doc
4.692 [48/9/76] Linking CXX executable bin/modularize
4.701 [48/8/77] Linking CXX executable bin/clang-include-fixer
4.705 [48/7/78] Linking CXX executable bin/clang-diff
4.748 [48/6/79] Linking CXX executable bin/clang-include-cleaner
4.802 [48/5/80] Linking CXX executable bin/clang-query
4.825 [48/4/81] Linking CXX executable bin/clang-move
6.152 [48/3/82] Linking CXX executable bin/clang-tidy
12.459 [48/2/83] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
13.115 [48/1/84] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder clang-hip-vega20 running on hip-vega20-0 while building llvm at step 3 "annotate".

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

Here is the relevant piece of the build log for the reference
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[13/148] Linking CXX executable bin/llvm-ctxprof-util
[14/148] Linking CXX executable bin/llvm-sim
[15/148] Linking CXX executable bin/llvm-cxxdump
[16/148] Linking CXX executable bin/llvm-ifs
[17/148] Linking CXX executable bin/llvm-mca
[18/148] Linking CXX executable bin/llvm-readtapi
[19/148] Linking CXX executable bin/llvm-debuginfod
[20/148] Linking CXX executable bin/llvm-mc
[21/148] Linking CXX executable bin/llvm-objcopy
[22/148] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/CodeGen -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
[23/148] Linking CXX executable bin/llvm-ml
[24/148] Linking CXX executable bin/apinotes-test
[25/148] Linking CXX executable bin/llvm-modextract
[26/148] Linking CXX executable bin/llvm-cov
[27/148] Linking CXX executable bin/llvm-as
[28/148] Linking CXX executable bin/llvm-cat
[29/148] Linking CXX executable bin/llvm-profdata
[30/148] Linking CXX executable bin/llvm-ar
[31/148] Linking CXX executable bin/llvm-readobj
[32/148] Linking CXX executable bin/llvm-dwarfdump
[33/148] Linking CXX executable bin/llvm-pdbutil
[34/148] Linking CXX executable bin/llvm-size
[35/148] Linking CXX executable bin/llvm-rtdyld
[36/148] Linking CXX executable bin/llvm-link
[37/148] Linking CXX executable bin/clang-format
[38/148] Linking CXX executable bin/clang-offload-bundler
[39/148] Linking CXX executable bin/clang-apply-replacements
[40/148] Linking CXX executable bin/llvm-nm
[41/148] Linking CXX executable bin/llvm-cfi-verify
[42/148] Linking CXX executable bin/llvm-debuginfo-analyzer
[43/148] Linking CXX executable bin/llvm-objdump
[44/148] Linking CXX executable bin/llvm-profgen
[45/148] Linking CXX executable bin/diagtool
[46/148] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[47/148] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[48/148] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[49/148] Linking CXX executable bin/clang-diff
[50/148] Linking CXX executable bin/clang-include-cleaner
[51/148] Linking CXX executable bin/clang-installapi
[52/148] Linking CXX executable bin/clang-reorder-fields
[53/148] Linking CXX executable bin/clang-refactor
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
[13/148] Linking CXX executable bin/llvm-ctxprof-util
[14/148] Linking CXX executable bin/llvm-sim
[15/148] Linking CXX executable bin/llvm-cxxdump
[16/148] Linking CXX executable bin/llvm-ifs
[17/148] Linking CXX executable bin/llvm-mca
[18/148] Linking CXX executable bin/llvm-readtapi
[19/148] Linking CXX executable bin/llvm-debuginfod
[20/148] Linking CXX executable bin/llvm-mc
[21/148] Linking CXX executable bin/llvm-objcopy
[22/148] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/CodeGen -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
[23/148] Linking CXX executable bin/llvm-ml
[24/148] Linking CXX executable bin/apinotes-test
[25/148] Linking CXX executable bin/llvm-modextract
[26/148] Linking CXX executable bin/llvm-cov
[27/148] Linking CXX executable bin/llvm-as
[28/148] Linking CXX executable bin/llvm-cat
[29/148] Linking CXX executable bin/llvm-profdata
[30/148] Linking CXX executable bin/llvm-ar
[31/148] Linking CXX executable bin/llvm-readobj
[32/148] Linking CXX executable bin/llvm-dwarfdump
[33/148] Linking CXX executable bin/llvm-pdbutil
[34/148] Linking CXX executable bin/llvm-size
[35/148] Linking CXX executable bin/llvm-rtdyld
[36/148] Linking CXX executable bin/llvm-link
[37/148] Linking CXX executable bin/clang-format
[38/148] Linking CXX executable bin/clang-offload-bundler
[39/148] Linking CXX executable bin/clang-apply-replacements
[40/148] Linking CXX executable bin/llvm-nm
[41/148] Linking CXX executable bin/llvm-cfi-verify
[42/148] Linking CXX executable bin/llvm-debuginfo-analyzer
[43/148] Linking CXX executable bin/llvm-objdump
[44/148] Linking CXX executable bin/llvm-profgen
[45/148] Linking CXX executable bin/diagtool
[46/148] Linking CXX shared module lib/SampleAnalyzerPlugin.so
[47/148] Linking CXX shared module lib/CheckerOptionHandlingAnalyzerPlugin.so
[48/148] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[49/148] Linking CXX executable bin/clang-diff
[50/148] Linking CXX executable bin/clang-include-cleaner
[51/148] Linking CXX executable bin/clang-installapi
[52/148] Linking CXX executable bin/clang-reorder-fields
[53/148] Linking CXX executable bin/clang-refactor

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 6 "build stage 1".

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

Here is the relevant piece of the build log for the reference
Step 6 (build stage 1) failure: 'ninja' (failure)
...
[18/124] Generating ../../bin/llvm-windres
[19/124] Linking CXX executable bin/llvm-tli-checker
[20/124] Linking CXX executable bin/llvm-debuginfod-find
[21/124] Linking CXX executable bin/yaml2obj
[22/124] Linking CXX executable bin/clang-format
[23/124] Linking CXX executable bin/llvm-ar
[24/124] Generating ../../bin/llvm-ranlib
[25/124] Generating ../../bin/llvm-lib
[26/124] Generating ../../bin/llvm-dlltool
[27/124] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/lib/CodeGen -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/lib/CodeGen -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/include -I/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/include -march=cascadelake -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/lib/CodeGen/CFIFixup.cpp
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
[28/124] Linking CXX executable bin/llvm-debuginfod
[29/124] Linking CXX executable bin/llvm-readtapi
[30/124] Linking CXX executable bin/llvm-xray
[31/124] Linking CXX executable bin/llvm-symbolizer
[32/124] Linking CXX executable bin/llvm-cxxdump
[33/124] Linking CXX executable bin/obj2yaml
[34/124] Linking CXX executable bin/llvm-size
[35/124] Linking CXX executable bin/llvm-dwarfdump
[36/124] Linking CXX executable bin/llvm-cov
[37/124] Linking CXX executable bin/clang-offload-bundler
[38/124] Linking CXX executable bin/sancov
[39/124] Linking CXX executable bin/llvm-profdata
[40/124] Linking CXX executable bin/sanstats
[41/124] Linking CXX executable bin/llvm-ifs
[42/124] Linking CXX executable bin/llvm-cat
[43/124] Linking CXX executable bin/verify-uselistorder
[44/124] Linking CXX executable bin/llvm-objcopy
[45/124] Linking CXX executable bin/llvm-as
[46/124] Linking CXX executable bin/llvm-cfi-verify
[47/124] Linking CXX executable bin/llvm-modextract
[48/124] Linking CXX executable bin/llvm-rtdyld
[49/124] Linking CXX executable bin/llvm-debuginfo-analyzer
[50/124] Linking CXX executable bin/llvm-objdump
[51/124] Linking CXX executable bin/llvm-pdbutil
[52/124] Linking CXX executable bin/llvm-readobj
[53/124] Linking CXX executable bin/llvm-nm
[54/124] Linking CXX executable bin/llvm-link
[55/124] Linking CXX executable bin/llvm-profgen
[56/124] Linking CXX executable bin/diagtool
[57/124] Linking CXX shared module lib/CheckerDependencyHandlingAnalyzerPlugin.so
[58/124] Linking CXX executable bin/clang-diff

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder openmp-s390x-linux running on systemz-1 while building llvm at step 5 "compile-openmp".

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

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
13.628 [4523/4/752] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AIXException.cpp.o
13.655 [4522/4/753] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinterDwarf.cpp.o
13.695 [4521/4/754] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DbgEntityHistoryCalculator.cpp.o
13.704 [4520/4/755] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinterInlineAsm.cpp.o
13.728 [4519/4/756] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DebugHandlerBase.cpp.o
13.744 [4518/4/757] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DebugLocStream.cpp.o
13.764 [4517/4/758] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DIE.cpp.o
13.801 [4516/4/759] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DwarfCFIException.cpp.o
13.825 [4515/4/760] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DIEHash.cpp.o
13.847 [4514/4/761] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/lib/CodeGen -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/lib/CodeGen -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/include -I/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp: In function 'llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)':
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert 'BlockInfo' from 'SmallVector<[...],32>' to 'SmallVector<[...],40>'
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
13.869 [4514/3/762] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DwarfCompileUnit.cpp.o
13.903 [4514/2/763] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DwarfDebug.cpp.o
28.257 [4514/1/764] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:188:25:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPValue*) const [with Ops_t = std::tuple<>; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPCanonicalIVPHIRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:202:45:   required from ‘llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)> [with auto:28 = llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:159:12:   required from ‘bool llvm::VPlanPatternMatch::detail::CheckTupleElements(const TupleTy&, Fn, std::index_sequence<_Idx ...>) [with TupleTy = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; Fn = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)>; long unsigned int ...Is = {0, 1}; std::index_sequence<_Idx ...> = std::integer_sequence<long unsigned int, 0, 1>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:165:28:   required from ‘bool llvm::VPlanPatternMatch::detail::all_of_tuple_elements(const TupleTy&, Fn) [with TupleTy = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; Fn = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:201:38:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPRecipeBase*) const [with Ops_t = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPScalarIVStepsRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:188:25:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPValue*) const [with Ops_t = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPScalarIVStepsRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:29:17:   required from ‘bool llvm::VPlanPatternMatch::match(Val*, const Pattern&) [with Val = llvm::VPValue; Pattern = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp:58:18:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:158:48: warning: parameter ‘P’ set but not used [-Wunused-but-set-parameter]
67.325 [686/6/2014] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
82.851 [686/2/2018] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:188:25:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPValue*) const [with Ops_t = std::tuple<>; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPCanonicalIVPHIRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:202:45:   required from ‘llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)> [with auto:28 = llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:159:12:   required from ‘bool llvm::VPlanPatternMatch::detail::CheckTupleElements(const TupleTy&, Fn, std::index_sequence<_Idx ...>) [with TupleTy = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; Fn = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)>; long unsigned int ...Is = {0, 1}; std::index_sequence<_Idx ...> = std::integer_sequence<long unsigned int, 0, 1>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:165:28:   required from ‘bool llvm::VPlanPatternMatch::detail::all_of_tuple_elements(const TupleTy&, Fn) [with TupleTy = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; Fn = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>::match(const llvm::VPRecipeBase*) const::<lambda(auto:28, unsigned int)>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:201:38:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPRecipeBase*) const [with Ops_t = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPScalarIVStepsRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:188:25:   required from ‘bool llvm::VPlanPatternMatch::Recipe_match<Ops_t, Opcode, Commutative, RecipeTys>::match(const llvm::VPValue*) const [with Ops_t = std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >; unsigned int Opcode = 0; bool Commutative = false; RecipeTys = {llvm::VPScalarIVStepsRecipe}]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:29:17:   required from ‘bool llvm::VPlanPatternMatch::match(Val*, const Pattern&) [with Val = llvm::VPValue; Pattern = llvm::VPlanPatternMatch::Recipe_match<std::tuple<llvm::VPlanPatternMatch::Recipe_match<std::tuple<>, 0, false, llvm::VPCanonicalIVPHIRecipe>, llvm::VPlanPatternMatch::specific_intval<0> >, 0, false, llvm::VPScalarIVStepsRecipe>]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp:58:18:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:158:48: warning: parameter ‘P’ set but not used [-Wunused-but-set-parameter]
51.700 [686/6/2014] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
65.886 [686/3/2017] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
86.898 [686/1/2019] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
ninja: build stopped: subcommand failed.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
16.850 [1027/46/3013] Linking CXX executable bin/llvm-stress
16.850 [1027/45/3014] Linking CXX static library lib/libLLVMSparcDesc.a
16.850 [1027/44/3015] Linking CXX static library lib/libLLVMSystemZDesc.a
16.851 [1026/44/3016] Linking CXX static library lib/libLLVMSPIRVDesc.a
16.852 [1026/43/3017] Linking CXX static library lib/libLLVMVEDesc.a
16.852 [1026/42/3018] Linking CXX static library lib/libLLVMVEDisassembler.a
16.852 [1026/41/3019] Linking CXX static library lib/libLLVMWebAssemblyDesc.a
16.859 [1025/41/3020] Linking CXX static library lib/libLLVMXCoreDisassembler.a
16.859 [1025/40/3021] Linking CXX static library lib/libLLVMXCoreDesc.a
16.860 [1025/39/3022] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DEXPENSIVE_CHECKS -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/lib/CodeGen -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/CodeGen -I/b/1/llvm-clang-x86_64-expensive-checks-debian/build/include -I/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include -U_GLIBCXX_DEBUG -fPIC -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: warning: local variable 'BlockInfo' will be copied despite being returned by name [-Wreturn-std-move]
  return BlockInfo;
         ^~~~~~~~~
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: note: call 'std::move' explicitly to avoid copying
  return BlockInfo;
         ^~~~~~~~~
         std::move(BlockInfo)
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: no viable conversion from returned value of type 'SmallVector<[...], 32>' to function return type 'SmallVector<[...], (default) CalculateSmallVectorDefaultInlinedElements<T>::value aka 40>'
  return BlockInfo;
         ^~~~~~~~~
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1226:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'std::initializer_list<BlockFlags>' for 1st argument
  SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1236:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'const llvm::SmallVector<BlockFlags, 40> &' for 1st argument
  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1246:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'llvm::SmallVector<BlockFlags, 40> &&' for 1st argument
  SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1251:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'SmallVectorImpl<BlockFlags> &&' for 1st argument
  SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1205:12: note: explicit constructor is not a candidate
  explicit SmallVector(size_t Size)
           ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1221:12: note: explicit constructor is not a candidate
  explicit SmallVector(const iterator_range<RangeTy> &R)
           ^
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1232:12: note: explicit constructor is not a candidate
  explicit SmallVector(ArrayRef<U> A) : SmallVectorImpl<T>(N) {
           ^
1 warning and 1 error generated.
16.860 [1025/38/3023] Linking CXX static library lib/libLLVMIRReader.a
16.861 [1025/37/3024] Linking CXX static library lib/libLLVMLoongArchDisassembler.a
16.861 [1025/36/3025] Linking CXX static library lib/libLLVMLanaiDisassembler.a
16.873 [1025/35/3026] Linking CXX static library lib/libLLVMHexagonDisassembler.a
16.881 [1025/34/3027] Linking CXX static library lib/libLLVMWebAssemblyDisassembler.a

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

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/10648

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
13.579 [866/43/3012] Linking CXX static library lib/libLLVMSystemZInfo.a
13.612 [865/43/3013] Linking CXX static library lib/libLLVMSystemZDesc.a
13.631 [864/43/3014] Linking CXX static library lib/libLLVMSystemZDisassembler.a
13.878 [864/42/3015] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
13.886 [864/41/3016] Building X86GenCallingConv.inc...
13.970 [864/40/3017] Building X86GenExegesis.inc...
14.130 [864/39/3018] Building X86GenRegisterBank.inc...
14.144 [864/38/3019] Building X86GenAsmWriter.inc...
14.315 [864/37/3020] Building X86GenRegisterInfo.inc...
14.326 [864/36/3021] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/lib/CodeGen -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/include -I/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
14.636 [864/35/3022] Building X86GenAsmMatcher.inc...
14.761 [864/34/3023] Building X86GenInstrMapping.inc...
14.803 [864/33/3024] Building X86GenAsmWriter1.inc...
14.953 [864/32/3025] Building X86GenMnemonicTables.inc...
15.090 [864/31/3026] Building X86GenFoldTables.inc...
15.619 [864/30/3027] Building X86GenDisassemblerTables.inc...
16.783 [864/29/3028] Building X86GenFastISel.inc...
16.941 [864/28/3029] Building X86GenGlobalISel.inc...
18.822 [864/27/3030] Building X86GenDAGISel.inc...
19.035 [864/26/3031] Building AArch64GenSubtargetInfo.inc...
19.482 [864/25/3032] Building X86GenSubtargetInfo.inc...
20.047 [864/24/3033] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
20.207 [864/23/3034] Building AArch64GenInstrInfo.inc...
21.700 [864/22/3035] Building X86GenInstrInfo.inc...
21.988 [864/21/3036] Building RISCVGenInstrInfo.inc...
22.484 [864/20/3037] Building AMDGPUGenMCPseudoLowering.inc...
22.948 [864/19/3038] Building AMDGPUGenCallingConv.inc...
23.087 [864/18/3039] Building RISCVGenGlobalISel.inc...
23.234 [864/17/3040] Building AMDGPUGenPostLegalizeGICombiner.inc...
23.620 [864/16/3041] Building AMDGPUGenRegBankGICombiner.inc...
23.812 [864/15/3042] Building AMDGPUGenSubtargetInfo.inc...
23.936 [864/14/3043] Building AMDGPUGenPreLegalizeGICombiner.inc...
24.007 [864/13/3044] Building AMDGPUGenDisassemblerTables.inc...
24.447 [864/12/3045] Building AMDGPUGenMCCodeEmitter.inc...
25.352 [864/11/3046] Building AMDGPUGenSearchableTables.inc...
26.036 [864/10/3047] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
26.985 [864/9/3048] Building RISCVGenDAGISel.inc...
27.537 [864/8/3049] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
31.170 [864/7/3050] Building AMDGPUGenAsmWriter.inc...
32.583 [864/6/3051] Building AMDGPUGenGlobalISel.inc...
33.415 [864/5/3052] Building AMDGPUGenAsmMatcher.inc...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/clang/lib/Driver/ToolChains/ROCm.h:14:
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/Driver/Driver.h:781:19: warning: parameter 'Search' not found in the function declaration [-Wdocumentation]
  /// \param [in] Search and expansion options.
                  ^~~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/clang/include/clang/Driver/Driver.h:781:19: note: did you mean 'ExpCtx'?
  /// \param [in] Search and expansion options.
                  ^~~~~~
                  ExpCtx
1 warning generated.
11.310 [1173/30/4937] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/clang-x86_64-debian-fast/llvm.obj/lib/CodeGen -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen -I/b/1/clang-x86_64-debian-fast/llvm.obj/include -I/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include -std=c++11 -Wdocumentation -Wno-documentation-deprecated-sync -fPIC -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:83:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Target/TargetMachine.h:19:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:30:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/TargetParser/ARMTargetParser.h:267:12: warning: parameter 'Arch' not found in the function declaration [-Wdocumentation]
/// \param Arch the architecture name (e.g., "armv7s"). If it is an empty
           ^~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/TargetParser/ARMTargetParser.h:267:12: note: did you mean 'MArch'?
/// \param Arch the architecture name (e.g., "armv7s"). If it is an empty
           ^~~~
           MArch
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:83:
In file included from /b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/Target/TargetMachine.h:19:
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:632:14: warning: parameter 'Sym' not found in the function declaration [-Wdocumentation]
  /// \param Sym - The symbol on the .ref directive.
             ^~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/MC/MCStreamer.h:632:14: note: did you mean 'Symbol'?
  /// \param Sym - The symbol on the .ref directive.
             ^~~
             Symbol
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:174:10: warning: local variable 'BlockInfo' will be copied despite being returned by name [-Wreturn-std-move]
  return BlockInfo;
         ^~~~~~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:174:10: note: call 'std::move' explicitly to avoid copying
  return BlockInfo;
         ^~~~~~~~~
         std::move(BlockInfo)
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: no viable conversion from returned value of type 'SmallVector<[...], 32>' to function return type 'SmallVector<[...], (default) CalculateSmallVectorDefaultInlinedElements<T>::value aka 40>'
  return BlockInfo;
         ^~~~~~~~~
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ADT/SmallVector.h:1226:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'std::initializer_list<BlockFlags>' for 1st argument
  SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ADT/SmallVector.h:1236:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'const llvm::SmallVector<BlockFlags, 40> &' for 1st argument
  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/include/llvm/ADT/SmallVector.h:1246:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'llvm::SmallVector<BlockFlags, 40> &&' for 1st argument
  SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {

dhoekwater added a commit that referenced this pull request Jan 31, 2025
…s (NFC) #125137"

This patch was breaking tests due to inconsistent use of SmallVector.
After consolidating SmallVector usages, everything should work as
intended.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
9.163 [2843/39/4253] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/DumpAST.cpp.o
9.174 [2843/38/4254] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapBinaryOperands.cpp.o
9.182 [2843/37/4255] Building CXX object tools/clang/lib/Interpreter/CMakeFiles/obj.clangInterpreter.dir/Interpreter.cpp.o
9.184 [2843/36/4256] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/PopulateSwitch.cpp.o
9.211 [2843/35/4257] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapIfBranches.cpp.o
9.218 [2843/34/4258] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ExtractVariable.cpp.o
9.224 [2843/33/4259] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RawStringLiteral.cpp.o
9.254 [2843/32/4260] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/ObjCLocalizeStringLiteral.cpp.o
9.305 [2843/31/4261] Building CXX object tools/clang/tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RemoveUsingNamespace.cpp.o
10.054 [2843/30/4262] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/1/llvm-x86_64-debian-dylib/build/lib/CodeGen -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -fPIC -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 -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: warning: local variable 'BlockInfo' will be copied despite being returned by name [-Wreturn-std-move]
  return BlockInfo;
         ^~~~~~~~~
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: note: call 'std::move' explicitly to avoid copying
  return BlockInfo;
         ^~~~~~~~~
         std::move(BlockInfo)
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: no viable conversion from returned value of type 'SmallVector<[...], 32>' to function return type 'SmallVector<[...], (default) CalculateSmallVectorDefaultInlinedElements<T>::value aka 40>'
  return BlockInfo;
         ^~~~~~~~~
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1226:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'std::initializer_list<BlockFlags>' for 1st argument
  SmallVector(std::initializer_list<T> IL) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1236:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'const llvm::SmallVector<BlockFlags, 40> &' for 1st argument
  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1246:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'llvm::SmallVector<BlockFlags, 40> &&' for 1st argument
  SmallVector(SmallVector &&RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1251:3: note: candidate constructor not viable: no known conversion from 'SmallVector<BlockFlags, 32>' to 'SmallVectorImpl<BlockFlags> &&' for 1st argument
  SmallVector(SmallVectorImpl<T> &&RHS) : SmallVectorImpl<T>(N) {
  ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1205:12: note: explicit constructor is not a candidate
  explicit SmallVector(size_t Size)
           ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1221:12: note: explicit constructor is not a candidate
  explicit SmallVector(const iterator_range<RangeTy> &R)
           ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include/llvm/ADT/SmallVector.h:1232:12: note: explicit constructor is not a candidate
  explicit SmallVector(ArrayRef<U> A) : SmallVectorImpl<T>(N) {
           ^
1 warning and 1 error generated.
10.217 [2843/29/4263] Building CXX object lib/Object/CMakeFiles/LLVMObject.dir/IRSymtab.cpp.o
10.252 [2843/28/4264] Building X86GenDAGISel.inc...
10.504 [2843/27/4265] Building X86GenSubtargetInfo.inc...
10.615 [2843/26/4266] Building AArch64GenSubtargetInfo.inc...
11.408 [2843/25/4267] Building AArch64GenInstrInfo.inc...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jan 31, 2025

LLVM Buildbot has detected a new failure on builder bolt-x86_64-ubuntu-nfc running on bolt-worker while building llvm at step 7 "build-bolt".

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

Here is the relevant piece of the build log for the reference
Step 7 (build-bolt) failure: build (failure)
...
ninja: no work to do.
0.014 [14/3/2] Generating VCSRevision.h
0.023 [8/4/3] No install step for 'bolt_rt'
0.024 [7/4/4] Generating VCSVersion.inc
0.039 [6/4/5] Completed 'bolt_rt'
0.050 [6/3/6] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o
0.211 [5/3/7] Linking CXX static library lib/libLLVMVectorize.a
1.013 [5/2/8] Building CXX object tools/bolt/lib/Utils/CMakeFiles/LLVMBOLTUtils.dir/CommandLineOpts.cpp.o
1.051 [4/2/9] Linking CXX static library lib/libLLVMBOLTUtils.a
2.676 [4/1/10] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o 
ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/CodeGen -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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-redundant-move -Wno-pessimizing-move -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CFIFixup.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp: In function ‘llvm::SmallVector<BlockFlags> computeBlockInfo(const llvm::MachineFunction&, const llvm::MachineBasicBlock*)’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-nfc/llvm-project/llvm/lib/CodeGen/CFIFixup.cpp:174:10: error: could not convert ‘BlockInfo’ from ‘SmallVector<[...],32>’ to ‘SmallVector<[...],40>’
  174 |   return BlockInfo;
      |          ^~~~~~~~~
      |          |
      |          SmallVector<[...],32>
ninja: build stopped: subcommand failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants