[Mlir-commits] [mlir] [mlir][math] Add vector support for math-to-apfloat (PR #172715)

LLVM Continuous Integration llvmlistbot at llvm.org
Fri Jan 16 14:11:14 PST 2026


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

<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)
...
[5294/8429] Linking CXX shared library lib/libMLIRTransformSMTExtension.so.23.0git
[5295/8429] Linking CXX shared library lib/libMLIRSCFUtils.so.23.0git
[5296/8429] Linking CXX shared library lib/libMLIRAffineUtils.so.23.0git
[5297/8429] Linking CXX shared library lib/libMLIRTransformDialectTransforms.so.23.0git
[5298/8429] Linking CXX shared library lib/libMLIRConvertToEmitC.so.23.0git
[5299/8429] Creating library symlink lib/libMLIRAffineUtils.so
[5300/8429] Creating library symlink lib/libMLIRConvertToEmitC.so
[5301/8429] Linking CXX shared library lib/libMLIRTransformTuneExtension.so.23.0git
[5302/8429] Generating VCSVersion.inc
[5303/8429] Linking CXX shared library lib/libMLIRArithAndMathToAPFloatUtils.so.23.0git
FAILED: lib/libMLIRArithAndMathToAPFloatUtils.so.23.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,libMLIRArithAndMathToAPFloatUtils.so.23.0git -o lib/libMLIRArithAndMathToAPFloatUtils.so.23.0git tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithAndMathToAPFloatUtils.dir/Utils.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRArithDialect.so.23.0git  lib/libMLIRCastInterfaces.so.23.0git  lib/libMLIRDialect.so.23.0git  lib/libMLIRInferIntRangeCommon.so.23.0git  lib/libMLIRShapedOpInterfaces.so.23.0git  lib/libMLIRInferIntRangeInterface.so.23.0git  lib/libMLIRInferTypeOpInterface.so.23.0git  lib/libMLIRUBDialect.so.23.0git  lib/libMLIRIR.so.23.0git  lib/libMLIRSupport.so.23.0git  lib/libLLVMSupport.so.23.0git  -lpthread  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithAndMathToAPFloatUtils.dir/Utils.cpp.o: In function `mlir::forEachScalarValue(mlir::RewriterBase&, mlir::Location, mlir::Value, mlir::Value, mlir::Type, llvm::function_ref<mlir::Value (mlir::Value, mlir::Value, mlir::Type)>)':
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0xca): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x121): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x20e): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x61f): undefined reference to `mlir::vector::FromElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::ValueRange)'
collect2: error: ld returned 1 exit status
[5304/8429] Linking CXX shared library lib/libMLIRArmNeon2dToIntr.so.23.0git
[5305/8429] Linking CXX shared library lib/libMLIRBufferizationToMemRef.so.23.0git
[5306/8429] Creating library symlink lib/libMLIRSCFUtils.so
[5307/8429] Building CXX object tools/lld/Common/CMakeFiles/lldCommon.dir/Args.cpp.o
[5308/8429] Linking CXX shared library lib/libMLIRControlFlowTransforms.so.23.0git
[5309/8429] Linking CXX shared library lib/libMLIROpenACCToSCF.so.23.0git
[5310/8429] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[5311/8429] Linking CXX shared library lib/libLLVMMIRParser.so.23.0git
[5312/8429] Linking CXX shared library lib/libLLVMInterpreter.so.23.0git
[5313/8429] Linking CXX shared library lib/libMLIRArmNeonTransforms.so.23.0git
[5314/8429] Linking CXX shared library lib/libMLIRMathTransforms.so.23.0git
[5315/8429] Linking CXX shared library lib/libMLIRNVVMDialect.so.23.0git
[5316/8429] Linking CXX shared library lib/libMLIRMLProgramTransforms.so.23.0git
[5317/8429] Linking CXX shared library lib/libMLIRArithTransforms.so.23.0git
[5318/8429] Linking CXX shared library lib/libMLIRArmSVEDialect.so.23.0git
[5319/8429] Linking CXX shared library lib/libMLIRShapeOpsTransforms.so.23.0git
[5320/8429] Linking CXX shared library lib/libMLIRAMDGPUDialect.so.23.0git
[5321/8429] Linking CXX shared library lib/libMLIRArmSMEDialect.so.23.0git
[5322/8429] Linking CXX shared library lib/libLLVMSelectionDAG.so.23.0git
[5323/8429] Linking CXX shared library lib/libMLIRLinalgDialect.so.23.0git
[5324/8429] Linking CXX shared library lib/libMLIRSPIRVDialect.so.23.0git
[5325/8429] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[5326/8429] Building CXX object tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRMathToAPFloat.dir/MathToAPFloat.cpp.o
[5327/8429] Building CXX object tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithToAPFloat.dir/ArithToAPFloat.cpp.o
[5328/8429] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.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/Analysis/IndirectCallPromotionAnalysis.h:16,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Transforms/IPO/MemProfContextDisambiguation.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/LTO/LTO.cpp:60:
/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’:
Step 7 (build cmake config) failure: build cmake config (failure)
...
[5294/8429] Linking CXX shared library lib/libMLIRTransformSMTExtension.so.23.0git
[5295/8429] Linking CXX shared library lib/libMLIRSCFUtils.so.23.0git
[5296/8429] Linking CXX shared library lib/libMLIRAffineUtils.so.23.0git
[5297/8429] Linking CXX shared library lib/libMLIRTransformDialectTransforms.so.23.0git
[5298/8429] Linking CXX shared library lib/libMLIRConvertToEmitC.so.23.0git
[5299/8429] Creating library symlink lib/libMLIRAffineUtils.so
[5300/8429] Creating library symlink lib/libMLIRConvertToEmitC.so
[5301/8429] Linking CXX shared library lib/libMLIRTransformTuneExtension.so.23.0git
[5302/8429] Generating VCSVersion.inc
[5303/8429] Linking CXX shared library lib/libMLIRArithAndMathToAPFloatUtils.so.23.0git
FAILED: lib/libMLIRArithAndMathToAPFloatUtils.so.23.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,libMLIRArithAndMathToAPFloatUtils.so.23.0git -o lib/libMLIRArithAndMathToAPFloatUtils.so.23.0git tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithAndMathToAPFloatUtils.dir/Utils.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libMLIRArithDialect.so.23.0git  lib/libMLIRCastInterfaces.so.23.0git  lib/libMLIRDialect.so.23.0git  lib/libMLIRInferIntRangeCommon.so.23.0git  lib/libMLIRShapedOpInterfaces.so.23.0git  lib/libMLIRInferIntRangeInterface.so.23.0git  lib/libMLIRInferTypeOpInterface.so.23.0git  lib/libMLIRUBDialect.so.23.0git  lib/libMLIRIR.so.23.0git  lib/libMLIRSupport.so.23.0git  lib/libLLVMSupport.so.23.0git  -lpthread  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithAndMathToAPFloatUtils.dir/Utils.cpp.o: In function `mlir::forEachScalarValue(mlir::RewriterBase&, mlir::Location, mlir::Value, mlir::Value, mlir::Type, llvm::function_ref<mlir::Value (mlir::Value, mlir::Value, mlir::Type)>)':
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0xca): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x121): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x20e): undefined reference to `mlir::vector::ToElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Value)'
Utils.cpp:(.text._ZN4mlir18forEachScalarValueERNS_12RewriterBaseENS_8LocationENS_5ValueES3_NS_4TypeEN4llvm12function_refIFS3_S3_S3_S4_EEE+0x61f): undefined reference to `mlir::vector::FromElementsOp::create(mlir::OpBuilder&, mlir::Location, mlir::Type, mlir::ValueRange)'
collect2: error: ld returned 1 exit status
[5304/8429] Linking CXX shared library lib/libMLIRArmNeon2dToIntr.so.23.0git
[5305/8429] Linking CXX shared library lib/libMLIRBufferizationToMemRef.so.23.0git
[5306/8429] Creating library symlink lib/libMLIRSCFUtils.so
[5307/8429] Building CXX object tools/lld/Common/CMakeFiles/lldCommon.dir/Args.cpp.o
[5308/8429] Linking CXX shared library lib/libMLIRControlFlowTransforms.so.23.0git
[5309/8429] Linking CXX shared library lib/libMLIROpenACCToSCF.so.23.0git
[5310/8429] Linking CXX shared library lib/libLLVMDWARFLinker.so.23.0git
[5311/8429] Linking CXX shared library lib/libLLVMMIRParser.so.23.0git
[5312/8429] Linking CXX shared library lib/libLLVMInterpreter.so.23.0git
[5313/8429] Linking CXX shared library lib/libMLIRArmNeonTransforms.so.23.0git
[5314/8429] Linking CXX shared library lib/libMLIRMathTransforms.so.23.0git
[5315/8429] Linking CXX shared library lib/libMLIRNVVMDialect.so.23.0git
[5316/8429] Linking CXX shared library lib/libMLIRMLProgramTransforms.so.23.0git
[5317/8429] Linking CXX shared library lib/libMLIRArithTransforms.so.23.0git
[5318/8429] Linking CXX shared library lib/libMLIRArmSVEDialect.so.23.0git
[5319/8429] Linking CXX shared library lib/libMLIRShapeOpsTransforms.so.23.0git
[5320/8429] Linking CXX shared library lib/libMLIRAMDGPUDialect.so.23.0git
[5321/8429] Linking CXX shared library lib/libMLIRArmSMEDialect.so.23.0git
[5322/8429] Linking CXX shared library lib/libLLVMSelectionDAG.so.23.0git
[5323/8429] Linking CXX shared library lib/libMLIRLinalgDialect.so.23.0git
[5324/8429] Linking CXX shared library lib/libMLIRSPIRVDialect.so.23.0git
[5325/8429] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
[5326/8429] Building CXX object tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRMathToAPFloat.dir/MathToAPFloat.cpp.o
[5327/8429] Building CXX object tools/mlir/lib/Conversion/ArithAndMathToAPFloat/CMakeFiles/obj.MLIRArithToAPFloat.dir/ArithToAPFloat.cpp.o
[5328/8429] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.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/Analysis/IndirectCallPromotionAnalysis.h:16,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/include/llvm/Transforms/IPO/MemProfContextDisambiguation.h:18,
                 from /home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/llvm-project/llvm/lib/LTO/LTO.cpp:60:
/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’:

```

</details>

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


More information about the Mlir-commits mailing list