[llvm] [mlir] CMake: Remove unnecessary dependencies on LLVM/MLIR (PR #110362)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 15:01:51 PDT 2024


llvm-ci wrote:

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

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
114.812 [3299/12/3919] Creating library symlink lib/libMLIRTensorUtils.so
114.813 [3299/11/3920] Linking CXX shared library lib/libMLIRShapeDialect.so.20.0git
114.828 [3299/10/3921] Creating library symlink lib/libMLIRTranslateLib.so
114.943 [3298/10/3922] Linking CXX shared library lib/libMLIRFuncMeshShardingExtensions.so.20.0git
114.959 [3294/13/3923] Creating library symlink lib/libMLIRShapeDialect.so
114.976 [3294/12/3924] Creating library symlink lib/libMLIRFuncMeshShardingExtensions.so
114.982 [3294/11/3925] Linking CXX shared library lib/libMLIRLspServerLib.so.20.0git
114.989 [3289/15/3926] Linking CXX shared library lib/libMLIRTensorMeshShardingExtensions.so.20.0git
114.995 [3289/14/3927] Creating library symlink lib/libMLIRLspServerLib.so
115.001 [3289/13/3928] Linking CXX shared library lib/libMLIRFromLLVMIRTranslationRegistration.so.20.0git
FAILED: lib/libMLIRFromLLVMIRTranslationRegistration.so.20.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRFromLLVMIRTranslationRegistration.so.20.0git -o lib/libMLIRFromLLVM
IRTranslationRegistration.so.20.0git tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRFromLLVMIRTranslationRegistration.dir/ConvertFromLLVMIR.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libMLIRLLVMIRToLLVMTranslation.so.20.0git  lib/libMLIRLLVMIRToNVVMTranslation.so.20.0git  lib/libMLIRTargetLLVMIRImport.so.20.0git  lib/libMLIRDLTIDialect.so.20.0git  lib/libMLIRNVVMDialect.so.20.0git  lib/libMLIRLLVMDialect.so.20.0git  lib/libMLIRCallInterfaces.so.20.0git  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRDataLayoutInterfaces.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRMemorySlotInterfaces.so.20.0git  lib/libLLVMBitWriter.so.20.0git  lib/libLLVMIRReader.so.20.0git  lib/libLLVMBitReader.so.20.0git  lib/libMLIRSideEffectInterfaces.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRSupport.so.20.0git  lib/libLLVMAsmParser.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMBinaryFormat.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/mlir/lib/Target/LLVMIR/CMakeFiles/obj.MLIRFromLLVMIRTranslationRegistration.dir/ConvertFromLLVMIR.cpp.o: in function `mlir::registerFromLLVMIRTranslation()':
ConvertFromLLVMIR.cpp:(.text._ZN4mlir29registerFromLLVMIRTranslationEv+0xa0): undefined reference to `mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration(llvm::StringRef, llvm::StringRef, std::function<mlir::OwningOpRef<mlir::Operation*> (llvm::SourceMgr&, mlir::MLIRContext*)> const&, std::function<void (mlir::DialectRegistry&)> const&, std::optional<llvm::Align>)'
collect2: error: ld returned 1 exit status
115.017 [3289/12/3929] Linking CXX shared library lib/libMLIRTosaShardingInterfaceImpl.so.20.0git
FAILED: lib/libMLIRTosaShardingInterfaceImpl.so.20.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libMLIRTosaShardingInterfaceImpl.so.20.0git -o lib/libMLIRTosaShardingInterfaceImpl.so.20.0git tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libMLIRShardingInterface.so.20.0git  lib/libMLIRMeshDialect.so.20.0git  lib/libMLIRTensorDialect.so.20.0git  lib/libMLIRAffineDialect.so.20.0git  lib/libMLIRMemRefDialect.so.20.0git  lib/libMLIRMemorySlotInterfaces.so.20.0git  lib/libMLIRArithUtils.so.20.0git  lib/libMLIRDialectUtils.so.20.0git  lib/libMLIRComplexDialect.so.20.0git  lib/libMLIRArithDialect.so.20.0git  lib/libMLIRCastInterfaces.so.20.0git  lib/libMLIRInferIntRangeCommon.so.20.0git  lib/libMLIRUBDialect.so.20.0git  lib/libMLIRDialect.so.20.0git  lib/libMLIRParallelCombiningOpInterface.so.20.0git  lib/libMLIRShapedOpInterfaces.so.20.0git  lib/libMLIRValueBoundsOpInterface.so.20.0git  lib/libMLIRDestinationStyleOpInterface.so.20.0git  lib/libMLIRAnalysis.so.20.0git  lib/libMLIRViewLikeInterface.so.20.0git  lib/libMLIRInferTypeOpInterface.so.20.0git  lib/libMLIRSideEffectInterfaces.so.20.0git  lib/libMLIRInferIntRangeInterface.so.20.0git  lib/libMLIRLoopLikeInterface.so.20.0git  lib/libMLIRFunctionInterfaces.so.20.0git  lib/libMLIRControlFlowInterfaces.so.20.0git  lib/libMLIRCallInterfaces.so.20.0git  lib/libMLIRDataLayoutInterfaces.so.20.0git  lib/libMLIRIR.so.20.0git  lib/libMLIRS
upport.so.20.0git  lib/libMLIRPresburger.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<(anonymous namespace)::MatMulOpSharding>::spmdize(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, llvm::ArrayRef<mlir::Value>, llvm::ArrayRef<mlir::mesh::MeshSharding>, llvm::ArrayRef<mlir::mesh::MeshSharding>, mlir::IRMapping&, mlir::SymbolTableCollection&, mlir::OpBuilder&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE7spmdizeEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS_5ValueEEENSD_INS0_12MeshShardingEEESH_RNS_9IRMappingERNS_21SymbolTableCollectionERNS_9OpBuilderE+0x5c): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE7spmdizeEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS_5ValueEEENSD_INS0_12MeshShardingEEESH_RNS_9IRMappingERNS_21SymbolTableCollectionERNS_9OpBuilderE+0x60): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<(anonymous namespace)::MatMulOpSharding>::getShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE+0x44): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<(anonymous namespace)::MatMulOpSharding>::addShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::OpBuilder&, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o:ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelIN12_GLOBAL__N_116MatMulOpShardingEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE+0x44): more undefined references to `mlir::detail::TypeIDResolver<mlir::tosa::MatMulOp, void>::id' follow
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::ClampOp> >::getShardingOption(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, llvm::ArrayRef<mlir::mesh::
MeshSharding>, llvm::ArrayRef<mlir::mesh::MeshSharding>)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_]+0x4c): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_]+0x50): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::ClampOp> >::getShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE]+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE]+0x44): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::ClampOp> >::addShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::OpBuilder&, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE]+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o:ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceI
nterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa7ClampOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE]+0x44): more undefined references to `mlir::detail::TypeIDResolver<mlir::tosa::ClampOp, void>::id' follow
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::SigmoidOp> >::getShardingOption(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, llvm::ArrayRef<mlir::mesh::MeshSharding>, llvm::ArrayRef<mlir::mesh::MeshSharding>)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_]+0x4c): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::SigmoidOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE17getShardingOptionEPKNS2_7ConceptEPNS_9OperationEN4llvm8ArrayRefINS0_12MeshShardingEEESH_]+0x50): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::SigmoidOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::SigmoidOp> >::getShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE]+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::SigmoidOp, void>::id'
/usr/bin/ld: ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE[_ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22getShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERKNS0_14ShardingOptionE]+0x44): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::SigmoidOp, void>::id'
/usr/bin/ld: tools/mlir/lib/Dialect/Tosa/CMakeFiles/obj.MLIRTosaShardingInterfaceImpl.dir/IR/ShardingInterfaceImpl.cpp.o: in function `mlir::mesh::detail::ShardingInterfaceInterfaceTraits::FallbackModel<mlir::mesh::ElementwiseShardingInterface<mlir::tosa::SigmoidOp> >::addShardingAnnotations(mlir::mesh::detail::ShardingInterfaceInterfaceTraits::Concept const*, mlir::Operation*, mlir::OpBuilder&, mlir::mesh::ShardingOption const&)':
ShardingInterfaceImpl.cpp:(.text._ZN4mlir4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE[_ZN4mli
r4mesh6detail32ShardingInterfaceInterfaceTraits13FallbackModelINS0_28ElementwiseShardingInterfaceINS_4tosa9SigmoidOpEEEE22addShardingAnnotationsEPKNS2_7ConceptEPNS_9OperationERNS_9OpBuilderERKNS0_14ShardingOptionE]+0x40): undefined reference to `mlir::detail::TypeIDResolver<mlir::tosa::SigmoidOp, void>::id'

```

</details>

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


More information about the llvm-commits mailing list