file(GLOB globbed *.c *.cpp)
add_llvm_library(MLIRStandardOps
  ${globbed}

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps
  )
add_dependencies(MLIRStandardOps MLIRStandardOpsIncGen LLVMSupport)
target_link_libraries(MLIRStandardOps LLVMSupport)

file(GLOB globbed *.c *.cpp)
add_llvm_library(MLIRStandardOps
  ${globbed}

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps
  )
add_dependencies(MLIRStandardOps MLIRStandardOpsIncGen MLIRIR LLVMSupport)
target_link_libraries(MLIRStandardOps MLIRIR LLVMSupport)

Fix undefined reference to mlir::getElementTypeOrSelf(mlir::Type)
Fix undefined reference to mlir::getElementTypeOrSelf(mlir::Type)

Fix undefined reference:
mlir/lib/Dialect/StandardOps/Ops.cpp:2029:
undefined reference to `mlir::getElementTypeOrSelf(mlir::Type)'

Closes #144

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/144 from denis0x0D:sandbox/fix_undef 494d4f7fa2e98ba21954d2b2f7ec1776b9397e08
PiperOrigin-RevId: 270545190
