[Mlir-commits] [mlir] [mlir][spirv] Add a generic `convert-to-spirv` pass (PR #95942)

LLVM Continuous Integration llvmlistbot at llvm.org
Fri Jun 21 09:36:52 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `mlir` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
...
162.859 [1965/35/5069] Linking CXX shared library lib/libMLIRFuncTransformOps.so.19.0git
162.864 [1959/40/5070] Creating library symlink lib/libMLIROpenMPToLLVM.so
162.868 [1959/39/5071] Creating library symlink lib/libMLIRFuncTransformOps.so
162.868 [1959/38/5072] Creating library symlink lib/libMLIRBufferizationDialect.so
162.871 [1955/41/5073] Creating library symlink lib/libMLIRAMDGPUTransforms.so
162.872 [1955/40/5074] Creating library symlink lib/libMLIRSCFDialect.so
162.876 [1955/39/5075] Creating library symlink lib/libMLIRShapeDialect.so
162.880 [1955/38/5076] Creating library symlink lib/libMLIRSPIRVUtils.so
162.988 [1955/37/5077] Linking CXX shared library lib/libMLIRFuncToSPIRV.so.19.0git
162.998 [1955/36/5078] Linking CXX shared library lib/libMLIRConvertToSPIRVPass.so.19.0git
FAILED: lib/libMLIRConvertToSPIRVPass.so.19.0git 
: && /usr/local/bin/c++ -fPIC -stdlib=libc++ -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 -Wundef -Werror=mismatched-tags -Werror=global-constructors -O3 -DNDEBUG  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRConvertToSPIRVPass.so.19.0git -o lib/libMLIRConvertToSPIRVPass.so.19.0git tools/mlir/lib/Conversion/ConvertToSPIRV/CMakeFiles/obj.MLIRConvertToSPIRVPass.dir/ConvertToSPIRVPass.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib:"  lib/libMLIRSPIRVConversion.so.19.0git  lib/libMLIRSPIRVDialect.so.19.0git  lib/libMLIRParser.so.19.0git  lib/libMLIRBytecodeReader.so.19.0git  lib/libMLIRAsmParser.so.19.0git  lib/libMLIRTransforms.so.19.0git  lib/libMLIRCopyOpInterface.so.19.0git  lib/libMLIRMemorySlotInterfaces.so.19.0git  lib/libMLIRRuntimeVerifiableOpInterface.so.19.0git  lib/libMLIRUBDialect.so.19.0git  lib/libMLIRTransformUtils.so.19.0git  lib/libMLIRRewrite.so.19.0git  lib/libMLIRRewritePDL.so.19.0git  lib/libMLIRPDLToPDLInterp.so.19.0git  lib/libMLIRPass.so.19.0git  lib/libMLIRPDLInterpDialect.so.19.0git  lib/libMLIRPDLDialect.so.19.0git  lib/libMLIRSubsetOpInterface.so.19.0git  lib/libMLIRValueBoundsOpInterface.so.19.0git  lib/libMLIRAnalysis.so.19.0git  lib/libMLIRLoopLikeInterface.so.19.0git  lib/libMLIRDataLayoutInterfaces.so.19.0git  lib/libMLIRInferIntRangeInterface.so.19.0git  lib/libMLIRPresburger.so.19.0git  lib/libMLIRViewLikeInterface.so.19.0git  lib/libMLIRDestinationStyleOpInterface.so.19.0git  lib/libMLIRFuncDialect.so.19.0git  lib/libMLIRSideEffectInterfaces.so.19.0git  lib/libMLIRControlFlowInterfaces.so.19.0git  lib/libMLIRFunctionInterfaces.so.19.0git  lib/libMLIRCallInterfaces.so.19.0git  lib/libMLIRInferTypeOpInterface.so.19.0git  lib/libMLIRIR.so.19.0git  lib/libMLIRSupport.so.19.0git  -lpthread  lib/libLLVMSupport.so.19.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib && :
/usr/bin/ld: tools/mlir/lib/Conversion/ConvertToSPIRV/CMakeFiles/obj.MLIRConvertToSPIRVPass.dir/ConvertToSPIRVPass.cpp.o: in function `(anonymous namespace)::ConvertToSPIRVPass::runOnOperation()':
ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0xbc): undefined reference to `mlir::ScfToSPIRVContext::ScfToSPIRVContext()'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0xc4): undefined reference to `mlir::arith::populateCeilFloorDivExpandOpsPatterns(mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0xd0): undefined reference to `mlir::arith::populateArithToSPIRVPatterns(mlir::SPIRVTypeConverter&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0xe8): undefined reference to `mlir::populateFuncToSPIRVPatterns(mlir::SPIRVTypeConverter&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0xf4): undefined reference to `mlir::index::populateIndexToSPIRVPatterns(mlir::SPIRVTypeConverter&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0x100): undefined reference to `mlir::populateVectorToSPIRVPatterns(mlir::SPIRVTypeConverter&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0x110): undefined reference to `mlir::populateSCFToSPIRVPatterns(mlir::SPIRVTypeConverter&, mlir::ScfToSPIRVContext&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0x11c): undefined reference to `mlir::ub::populateUBToSPIRVConversionPatterns(mlir::SPIRVTypeConverter&, mlir::RewritePatternSet&)'
/usr/bin/ld: ConvertToSPIRVPass.cpp:(.text._ZN12_GLOBAL__N_118ConvertToSPIRVPass14runOnOperationEv+0x1a4): undefined reference to `mlir::ScfToSPIRVContext::~ScfToSPIRVContext()'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
163.000 [1955/35/5079] Linking CXX shared library lib/libMLIRControlFlowToSPIRV.so.19.0git
163.019 [1955/34/5080] Linking CXX shared library lib/libMLIRUBToSPIRV.so.19.0git
163.023 [1955/33/5081] Linking CXX shared library lib/libMLIRIndexToSPIRV.so.19.0git
163.026 [1955/32/5082] Linking CXX shared library lib/libMLIRTensorInferTypeOpInterfaceImpl.so.19.0git
163.031 [1955/31/5083] Linking CXX shared library lib/libMLIRMathToSPIRV.so.19.0git
163.036 [1955/30/5084] Linking CXX shared library lib/libMLIRComplexToSPIRV.so.19.0git
163.047 [1955/29/5085] Linking CXX shared library lib/libMLIRMLProgramTransforms.so.19.0git
163.061 [1955/28/5086] Linking CXX shared library lib/libMLIRMemRefToSPIRV.so.19.0git
163.353 [1955/27/5087] Building CXX object tools/mlir/test/lib/Dialect/ArmSME/CMakeFiles/MLIRArmSMETestPasses.dir/TestLowerToArmSME.cpp.o
163.403 [1955/26/5088] Building CXX object tools/mlir/lib/Dialect/Linalg/Transforms/CMakeFiles/obj.MLIRLinalgTransforms.dir/SwapExtractSliceWithFillPatterns.cpp.o
165.339 [1955/25/5089] Building CXX object tools/mlir/lib/Dialect/NVGPU/TransformOps/CMakeFiles/obj.MLIRNVGPUTransformOps.dir/NVGPUTransformOps.cpp.o
165.659 [1955/24/5090] Building CXX object tools/mlir/test/lib/Dialect/ControlFlow/CMakeFiles/MLIRControlFlowTestPasses.dir/TestAssert.cpp.o
165.788 [1955/23/5091] Building CXX object tools/mlir/lib/Conversion/NVGPUToNVVM/CMakeFiles/obj.MLIRNVGPUToNVVM.dir/NVGPUToNVVM.cpp.o
168.628 [1955/22/5092] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestDataLayoutPropagation.cpp.o
168.737 [1955/21/5093] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestLinalgDropUnitDims.cpp.o
168.922 [1955/20/5094] Building CXX object tools/mlir/lib/CAPI/Dialect/CMakeFiles/obj.MLIRCAPILinalg.dir/LinalgPasses.cpp.o
169.093 [1955/19/5095] Building CXX object tools/mlir/lib/Dialect/Linalg/TransformOps/CMakeFiles/obj.MLIRLinalgTransformOps.dir/LinalgTransformOps.cpp.o
169.291 [1955/18/5096] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestLinalgDecomposeOps.cpp.o
170.902 [1955/17/5097] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestLinalgFusionTransforms.cpp.o
172.922 [1955/16/5098] Building CXX object tools/mlir/lib/Dialect/SparseTensor/Transforms/CMakeFiles/obj.MLIRSparseTensorTransforms.dir/SparseTensorPasses.cpp.o
173.414 [1955/15/5099] Building CXX object tools/mlir/lib/Conversion/GPUToNVVM/CMakeFiles/obj.MLIRGPUToNVVMTransforms.dir/LowerGpuOpsToNVVMOps.cpp.o
173.559 [1955/14/5100] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestPadFusion.cpp.o
174.508 [1955/13/5101] Building CXX object tools/mlir/lib/Conversion/VectorToGPU/CMakeFiles/obj.MLIRVectorToGPU.dir/VectorToGPU.cpp.o
174.672 [1955/12/5102] Building CXX object tools/mlir/lib/Dialect/Vector/TransformOps/CMakeFiles/obj.MLIRVectorTransformOps.dir/VectorTransformOps.cpp.o
175.433 [1955/11/5103] Building CXX object tools/mlir/lib/Conversion/GPUCommon/CMakeFiles/obj.MLIRGPUToGPURuntimeTransforms.dir/GPUToLLVMConversion.cpp.o
175.807 [1955/10/5104] Building CXX object tools/mlir/test/lib/Dialect/Linalg/CMakeFiles/MLIRLinalgTestPasses.dir/TestLinalgTransforms.cpp.o

```

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


More information about the Mlir-commits mailing list