[clang] [llvm] RuntimeLibcalls: Move VectorLibrary handling into TargetOptions (PR #167996)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 14 11:33:52 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `clang,cross-project-tests,llvm` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23154 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/abi-test/build/include/llvm/IR/RuntimeLibcalls.inc:23168:57: warning: enumerated and non-enumerated type in conditional expression [-Wextra]
23168 |         setLibcallImplCallingConv(Impl, TT.isWatchABI() ? DefaultCC :
      |                                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
23169 |     (isAAPCS_ABI(TT, ABIName) ? CallingConv::ARM_AAPCS : CallingConv::ARM_APCS));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11.770 [6762/10/662] Building CXX object lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ReplayInlineAdvisor.cpp.o
12.302 [6761/10/663] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/abi-test/build/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -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/AllocationOrder.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AllocationOrder.cpp
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/Target/TargetOptions.h:18,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AllocationOrder.cpp:17:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
15.390 [6761/9/664] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/abi-test/build/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -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/AtomicExpandPass.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AtomicExpandPass.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AtomicExpandPass.cpp
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineRegisterInfo.h:25,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/TargetLowering.h:34,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/Target/TargetOptions.h:414:17: error: declaration of ‘llvm::VectorLibrary llvm::TargetOptions::VectorLibrary’ changes meaning of ‘VectorLibrary’ [-fpermissive]
  414 |   VectorLibrary VectorLibrary = VectorLibrary::NoLibrary;
      |                 ^~~~~~~~~~~~~
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/RuntimeLibcalls.h:26,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/LibcallLoweringInfo.h:12,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/TargetLowering.h:32,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AtomicExpandPass.cpp:24:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/SystemLibraries.h:20:12: note: ‘VectorLibrary’ declared here as ‘enum class llvm::VectorLibrary’
   20 | enum class VectorLibrary {
      |            ^~~~~~~~~~~~~
15.547 [6761/8/665] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/abi-test/build/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -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-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -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/AggressiveAntiDepBreaker.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AggressiveAntiDepBreaker.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFunctionPass.h:21,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineOptimizationRemarkEmitter.h:18,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/TargetFrameLowering.h:18,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/MachineFrameInfo.h:18,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp:21:

```

</details>

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


More information about the cfe-commits mailing list