[Mlir-commits] [mlir] [mlir] Add strided metadata range dataflow analysis (PR #161280)

LLVM Continuous Integration llvmlistbot at llvm.org
Tue Oct 14 07:19:56 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `mlir` at step 4 "annotate".

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

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

```
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
     assert(!Success || !Trap.hasErrorOccurred() &&
                        ~~~~~~~~~~~~~~~~~~~~~~~~~^~
                            "Substitution failures must be handled "
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            "by CheckConstraintSatisfaction.");
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4290/8131] Linking CXX shared library lib/libMLIRDebug.so.22.0git
[4291/8131] Linking CXX shared library lib/libMLIRInferIntRangeInterface.so.22.0git
[4292/8131] Creating library symlink lib/libMLIRCallInterfaces.so
[4293/8131] Linking CXX shared library lib/libMLIRInferStridedMetadataInterface.so.22.0git
FAILED: lib/libMLIRInferStridedMetadataInterface.so.22.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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRInferStridedMetadataInterface.so.22.0git -o lib/libMLIRInferStridedMetadataInterface.so.22.0git tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -lpthread  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o: In function `mlir::StridedMetadataRange::print(llvm::raw_ostream&) const':
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x98): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0xfb): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x1fd): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x25b): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x363): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o:InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x3cb): more undefined references to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)' follow
collect2: error: ld returned 1 exit status
[4294/8131] Linking CXX shared library lib/libMLIRInferTypeOpInterface.so.22.0git
[4295/8131] Creating library symlink lib/libMLIRBytecodeWriter.so
[4296/8131] Linking CXX shared library lib/libMLIRMemOpInterfaces.so.22.0git
[4297/8131] Creating library symlink lib/libMLIRDebug.so
[4298/8131] Linking CXX shared library lib/libMLIRMemorySlotInterfaces.so.22.0git
[4299/8131] Creating library symlink lib/libMLIRInferIntRangeInterface.so
[4300/8131] Linking CXX shared library lib/libMLIRBytecodeReader.so.22.0git
[4301/8131] Linking CXX shared library lib/libMLIRParallelCombiningOpInterface.so.22.0git
[4302/8131] Linking CXX shared library lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git
[4303/8131] Linking CXX shared library lib/libMLIRShapedOpInterfaces.so.22.0git
[4304/8131] Linking CXX shared library lib/libMLIRVectorInterfaces.so.22.0git
[4305/8131] Linking CXX shared library lib/libMLIRSideEffectInterfaces.so.22.0git
[4306/8131] Linking CXX shared library lib/libMLIRFunctionInterfaces.so.22.0git
[4307/8131] Linking CXX shared library lib/libLLVMFuzzMutate.so.22.0git
[4308/8131] Linking CXX shared library lib/libLLVMFrontendOpenMP.so.22.0git
[4309/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/LinkInModulesPass.cpp.o
[4310/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/MacroPPCallbacks.cpp.o
[4311/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CoverageMappingGen.cpp.o
In file included from /usr/include/c++/8/cassert:44,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:40,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/DataAccessProf.h:25,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProfReader.h:21,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/lib/CodeGen/CodeGenPGO.h:20,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘llvm::ArrayRef<llvm::InstrProfValueSiteRecord> llvm::InstrProfRecord::getValueSitesForKind(uint32_t) const’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1028:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
     assert(IPVK_First <= ValueKind && ValueKind <= IPVK_Last &&
            ~~~~~~~~~~~^~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘std::vector<llvm::InstrProfValueSiteRecord>& llvm::InstrProfRecord::getOrCreateValueSitesForKind(uint32_t)’:
Step 7 (build cmake config) failure: build cmake config (failure)
...
     assert(!Success || !Trap.hasErrorOccurred() &&
                        ~~~~~~~~~~~~~~~~~~~~~~~~~^~
                            "Substitution failures must be handled "
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                            "by CheckConstraintSatisfaction.");
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4290/8131] Linking CXX shared library lib/libMLIRDebug.so.22.0git
[4291/8131] Linking CXX shared library lib/libMLIRInferIntRangeInterface.so.22.0git
[4292/8131] Creating library symlink lib/libMLIRCallInterfaces.so
[4293/8131] Linking CXX shared library lib/libMLIRInferStridedMetadataInterface.so.22.0git
FAILED: lib/libMLIRInferStridedMetadataInterface.so.22.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-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-array-bounds -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -Wno-deprecated-copy -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRInferStridedMetadataInterface.so.22.0git -o lib/libMLIRInferStridedMetadataInterface.so.22.0git tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRIR.so.22.0git  lib/libMLIRSupport.so.22.0git  lib/libLLVMSupport.so.22.0git  -lpthread  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o: In function `mlir::StridedMetadataRange::print(llvm::raw_ostream&) const':
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x98): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0xfb): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x1fd): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x25b): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x363): undefined reference to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)'
tools/mlir/lib/Interfaces/CMakeFiles/obj.MLIRInferStridedMetadataInterface.dir/InferStridedMetadataInterface.cpp.o:InferStridedMetadataInterface.cpp:(.text._ZNK4mlir20StridedMetadataRange5printERN4llvm11raw_ostreamE+0x3cb): more undefined references to `mlir::operator<<(llvm::raw_ostream&, mlir::ConstantIntRanges const&)' follow
collect2: error: ld returned 1 exit status
[4294/8131] Linking CXX shared library lib/libMLIRInferTypeOpInterface.so.22.0git
[4295/8131] Creating library symlink lib/libMLIRBytecodeWriter.so
[4296/8131] Linking CXX shared library lib/libMLIRMemOpInterfaces.so.22.0git
[4297/8131] Creating library symlink lib/libMLIRDebug.so
[4298/8131] Linking CXX shared library lib/libMLIRMemorySlotInterfaces.so.22.0git
[4299/8131] Creating library symlink lib/libMLIRInferIntRangeInterface.so
[4300/8131] Linking CXX shared library lib/libMLIRBytecodeReader.so.22.0git
[4301/8131] Linking CXX shared library lib/libMLIRParallelCombiningOpInterface.so.22.0git
[4302/8131] Linking CXX shared library lib/libMLIRRuntimeVerifiableOpInterface.so.22.0git
[4303/8131] Linking CXX shared library lib/libMLIRShapedOpInterfaces.so.22.0git
[4304/8131] Linking CXX shared library lib/libMLIRVectorInterfaces.so.22.0git
[4305/8131] Linking CXX shared library lib/libMLIRSideEffectInterfaces.so.22.0git
[4306/8131] Linking CXX shared library lib/libMLIRFunctionInterfaces.so.22.0git
[4307/8131] Linking CXX shared library lib/libLLVMFuzzMutate.so.22.0git
[4308/8131] Linking CXX shared library lib/libLLVMFrontendOpenMP.so.22.0git
[4309/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/LinkInModulesPass.cpp.o
[4310/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/MacroPPCallbacks.cpp.o
[4311/8131] Building CXX object tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/CoverageMappingGen.cpp.o
In file included from /usr/include/c++/8/cassert:44,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:40,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/DataAccessProf.h:25,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProfReader.h:21,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/lib/CodeGen/CodeGenPGO.h:20,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/clang/lib/CodeGen/CoverageMappingGen.cpp:15:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘llvm::ArrayRef<llvm::InstrProfValueSiteRecord> llvm::InstrProfRecord::getValueSitesForKind(uint32_t) const’:
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h:1028:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
     assert(IPVK_First <= ValueKind && ValueKind <= IPVK_Last &&
            ~~~~~~~~~~~^~~~~~~~~~~~
/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/ProfileData/InstrProf.h: In member function ‘std::vector<llvm::InstrProfValueSiteRecord>& llvm::InstrProfRecord::getOrCreateValueSitesForKind(uint32_t)’:

```

</details>

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


More information about the Mlir-commits mailing list