[llvm] [NFC][MemProf] Move types shared between Analysis, ProfileData and ModuleSummary (Core) to a separate header (PR #140505)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 17:25:26 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-9-cmake-build-only` running on `rocm-docker-rhel-9` while building `llvm` at step 4 "annotate".

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

<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)
...
[5930/7799] Creating library symlink lib/libLLVMSymbolize.so
[5931/7799] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.21.0git
[5932/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[5933/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[5934/7799] Creating library symlink lib/libLLVMDebuginfod.so
[5935/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SimpleStreamChecker.cpp.o
[5936/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrChecker.cpp.o
[5937/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrModeling.cpp.o
[5938/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/StackAddrEscapeChecker.cpp.o
[5939/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /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-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wno-unnecessary-virtual-specifier -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-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMProfileData.so.21.0git -o lib/libLLVMProfileData.so.21.0git lib/ProfileData/CMakeFiles/LLVMProfileData.dir/DataAccessProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/GCOV.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/IndexedMemProfData.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfCorrelator.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ItaniumManglingCanonicalizer.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfRadixTree.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ProfileSummaryBuilder.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SymbolRemappingReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMSymbolize.so.21.0git  lib/libLLVMDebugInfoDWARF.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMBitstreamReader.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x2e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x46): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xc4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xdb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x38): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x4d): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x59): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x7d): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xc2): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xcf): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xda): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x11f): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x12c): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x137): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1d0): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1dd): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1e8): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x23e): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x24b): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x256): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2b1): undefined reference to `llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2c3): undefined reference to `llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x1c): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5930/7799] Creating library symlink lib/libLLVMSymbolize.so
[5931/7799] Linking CXX shared library lib/libLLVMDebugInfoLogicalView.so.21.0git
[5932/7799] Creating library symlink lib/libLLVMDebugInfoLogicalView.so
[5933/7799] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
[5934/7799] Creating library symlink lib/libLLVMDebuginfod.so
[5935/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SimpleStreamChecker.cpp.o
[5936/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrChecker.cpp.o
[5937/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/SmartPtrModeling.cpp.o
[5938/7799] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/obj.clangStaticAnalyzerCheckers.dir/StackAddrEscapeChecker.cpp.o
[5939/7799] Linking CXX shared library lib/libLLVMProfileData.so.21.0git
FAILED: lib/libLLVMProfileData.so.21.0git 
: && /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-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wno-unnecessary-virtual-specifier -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-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMProfileData.so.21.0git -o lib/libLLVMProfileData.so.21.0git lib/ProfileData/CMakeFiles/LLVMProfileData.dir/DataAccessProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/GCOV.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/IndexedMemProfData.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfCorrelator.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ItaniumManglingCanonicalizer.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/MemProfRadixTree.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/PGOCtxProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/ProfileSummaryBuilder.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProf.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfReader.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SampleProfWriter.cpp.o lib/ProfileData/CMakeFiles/LLVMProfileData.dir/SymbolRemappingReader.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMSymbolize.so.21.0git  lib/libLLVMDebugInfoDWARF.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMBitstreamReader.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::lookupPGONameFromMetadata(llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x44): undefined reference to `llvm::MDString::getString() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOObjectName(llvm::GlobalObject const&, bool, llvm::MDNode*)':
InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x2e): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0x46): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xc4): undefined reference to `llvm::Value::getName() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvmL18getIRPGOObjectNameERKNS_12GlobalObjectEbPNS_6MDNodeE+0xdb): undefined reference to `llvm::GlobalValue::getGlobalIdentifier[abi:cxx11](llvm::StringRef, llvm::GlobalValue::LinkageTypes, llvm::StringRef)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getIRPGOFuncName[abi:cxx11](llvm::Function const&, bool)':
InstrProf.cpp:(.text._ZN4llvm16getIRPGOFuncNameB5cxx11ERKNS_8FunctionEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOName[abi:cxx11](llvm::GlobalVariable const&, bool)':
InstrProf.cpp:(.text._ZN4llvm10getPGONameB5cxx11ERKNS_14GlobalVariableEb+0x1c): undefined reference to `llvm::Value::getMetadata(llvm::StringRef) const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5): undefined reference to `llvm::GlobalValue::isDeclaration() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2c): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x38): undefined reference to `llvm::ConstantDataSequential::isCString() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x4d): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x59): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): undefined reference to `llvm::ConstantDataSequential::isString(unsigned int) const'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): undefined reference to `llvm::ConstantDataSequential::getRawDataValues() const'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x7d): undefined reference to `llvm::MDBuilder::createString(llvm::StringRef)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xc2): undefined reference to `llvm::Type::getInt32Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xcf): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xda): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x11f): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x12c): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x137): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1d0): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1dd): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x1e8): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x23e): undefined reference to `llvm::Type::getInt64Ty(llvm::LLVMContext&)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x24b): undefined reference to `llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x256): undefined reference to `llvm::MDBuilder::createConstant(llvm::Constant*)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2b1): undefined reference to `llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
/usr/bin/ld: InstrProf.cpp:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2c3): undefined reference to `llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
/usr/bin/ld: lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o: in function `llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]':
InstrProf.cpp:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x1c): undefined reference to `llvm::Value::getMetadataImpl(unsigned int) const'

```

</details>

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


More information about the llvm-commits mailing list