[llvm] [llvm-ir2vec] Breaking up llvm-ir2vec lib implementation to clean up MIR deps from ir2vec python bindings (PR #194414)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 23:28:38 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `amdgpu-offload-build-only` running on `AMD-bb-w-01` while building `llvm` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/226/builds/7408
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[8322/8627] Linking CXX executable bin/llvm-lto
[8323/8627] Linking CXX shared library lib/liblldMachO.so.23.0git
[8324/8627] Creating library symlink lib/liblldMachO.so
[8325/8627] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXComment.cpp.o
[8326/8627] Linking CXX shared library lib/liblldMinGW.so.23.0git
[8327/8627] Linking CXX shared library lib/liblldELF.so.23.0git
[8328/8627] Creating library symlink lib/liblldMinGW.so
[8329/8627] Linking CXX executable bin/clang-nvlink-wrapper
[8330/8627] Creating library symlink lib/liblldELF.so
[8331/8627] Linking CXX shared library lib/libLLVMMIREmbUtils.so.23.0git
FAILED: lib/libLLVMMIREmbUtils.so.23.0git
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMMIREmbUtils.so.23.0git -o lib/libLLVMMIREmbUtils.so.23.0git tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib" lib/libLLVMAMDGPUAsmParser.so.23.0git lib/libLLVMX86AsmParser.so.23.0git lib/libLLVMAMDGPUCodeGen.so.23.0git lib/libLLVMSPIRVCodeGen.so.23.0git lib/libLLVMX86CodeGen.so.23.0git lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMMIRParser.so.23.0git lib/libLLVMCodeGen.so.23.0git lib/libLLVMTarget.so.23.0git lib/libLLVMIRReader.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMTargetParser.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::iterator_range<llvm::filter_iterator_impl<decltype (adl_begin((declval<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&>)())), llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}, std::conditional<is_base_of_v<std::bidirectional_iterator_tag, std::iterator_traits<decltype (adl_begin((declval<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&>)()))>::iterator_category>, std::bidirectional_iterator_tag, std::forward_iterator_tag>::type> > llvm::make_filter_range<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >, llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}>(llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&&, llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}) [clone .isra.0]':
MIRUtils.cpp:(.text._ZN4llvm17make_filter_rangeINS_14iterator_rangeINS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_8FunctionELb1ELb0EvLb0EvEELb0ELb1EEEEEZNKS_6Module15getFunctionDefsEvEUlRKS5_E_EENS1_INS_20filter_iterator_implIDTcl9adl_begincl7declvalIRT_EEEET0_NSt11conditionalIX12is_base_of_vISt26bidirectional_iterator_tagNSt15iterator_traitsISG_E17iterator_categoryEEESJ_St20forward_iterator_tagE4typeEEEEEOSE_SH_.isra.0+0x43): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
MIRUtils.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x38): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::mir2vec::MIR2VecTool::writeEmbeddingsToStream(llvm::MachineFunction&, llvm::raw_ostream&, llvm::EmbeddingLevel) const [clone .localalias]':
MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1a7): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x22b): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x235): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x24b): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x2e2): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x2f8): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x387): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x3d3): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x3ff): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x4ea): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x52b): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x579): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5c8): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5d8): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5fb): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x678): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x688): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o:MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x6c8): more undefined references to `llvm::raw_ostream::write(char const*, unsigned long)' follow
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::mir2vec::MIR2VecTool::writeEmbeddingsToStream(llvm::Module const&, llvm::raw_ostream&, llvm::EmbeddingLevel) const':
MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xaf): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xd1): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xe7): undefined reference to `llvm::WithColor::warning(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x125): undefined reference to `llvm::Value::getName() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x15f): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x175): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1d0): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1ea): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x210): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x256): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::Expected<llvm::mir2vec::MIRVocabulary>::fatalUncheckedExpected() const':
MIRUtils.cpp:(.text._ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv[_ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv]+0xa): undefined reference to `llvm::dbgs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv[_ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv]+0x27): undefined reference to `llvm::dbgs()'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[8322/8627] Linking CXX executable bin/llvm-lto
[8323/8627] Linking CXX shared library lib/liblldMachO.so.23.0git
[8324/8627] Creating library symlink lib/liblldMachO.so
[8325/8627] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXComment.cpp.o
[8326/8627] Linking CXX shared library lib/liblldMinGW.so.23.0git
[8327/8627] Linking CXX shared library lib/liblldELF.so.23.0git
[8328/8627] Creating library symlink lib/liblldMinGW.so
[8329/8627] Linking CXX executable bin/clang-nvlink-wrapper
[8330/8627] Creating library symlink lib/liblldELF.so
[8331/8627] Linking CXX shared library lib/libLLVMMIREmbUtils.so.23.0git
FAILED: lib/libLLVMMIREmbUtils.so.23.0git
: && /opt/rh/gcc-toolset-13/root/usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-dangling-pointer -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/./lib -Wl,--gc-sections -shared -Wl,-soname,libLLVMMIREmbUtils.so.23.0git -o lib/libLLVMMIREmbUtils.so.23.0git tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-build-only/build/lib" lib/libLLVMAMDGPUAsmParser.so.23.0git lib/libLLVMX86AsmParser.so.23.0git lib/libLLVMAMDGPUCodeGen.so.23.0git lib/libLLVMSPIRVCodeGen.so.23.0git lib/libLLVMX86CodeGen.so.23.0git lib/libLLVMAMDGPUDesc.so.23.0git lib/libLLVMSPIRVDesc.so.23.0git lib/libLLVMX86Desc.so.23.0git lib/libLLVMAMDGPUInfo.so.23.0git lib/libLLVMSPIRVInfo.so.23.0git lib/libLLVMX86Info.so.23.0git lib/libLLVMMIRParser.so.23.0git lib/libLLVMCodeGen.so.23.0git lib/libLLVMTarget.so.23.0git lib/libLLVMIRReader.so.23.0git lib/libLLVMMC.so.23.0git lib/libLLVMTargetParser.so.23.0git -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-build-only/build/lib && :
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::iterator_range<llvm::filter_iterator_impl<decltype (adl_begin((declval<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&>)())), llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}, std::conditional<is_base_of_v<std::bidirectional_iterator_tag, std::iterator_traits<decltype (adl_begin((declval<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&>)()))>::iterator_category>, std::bidirectional_iterator_tag, std::forward_iterator_tag>::type> > llvm::make_filter_range<llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >, llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}>(llvm::iterator_range<llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Function, true, false, void, false, void>, false, true> >&&, llvm::Module::getFunctionDefs() const::{lambda(llvm::Function const&)#1}) [clone .isra.0]':
MIRUtils.cpp:(.text._ZN4llvm17make_filter_rangeINS_14iterator_rangeINS_14ilist_iteratorINS_12ilist_detail12node_optionsINS_8FunctionELb1ELb0EvLb0EvEELb0ELb1EEEEEZNKS_6Module15getFunctionDefsEvEUlRKS5_E_EENS1_INS_20filter_iterator_implIDTcl9adl_begincl7declvalIRT_EEEET0_NSt11conditionalIX12is_base_of_vISt26bidirectional_iterator_tagNSt15iterator_traitsISG_E17iterator_categoryEEESJ_St20forward_iterator_tagE4typeEEEEEOSE_SH_.isra.0+0x43): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::raw_ostream::operator<<(char const*)':
MIRUtils.cpp:(.text._ZN4llvm11raw_ostreamlsEPKc[_ZN4llvm11raw_ostreamlsEPKc]+0x38): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::mir2vec::MIR2VecTool::writeEmbeddingsToStream(llvm::MachineFunction&, llvm::raw_ostream&, llvm::EmbeddingLevel) const [clone .localalias]':
MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1a7): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x22b): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x235): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x24b): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x2e2): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x2f8): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x387): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x3d3): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x3ff): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x4ea): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x52b): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x579): undefined reference to `llvm::ir2vec::Embedding::print(llvm::raw_ostream&) const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5c8): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5d8): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x5fb): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x678): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x688): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o:MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERNS_15MachineFunctionERNS_11raw_ostreamENS_14EmbeddingLevelE+0x6c8): more undefined references to `llvm::raw_ostream::write(char const*, unsigned long)' follow
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::mir2vec::MIR2VecTool::writeEmbeddingsToStream(llvm::Module const&, llvm::raw_ostream&, llvm::EmbeddingLevel) const':
MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xaf): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xd1): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0xe7): undefined reference to `llvm::WithColor::warning(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x125): undefined reference to `llvm::Value::getName() const'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x15f): undefined reference to `llvm::errs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x175): undefined reference to `llvm::WithColor::error(llvm::raw_ostream&, llvm::StringRef, bool)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1d0): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x1ea): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x210): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm7mir2vec11MIR2VecTool23writeEmbeddingsToStreamERKNS_6ModuleERNS_11raw_ostreamENS_14EmbeddingLevelE+0x256): undefined reference to `llvm::raw_ostream::write(char const*, unsigned long)'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: tools/llvm-ir2vec/lib/CMakeFiles/obj.LLVMMIREmbUtils.dir/MIRUtils.cpp.o: in function `llvm::Expected<llvm::mir2vec::MIRVocabulary>::fatalUncheckedExpected() const':
MIRUtils.cpp:(.text._ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv[_ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv]+0xa): undefined reference to `llvm::dbgs()'
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: MIRUtils.cpp:(.text._ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv[_ZNK4llvm8ExpectedINS_7mir2vec13MIRVocabularyEE22fatalUncheckedExpectedEv]+0x27): undefined reference to `llvm::dbgs()'
```
</details>
https://github.com/llvm/llvm-project/pull/194414
More information about the llvm-commits
mailing list