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

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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b2` while building `clang,cross-project-tests,llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
853.520 [45/21/3901] Linking CXX executable bin/llvm-mc
853.559 [45/20/3902] Linking CXX executable bin/llvm-nm
853.580 [45/19/3903] Linking CXX executable bin/llvm-cfi-verify
853.586 [45/18/3904] Linking CXX executable bin/llvm-ar
853.600 [42/20/3905] Generating ../../bin/llvm-ranlib
853.605 [42/19/3906] Generating ../../bin/llvm-dlltool
853.605 [42/18/3907] Generating ../../bin/llvm-lib
853.891 [42/17/3908] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/RunIRPasses.cpp.o
854.514 [42/16/3909] Building CXX object tools/llvm-lto/CMakeFiles/llvm-lto.dir/llvm-lto.cpp.o
854.926 [42/15/3910] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o
FAILED: tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o 
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -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/b/ml-opt-dev-x86-64-b1/build/tools/opt -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/tools/opt -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -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 -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -MF tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o.d -o tools/opt/CMakeFiles/LLVMOptDriver.dir/optdriver.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/tools/opt/optdriver.cpp
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/tools/opt/optdriver.cpp:684:30: error: redefinition of 'RTLCI'
  684 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/tools/opt/optdriver.cpp:677:30: note: previous definition is here
  677 |   RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(),
      |                              ^
1 error generated.
855.058 [42/14/3911] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetMachine.cpp.o
855.142 [42/13/3912] Building CXX object tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/Target.cpp.o
855.388 [42/12/3913] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86ISelDAGToDAG.cpp.o
855.783 [42/11/3914] Building CXX object tools/lli/CMakeFiles/lli.dir/lli.cpp.o
855.915 [42/10/3915] Building CXX object tools/llvm-lto2/CMakeFiles/llvm-lto2.dir/llvm-lto2.cpp.o
856.011 [42/9/3916] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/GISel/X86InstructionSelector.cpp.o
856.325 [42/8/3917] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86TargetTransformInfo.cpp.o
856.903 [42/7/3918] Building CXX object tools/llvm-exegesis/CMakeFiles/llvm-exegesis.dir/llvm-exegesis.cpp.o
857.209 [42/6/3919] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/ReducerWorkItem.cpp.o
859.908 [42/5/3920] Building CXX object tools/opt/CMakeFiles/LLVMOptDriver.dir/NewPMDriver.cpp.o
863.498 [42/4/3921] Building CXX object lib/Target/RISCV/CMakeFiles/LLVMRISCVCodeGen.dir/GISel/RISCVInstructionSelector.cpp.o
865.950 [42/3/3922] Building CXX object tools/llvm-jitlink/CMakeFiles/llvm-jitlink.dir/llvm-jitlink.cpp.o
888.192 [42/2/3923] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Passes/PassBuilder.cpp:17:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Passes/PassBuilder.h:18:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Analysis/CGSCCPassManager.h:91:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/MapVector.h:20:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/DenseMap.h:20:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/ADT/Hashing.h:53:
In file included from /usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/algorithm:61:
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::pair<const llvm::Loop *, llvm::InstructionCost>>' 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::pair<const llvm::Loop *, llvm::InstructionCost> *, std::pair<const llvm::Loop *, llvm::InstructionCost>>::_Temporary_buffer' requested here
 4996 |       _TmpBuf __buf(__first, (__last - __first + 1) / 2);
      |               ^
/usr/lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_algo.h:5070:23: note: in instantiation of function template specialization 'std::__stable_sort<std::pair<const llvm::Loop *, llvm::InstructionCost> *, __gnu_cxx::__ops::_Iter_comp_iter<(lambda at /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Analysis/LoopCacheAnalysis.h:255:17)>>' requested here
 5070 |       _GLIBCXX_STD_A::__stable_sort(__first, __last,

```

</details>

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


More information about the llvm-commits mailing list