This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] CMake cleanup for mlir-opt
ClosedPublic

Authored by stephenneuendorffer on Apr 10 2020, 6:22 PM.

Details

Summary

A few libraries which are also Dialect libraries where independently
in the link line for mlir-opt. Remove them.

Depends on D77926

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2020, 6:22 PM
mehdi_amini added inline comments.Apr 10 2020, 6:34 PM
mlir/tools/mlir-opt/CMakeLists.txt
10

why is the "transforms" library parts of the "dialect library"?

stephenneuendorffer marked an inline comment as done.Apr 11 2020, 9:54 PM
stephenneuendorffer added inline comments.
mlir/tools/mlir-opt/CMakeLists.txt
10

Currently all the libraries under lib/Dialect are "Dialect Libraries". We could make this more fine-grained, I suppose.
"Dialect Op Libraries" "Dialect Transform Libraries" "Dialect Analysis Libraries" "Dialect EDSC libraries" "DialectSerializationLibraries"?

This revision was not accepted when it landed; it landed in state Needs Review.Apr 11 2020, 10:24 PM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Apr 12 2020, 10:09 AM
mlir/tools/mlir-opt/CMakeLists.txt
10

Oh right it makes sense, MLIR_DIALECT_LIBS includes everything, if someone wants to depend on finer grain they can use individual targets.
Thanks!