[Mlir-commits] [mlir] [mlir][bufferization] Introduce castBufferTypeFn hook and API (PR #205080)

LLVM Continuous Integration llvmlistbot at llvm.org
Wed Jul 1 03:59:25 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-offload-build-only` running on `AMD-bb-w-02` while building `mlir` at step 4 "annotate".

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

<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)
...
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Clustering.h:17,
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Analysis.h:17,
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:14:
/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/include/llvm/Support/Compiler.h:651:65: warning: ‘cfi-icall’ attribute directive ignored [-Wattributes]
  651 | #define LLVM_NO_SANITIZE(KIND) __attribute__((no_sanitize(KIND)))
      |                                                                 ^
/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Assembler.h:119:7: note: in expansion of macro ‘LLVM_NO_SANITIZE’
  119 |       LLVM_NO_SANITIZE("cfi-icall") /* Incompatible with JIT */ {
      |       ^~~~~~~~~~~~~~~~
[8591/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestInlining.cpp.o
FAILED: runtimes/runtimes-stamps/runtimes-configure /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-stamps/runtimes-configure 
cd /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins && /usr/local/therock-tools/bin/cmake -DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt -DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp -DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload -DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../flang-rt --no-warn-unused-cli -DCMAKE_C_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang -DCMAKE_CXX_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang++ -DCMAKE_ASM_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang -DCMAKE_Fortran_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/flang -DCMAKE_LINKER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/ld.lld -DCMAKE_AR=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-ar -DCMAKE_RANLIB=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-ranlib -DCMAKE_NM=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-nm -DCMAKE_OBJDUMP=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-objdump -DCMAKE_OBJCOPY=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-objcopy -DCMAKE_STRIP=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-strip -DCMAKE_READELF=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_Fortran_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_INSTALL_PREFIX=/tmp/llvm.install.test -DLLVM_BINARY_DIR=/home/botworker/bbot/amdgpu-offload-build-only/build -DLLVM_CONFIG_PATH=/home/botworker/bbot/amdgpu-offload-build-only/build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF "-DLLVM_LIT_ARGS=-v --show-unsupported --timeout 100 --show-xfail -j 16" -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=23.0.0git -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=Off -DLLVM_INCLUDE_TESTS=ON -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DLLVM_BUILD_TOOLS=ON -DLLVM_ENABLE_DOXYGEN=OFF -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_Fortran_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -DLLVM_LIBDIR_SUFFIX= -DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt -DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp -DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload -DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../flang-rt -DFORTRAN_SUPPORTS_REAL16=0 -DCOMPILER_RT_TEST_EXTERNAL_BUILTINS=ON "-DLLVM_ENABLE_RUNTIMES=compiler-rt;openmp;offload;flang-rt" -DFLANG_RUNTIME_F128_MATH_LIB= -DLIBOMPTEST_BUILD_UNITTESTS=ON -DLIBOMP_ENABLE_ARM64X=OFF "-DRUNTIMES_CMAKE_ARGS=-DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt;-DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp;-DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload;-DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-bui
d-only/llvm-project/llvm/runtimes/../../flang-rt" -DRUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES=openmp -GNinja -C/home/botworker/bbot/amdgpu-offload-build-only/build/projects/runtimes/tmp/runtimes-cache-Release.cmake -S /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../runtimes -B /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins && /usr/local/therock-tools/bin/cmake -E touch /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-stamps/runtimes-configure
[8593/8676] Linking CXX executable bin/fir-lsp-server
[8594/8676] Linking CXX shared library lib/libHLFIRTransforms.so.23.0git
[8595/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestMakeIsolatedFromAbove.cpp.o
[8596/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestInliningCallback.cpp.o
[8597/8676] Linking CXX shared library lib/libFortranLower.so.23.0git
[8598/8676] Building CXX object tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPILinalg.dir/LinalgPasses.cpp.o
[8599/8676] Building CXX object tools/mlir/test/lib/Dialect/Vector/CMakeFiles/MLIRVectorTestPasses.dir/TestVectorTransforms.cpp.o
[8600/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestFromLLVMIRTranslation.dir/TestFromLLVMIRTranslation.cpp.o
[8601/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestDialect.dir/TestOpsSyntax.cpp.o
[8602/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestToLLVMIRTranslation.dir/TestToLLVMIRTranslation.cpp.o
[8603/8676] Building CXX object tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllPasses.dir/RegisterAllPasses.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
@@@STEP_FAILURE@@@
Step 7 (build cmake config) failure: build cmake config (failure)
...
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Clustering.h:17,
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Analysis.h:17,
                 from /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/llvm-exegesis.cpp:14:
/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/include/llvm/Support/Compiler.h:651:65: warning: ‘cfi-icall’ attribute directive ignored [-Wattributes]
  651 | #define LLVM_NO_SANITIZE(KIND) __attribute__((no_sanitize(KIND)))
      |                                                                 ^
/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/tools/llvm-exegesis/lib/Assembler.h:119:7: note: in expansion of macro ‘LLVM_NO_SANITIZE’
  119 |       LLVM_NO_SANITIZE("cfi-icall") /* Incompatible with JIT */ {
      |       ^~~~~~~~~~~~~~~~
[8591/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestInlining.cpp.o
FAILED: runtimes/runtimes-stamps/runtimes-configure /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-stamps/runtimes-configure 
cd /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins && /usr/local/therock-tools/bin/cmake -DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt -DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp -DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload -DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../flang-rt --no-warn-unused-cli -DCMAKE_C_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang -DCMAKE_CXX_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang++ -DCMAKE_ASM_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/clang -DCMAKE_Fortran_COMPILER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/flang -DCMAKE_LINKER=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/ld.lld -DCMAKE_AR=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-ar -DCMAKE_RANLIB=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-ranlib -DCMAKE_NM=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-nm -DCMAKE_OBJDUMP=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-objdump -DCMAKE_OBJCOPY=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-objcopy -DCMAKE_STRIP=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-strip -DCMAKE_READELF=/home/botworker/bbot/amdgpu-offload-build-only/build/./bin/llvm-readelf -DCMAKE_C_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_CXX_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_Fortran_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_ASM_COMPILER_TARGET=x86_64-unknown-linux-gnu -DCMAKE_INSTALL_PREFIX=/tmp/llvm.install.test -DLLVM_BINARY_DIR=/home/botworker/bbot/amdgpu-offload-build-only/build -DLLVM_CONFIG_PATH=/home/botworker/bbot/amdgpu-offload-build-only/build/bin/llvm-config -DLLVM_ENABLE_WERROR=OFF -DLLVM_HOST_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_HAVE_LINK_VERSION_SCRIPT=1 -DLLVM_USE_RELATIVE_PATHS_IN_DEBUG_INFO=OFF -DLLVM_USE_RELATIVE_PATHS_IN_FILES=OFF "-DLLVM_LIT_ARGS=-v --show-unsupported --timeout 100 --show-xfail -j 16" -DLLVM_SOURCE_PREFIX= -DPACKAGE_VERSION=23.0.0git -DCMAKE_BUILD_TYPE=Release -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCOMPILER_RT_BUILD_BUILTINS=Off -DLLVM_INCLUDE_TESTS=ON -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu -DLLVM_ENABLE_PROJECTS_USED=ON -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON -DLLVM_BUILD_TOOLS=ON -DLLVM_ENABLE_DOXYGEN=OFF -DCMAKE_C_COMPILER_WORKS=ON -DCMAKE_CXX_COMPILER_WORKS=ON -DCMAKE_Fortran_COMPILER_WORKS=ON -DCMAKE_ASM_COMPILER_WORKS=ON -DHAVE_LLVM_LIT=ON -DCLANG_RESOURCE_DIR= -DLLVM_LIBDIR_SUFFIX= -DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt -DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp -DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload -DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../flang-rt -DFORTRAN_SUPPORTS_REAL16=0 -DCOMPILER_RT_TEST_EXTERNAL_BUILTINS=ON "-DLLVM_ENABLE_RUNTIMES=compiler-rt;openmp;offload;flang-rt" -DFLANG_RUNTIME_F128_MATH_LIB= -DLIBOMPTEST_BUILD_UNITTESTS=ON -DLIBOMP_ENABLE_ARM64X=OFF "-DRUNTIMES_CMAKE_ARGS=-DLLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../compiler-rt;-DLLVM_EXTERNAL_OPENMP_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../openmp;-DLLVM_EXTERNAL_OFFLOAD_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../offload;-DLLVM_EXTERNAL_FLANG_RT_SOURCE_DIR=/home/botworker/bbot/amdgpu-offload-bui
d-only/llvm-project/llvm/runtimes/../../flang-rt" -DRUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES=openmp -GNinja -C/home/botworker/bbot/amdgpu-offload-build-only/build/projects/runtimes/tmp/runtimes-cache-Release.cmake -S /home/botworker/bbot/amdgpu-offload-build-only/llvm-project/llvm/runtimes/../../runtimes -B /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-bins && /usr/local/therock-tools/bin/cmake -E touch /home/botworker/bbot/amdgpu-offload-build-only/build/runtimes/runtimes-stamps/runtimes-configure
[8593/8676] Linking CXX executable bin/fir-lsp-server
[8594/8676] Linking CXX shared library lib/libHLFIRTransforms.so.23.0git
[8595/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestMakeIsolatedFromAbove.cpp.o
[8596/8676] Building CXX object tools/mlir/test/lib/Transforms/CMakeFiles/MLIRTestTransforms.dir/TestInliningCallback.cpp.o
[8597/8676] Linking CXX shared library lib/libFortranLower.so.23.0git
[8598/8676] Building CXX object tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPILinalg.dir/LinalgPasses.cpp.o
[8599/8676] Building CXX object tools/mlir/test/lib/Dialect/Vector/CMakeFiles/MLIRVectorTestPasses.dir/TestVectorTransforms.cpp.o
[8600/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestFromLLVMIRTranslation.dir/TestFromLLVMIRTranslation.cpp.o
[8601/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestDialect.dir/TestOpsSyntax.cpp.o
[8602/8676] Building CXX object tools/mlir/test/lib/Dialect/Test/CMakeFiles/MLIRTestToLLVMIRTranslation.dir/TestToLLVMIRTranslation.cpp.o
[8603/8676] Building CXX object tools/mlir/lib/CMakeFiles/obj.MLIRRegisterAllPasses.dir/RegisterAllPasses.cpp.o
ninja: build stopped: subcommand failed.
['ninja'] exited with return code 1.
The build step threw an exception...
Traceback (most recent call last):
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 62, in step
    yield
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 53, in main
    run_command(["ninja"])
  File "../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py", line 75, in run_command
    util.report_run_cmd(cmd, cwd=directory)
  File "/home/botworker/bbot/amdgpu-offload-build-only/llvm-zorg/zorg/buildbot/builders/annotated/util.py", line 49, in report_run_cmd
    subprocess.check_call(cmd, shell=shell, *args, **kwargs)
  File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja']' returned non-zero exit status 1.
program finished with exit code 0
elapsedTime=132.508597

```

</details>

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


More information about the Mlir-commits mailing list