[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 23:03:47 PDT 2025
llvm-ci wrote:
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/17712
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
61.503 [157/19/2563] Linking CXX shared library lib/libLLVMX86Disassembler.so.21.0git
61.517 [156/19/2564] Linking CXX static library lib/libLLVMCFIVerify_static.a
61.525 [156/18/2565] Creating library symlink lib/libLLVMX86Disassembler.so
61.554 [156/17/2566] Linking CXX executable bin/sanstats
61.561 [156/16/2567] Linking CXX shared library lib/libLLVMDebuginfod.so.21.0git
61.564 [155/16/2568] Linking CXX shared library lib/libLLVMCFIVerify.so.21.0git
61.584 [154/16/2569] Creating library symlink lib/libLLVMDebuginfod.so
61.586 [151/18/2570] Linking CXX executable bin/llvm-xray
61.587 [151/17/2571] Creating library symlink lib/libLLVMCFIVerify.so
61.651 [151/16/2572] 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-maybe-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 -fuse-ld=gold -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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/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/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/lib && :
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::lookupPGONameFromMetadata(llvm::MDNode*):(.text._ZN4llvmL25lookupPGONameFromMetadataEPNS_6MDNodeE+0x59): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x9): error: undefined reference to 'llvm::GlobalValue::isDeclaration() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x2f): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x3b): error: undefined reference to 'llvm::ConstantDataSequential::isCString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x50): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x5c): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x79): error: undefined reference to 'llvm::ConstantDataSequential::isString(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameVarInitializer(llvm::GlobalVariable*) [clone .localalias]:(.text._ZN4llvm28getPGOFuncNameVarInitializerEPNS_14GlobalVariableE+0x85): error: undefined reference to 'llvm::ConstantDataSequential::getRawDataValues() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xa2): error: undefined reference to 'llvm::MDBuilder::createString(llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xe7): error: undefined reference to 'llvm::Type::getInt32Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xf4): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0xff): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x147): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x154): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x15f): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x200): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x20d): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x218): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x26e): error: undefined reference to 'llvm::Type::getInt64Ty(llvm::LLVMContext&)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x27b): error: undefined reference to 'llvm::ConstantInt::get(llvm::IntegerType*, unsigned long, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x286): error: undefined reference to 'llvm::MDBuilder::createConstant(llvm::Constant*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2e1): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::annotateValueSite(llvm::Module&, llvm::Instruction&, llvm::ArrayRef<InstrProfValueData>, unsigned long, llvm::InstrProfValueKind, unsigned int) [clone .localalias]:(.text._ZN4llvm17annotateValueSiteERNS_6ModuleERNS_11InstructionENS_8ArrayRefI18InstrProfValueDataEEmNS_18InstrProfValueKindEj+0x2f3): error: undefined reference to 'llvm::Instruction::setMetadata(unsigned int, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x20): error: undefined reference to 'llvm::Value::getMetadataImpl(unsigned int) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::mayHaveValueProfileOfKind(llvm::Instruction const&, llvm::InstrProfValueKind) [clone .localalias]:(.text._ZN4llvm25mayHaveValueProfileOfKindERKNS_11InstructionENS_18InstrProfValueKindE+0x60): error: undefined reference to 'llvm::MDString::getString() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::getPGOFuncNameMetadata(llvm::Function const&):(.text._ZN4llvm22getPGOFuncNameMetadataERKNS_8FunctionE+0x11): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGOFuncNameMetadata(llvm::Function&, llvm::StringRef):(.text._ZN4llvm25createPGOFuncNameMetadataERNS_8FunctionENS_9StringRefE+0xe8): error: undefined reference to 'llvm::Value::setMetadata(llvm::StringRef, llvm::MDNode*)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x31): error: undefined reference to 'llvm::Value::getName() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x5d): error: undefined reference to 'llvm::Value::getMetadata(llvm::StringRef) const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x8c): error: undefined reference to 'llvm::Value::getContext() const'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0x9d): error: undefined reference to 'llvm::MDString::get(llvm::LLVMContext&, llvm::StringRef)'
lib/ProfileData/CMakeFiles/LLVMProfileData.dir/InstrProf.cpp.o:InstrProf.cpp:function llvm::createPGONameMetadata(llvm::GlobalObject&, llvm::StringRef):(.text._ZN4llvm21createPGONameMetadataERNS_12GlobalObjectENS_9StringRefE+0xb9): error: undefined reference to 'llvm::MDTuple::getImpl(llvm::LLVMContext&, llvm::ArrayRef<llvm::Metadata*>, llvm::Metadata::StorageType, bool)'
```
</details>
https://github.com/llvm/llvm-project/pull/140505
More information about the llvm-commits
mailing list