[llvm] [EquivClasses] Introduce members iterator-helper (PR #130139)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 7 09:33:15 PST 2025


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/14221

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

```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
1.087 [15/44/643] Linking CXX executable unittests/TextAPI/TextAPITests
1.094 [15/43/644] Linking CXX executable unittests/XRay/XRayTests
1.095 [15/42/645] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
1.126 [15/41/646] Linking CXX executable unittests/Object/ObjectTests
1.129 [15/40/647] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
1.148 [15/39/648] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
1.155 [15/38/649] Linking CXX executable unittests/ProfileData/ProfileDataTests
1.249 [15/37/650] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
1.493 [15/36/651] Linking CXX executable unittests/Support/SupportTests
3.202 [15/35/652] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include -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  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/EquivalenceClassesTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock.h:61,
                 from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/ADT/EquivalenceClassesTest.cpp:10:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h: In instantiation of ‘bool testing::internal::IsEmptyMatcher::MatchAndExplain(const MatcheeContainerType&, testing::MatchResultListener*) const [with MatcheeContainerType = llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>]’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:647:35:   required from ‘bool testing::PolymorphicMatcher<Impl>::MonomorphicImpl<T>::MatchAndExplain(T, testing::MatchResultListener*) const [with T = const llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>&; Impl = testing::internal::IsEmptyMatcher]’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include/gtest/gtest-matchers.h:646:10:   required from here
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include/gmock/gmock-more-matchers.h:73:40: error: ‘const class llvm::iterator_range<llvm::EquivalenceClasses<int>::member_iterator>’ has no member named ‘size’
   73 |     *listener << "whose size is " << c.size();
      |                                      ~~^~~~
6.747 [15/34/653] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/DDGTest.cpp.o
8.066 [15/33/654] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/LoopUtilsTest.cpp.o
8.433 [15/32/655] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/VectorUtilsTest.cpp.o
8.648 [15/31/656] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/InstrMapsTest.cpp.o
8.700 [15/30/657] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPDomTreeTest.cpp.o
8.743 [15/29/658] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/LastRunTrackingAnalysisTest.cpp.o
8.967 [15/28/659] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/ReplaceWithVecLibTest.cpp.o
9.122 [15/27/660] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanVerifierTest.cpp.o
9.236 [15/26/661] Building CXX object unittests/SandboxIR/CMakeFiles/SandboxIRTests.dir/UtilsTest.cpp.o
9.439 [15/25/662] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanHCFGTest.cpp.o
9.563 [15/24/663] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineOrderAnalysisTest.cpp.o
9.729 [15/23/664] Building CXX object unittests/Transforms/Vectorize/CMakeFiles/VectorizeTests.dir/VPlanSlpTest.cpp.o
9.922 [15/22/665] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LICMTest.cpp.o
9.941 [15/21/666] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/VecUtilsTest.cpp.o
10.122 [15/20/667] Building CXX object unittests/Transforms/Coroutines/CMakeFiles/CoroTests.dir/ExtraRematTest.cpp.o
10.142 [15/19/668] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/VFABIDemanglerTest.cpp.o
10.407 [15/18/669] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/PluginInlineAdvisorAnalysisTest.cpp.o
10.532 [15/17/670] Building CXX object unittests/Passes/Plugins/CMakeFiles/PluginsTests.dir/PluginsTest.cpp.o
10.656 [15/16/671] Building CXX object unittests/Transforms/Utils/CMakeFiles/UtilsTests.dir/MemTransferLowering.cpp.o
10.749 [15/15/672] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/SeedCollectorTest.cpp.o
11.228 [15/14/673] Building CXX object unittests/Transforms/Vectorize/SandboxVectorizer/CMakeFiles/SandboxVectorizerTests.dir/LegalityTest.cpp.o
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/Transforms/Vectorize/SandboxVectorizer/LegalityTest.cpp:9:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:186:33: warning: ‘maybe_unused’ attribute ignored [-Wattributes]
  186 |   [[maybe_unused]] ResultReason Reason;
      |                                 ^~~~~~
11.428 [15/13/674] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/PassManagerTest.cpp.o
11.542 [15/12/675] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/MachineDomTreeUpdaterTest.cpp.o
11.734 [15/11/676] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/CtxProfAnalysisTest.cpp.o
11.862 [15/10/677] Building CXX object unittests/Analysis/CMakeFiles/AnalysisTests.dir/FunctionPropertiesAnalysisTest.cpp.o

```

</details>

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


More information about the llvm-commits mailing list