[llvm] [ctx_prof] Add analysis utility to fetch ID of a callsite (PR #104491)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 10:57:43 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.175 [3/8/649] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
1.198 [3/7/650] Linking CXX executable unittests/CodeGen/CodeGenTests
1.211 [3/6/651] Linking CXX executable unittests/Frontend/LLVMFrontendTests
1.223 [3/5/652] Building CXX object unittests/Option/CMakeFiles/OptionTests.dir/OptionParsingTest.cpp.o
1.306 [2/5/653] Linking CXX executable unittests/Option/OptionTests
1.360 [2/4/654] Linking CXX executable unittests/IR/IRTests
1.474 [2/3/655] Linking CXX executable unittests/Support/SupportTests
1.481 [2/2/656] Linking CXX executable unittests/ADT/ADTTests
9.671 [2/1/657] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
10.017 [1/1/658] Linking CXX executable unittests/Analysis/AnalysisTests
FAILED: unittests/Analysis/AnalysisTests 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -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 -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=gold   -Wl,--export-dynamic   -Wl,--gc-sections unittests/Analysis/CMakeFiles/AnalysisTests.dir/AliasAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/AliasSetTrackerTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/AssumeBundleQueriesTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/BasicAliasAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/BlockFrequencyInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/BranchProbabilityInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/CallGraphTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/CaptureTrackingTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/CFGTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/CGSCCPassManagerTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ConstraintSystemTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/DomTreeUpdaterTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/DXILResourceTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/GraphWriterTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/GlobalsModRefTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/InlineCostTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/IRSimilarityIdentifierTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/IVDescriptorsTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/LazyCallGraphTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/LoadsTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/LoopInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/LoopNestTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/MemoryBuiltinsTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/MemoryProfileInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/MemorySSATest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/MLModelRunnerTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/PhiValuesTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ProfileSummaryInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ScalarEvolutionTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/SparsePropagation.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/TargetLibraryInfoTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/TensorSpecTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/TBAATest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/UnrollAnalyzerTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ValueLatticeTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/ValueTrackingTest.cpp.o unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o -o unittests/Analysis/AnalysisTests  -Wl,-rpath,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib  lib/libLLVMPasses.so.20.0git  lib/libllvm_gtest_main.so.20.0git  lib/libLLVMTestingSupport.so.20.0git  lib/libLLVMCodeGen.so.20.0git  lib/libLLVMipo.so.20.0git  lib/libLLVMTransformUtils.so.20.0git  lib/libLLVMAnalysis.so.20.0git  lib/libLLVMAsmParser.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMTargetParser.so.20.0git  lib/libllvm_gtest.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib && :
unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o:CtxProfAnalysisTest.cpp:function llvm::detail::PassModel<llvm::Module, llvm::PGOInstrumentationGen, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&): error: undefined reference to 'llvm::PGOInstrumentationGen::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

```

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


More information about the llvm-commits mailing list