[llvm] [Utils] Consolidate `LockstepReverseIterator` into own header (NFC) (PR #116657)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 12:38:16 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ppc64le-mlir-rhel-clang` running on `ppc64le-mlir-rhel-test` while building `llvm` at step 5 "build-check-mlir-build-only".

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

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

```
Step 5 (build-check-mlir-build-only) failure: build (failure)
...
90.644 [215/13/3947] Linking CXX static library lib/libMLIRTestVectorToSPIRV.a
90.656 [215/12/3948] Linking CXX static library lib/libMLIRTensorToLinalg.a
90.662 [215/11/3949] Linking CXX static library lib/libMLIRMeshToMPI.a
90.700 [215/10/3950] Linking CXX static library lib/libMLIRGPUToSPIRV.a
90.715 [215/9/3951] Linking CXX executable tools/mlir/unittests/Transforms/MLIRTransformsTests
90.916 [215/8/3952] Linking CXX executable tools/mlir/unittests/Dialect/SparseTensor/MLIRSparseTensorTests
91.140 [215/7/3953] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/PreISelIntrinsicLowering.cpp.o
91.158 [215/6/3954] Linking CXX executable tools/mlir/unittests/Dialect/SPIRV/MLIRSPIRVImportExportTests
91.250 [215/5/3955] Building CXX object tools/mlir/test/lib/Dialect/Affine/CMakeFiles/MLIRAffineTransformsTestPasses.dir/TestAccessAnalysis.cpp.o
93.936 [215/4/3956] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o
FAILED: lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o 
ccache /home/buildbots/llvm-external-buildbots/clang.19.1.7/bin/clang++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/lib/Transforms/Utils -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o -MF lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o.d -o lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2503:3: error: reference to 'LockstepReverseIterator' is ambiguous
 2503 |   LockstepReverseIterator<true> LRI(UnconditionalPreds);
      |   ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include/llvm/Transforms/Utils/LockstepReverseIterator.h:41:7: note: candidate found by name lookup is 'llvm::LockstepReverseIterator'
   41 | class LockstepReverseIterator
      |       ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1787:7: note: candidate found by name lookup is '(anonymous namespace)::LockstepReverseIterator'
 1787 | class LockstepReverseIterator {
      |       ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2533:44: error: reference to 'LockstepReverseIterator' is ambiguous
 2533 |     auto ProfitableToSinkInstruction = [&](LockstepReverseIterator<true> &LRI) {
      |                                            ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/include/llvm/Transforms/Utils/LockstepReverseIterator.h:41:7: note: candidate found by name lookup is 'llvm::LockstepReverseIterator'
   41 | class LockstepReverseIterator
      |       ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-mlir-rhel-test/ppc64le-mlir-rhel-clang-build/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1787:7: note: candidate found by name lookup is '(anonymous namespace)::LockstepReverseIterator'
 1787 | class LockstepReverseIterator {
      |       ^
2 errors generated.
99.796 [215/3/3957] Building CXX object lib/MC/MCParser/CMakeFiles/LLVMMCParser.dir/AsmParser.cpp.o
103.371 [215/2/3958] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/GVNSink.cpp.o
133.618 [215/1/3959] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list