[Mlir-commits] [clang] [llvm] [mlir] [LLVM][TableGen] Change SeachableTableEmitter to use const RecordKeeper (PR #110032)

LLVM Continuous Integration llvmlistbot at llvm.org
Mon Sep 30 10:13:28 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `libc-aarch64-ubuntu-fullbuild-dbg` running on `libc-aarch64-ubuntu` while building `clang,llvm,mlir` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/libc-linux.py ...' (failure)
...
-- Performing Test HAVE_POSIX_REGEX -- success
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Performing Test HAVE_PTHREAD_AFFINITY -- failed to compile
-- Configuring done
-- Generating done
-- Build files have been written to: /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/build
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/540] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackendSkeleton.cpp.o
[2/540] Building CXX object projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o
FAILED: projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -Iprojects/libc/utils/LibcTableGenUtil -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -Iinclude -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include -fPIC -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 -g  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o -MF projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o.d -o projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil/APIIndexer.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil/APIIndexer.cpp:29:34: error: no viable conversion from 'ArrayRef<const llvm::Record *>' to 'ArrayRef<llvm::Record *>'
  llvm::ArrayRef<llvm::Record *> Classes = RecordType->getClasses();
                                 ^         ~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:41:40: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'const llvm::ArrayRef<llvm::Record *> &' for 1st argument
  class LLVM_GSL_POINTER [[nodiscard]] ArrayRef {
                                       ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:41:40: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'llvm::ArrayRef<llvm::Record *> &&' for 1st argument
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:70:18: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'std::nullopt_t' for 1st argument
    /*implicit*/ ArrayRef(std::nullopt_t) {}
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:73:18: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'llvm::Record *const &' for 1st argument
    /*implicit*/ ArrayRef(const T &OneElt)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:116:28: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'const std::initializer_list<Record *> &' for 1st argument
    constexpr /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:90:18: note: candidate template ignored: could not match 'SmallVectorTemplateCommon' against 'ArrayRef'
    /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:96:18: note: candidate template ignored: could not match 'vector' against 'ArrayRef'
    /*implicit*/ ArrayRef(const std::vector<T, A> &Vec)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:101:28: note: candidate template ignored: could not match 'array' against 'ArrayRef'
    /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:106:28: note: candidate template ignored: could not match 'llvm::Record *const [N]' against 'ArrayRef<const llvm::Record *>'
    /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:126:5: note: candidate template ignored: requirement 'std::is_convertible<const llvm::Record *const *, llvm::Record *const *>::value' was not satisfied [with U = const llvm::Record]
    ArrayRef(const ArrayRef<U *> &A,
    ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:135:18: note: candidate template ignored: could not match 'SmallVectorTemplateCommon' against 'ArrayRef'
    /*implicit*/ ArrayRef(
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:144:5: note: candidate template ignored: could not match 'vector' against 'ArrayRef'
    ArrayRef(const std::vector<U *, A> &Vec,
    ^
Step 6 (build libc) failure: build libc (failure)
@@@BUILD_STEP build libc@@@
Running: ninja libc
[1/540] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackendSkeleton.cpp.o
[2/540] Building CXX object projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o
FAILED: projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o 
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -Iprojects/libc/utils/LibcTableGenUtil -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc -Iinclude -I/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include -fPIC -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 -g  -fno-exceptions -funwind-tables -fno-rtti -std=c++17 -MD -MT projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o -MF projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o.d -o projects/libc/utils/LibcTableGenUtil/CMakeFiles/LibcTableGenUtil.dir/APIIndexer.cpp.o -c /home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil/APIIndexer.cpp
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/libc/utils/LibcTableGenUtil/APIIndexer.cpp:29:34: error: no viable conversion from 'ArrayRef<const llvm::Record *>' to 'ArrayRef<llvm::Record *>'
  llvm::ArrayRef<llvm::Record *> Classes = RecordType->getClasses();
                                 ^         ~~~~~~~~~~~~~~~~~~~~~~~~
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:41:40: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'const llvm::ArrayRef<llvm::Record *> &' for 1st argument
  class LLVM_GSL_POINTER [[nodiscard]] ArrayRef {
                                       ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:41:40: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'llvm::ArrayRef<llvm::Record *> &&' for 1st argument
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:70:18: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'std::nullopt_t' for 1st argument
    /*implicit*/ ArrayRef(std::nullopt_t) {}
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:73:18: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'llvm::Record *const &' for 1st argument
    /*implicit*/ ArrayRef(const T &OneElt)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:116:28: note: candidate constructor not viable: no known conversion from 'ArrayRef<const llvm::Record *>' to 'const std::initializer_list<Record *> &' for 1st argument
    constexpr /*implicit*/ ArrayRef(const std::initializer_list<T> &Vec)
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:90:18: note: candidate template ignored: could not match 'SmallVectorTemplateCommon' against 'ArrayRef'
    /*implicit*/ ArrayRef(const SmallVectorTemplateCommon<T, U> &Vec)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:96:18: note: candidate template ignored: could not match 'vector' against 'ArrayRef'
    /*implicit*/ ArrayRef(const std::vector<T, A> &Vec)
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:101:28: note: candidate template ignored: could not match 'array' against 'ArrayRef'
    /*implicit*/ constexpr ArrayRef(const std::array<T, N> &Arr)
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:106:28: note: candidate template ignored: could not match 'llvm::Record *const [N]' against 'ArrayRef<const llvm::Record *>'
    /*implicit*/ constexpr ArrayRef(const T (&Arr)[N]) : Data(Arr), Length(N) {}
                           ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:126:5: note: candidate template ignored: requirement 'std::is_convertible<const llvm::Record *const *, llvm::Record *const *>::value' was not satisfied [with U = const llvm::Record]
    ArrayRef(const ArrayRef<U *> &A,
    ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:135:18: note: candidate template ignored: could not match 'SmallVectorTemplateCommon' against 'ArrayRef'
    /*implicit*/ ArrayRef(
                 ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:144:5: note: candidate template ignored: could not match 'vector' against 'ArrayRef'
    ArrayRef(const std::vector<U *, A> &Vec,
    ^
/home/libc-buildbot/libc-aarch64-ubuntu/libc-aarch64-ubuntu-fullbuild-dbg/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:287:5: note: candidate function
    operator std::vector<T>() const {
    ^
1 error generated.
[3/540] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/Error.cpp.o
[4/540] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackend.cpp.o
[5/540] Building CXX object lib/TableGen/CMakeFiles/LLVMTableGen.dir/DetailedRecordsBackend.cpp.o

```

</details>

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


More information about the Mlir-commits mailing list