1 set(LLVM_OPTIONAL_SOURCES
5 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
6 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
7 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
8 set(LLVM_LINK_COMPONENTS
14 if(MLIR_INCLUDE_TESTS)
18 MLIRAffineTransformsTestPasses
20 MLIRBufferizationTestPasses
21 MLIRControlFlowTestPasses
26 MLIRLoopLikeInterfaceTestPasses
38 MLIRTestOneToNTypeConversionPass
43 MLIRTestTransformDialect
45 MLIRTilingInterfaceTestPasses
71 # Exclude from libMLIR.so because this has static options intended for
72 # opt-like tools only.
73 add_mlir_library(MLIRMlirOptMain
82 add_mlir_tool(mlir-opt
89 target_link_libraries(mlir-opt PRIVATE ${LIBS})
90 llvm_update_compile_flags(mlir-opt)
92 mlir_check_all_link_libraries(mlir-opt)
93 export_executable_symbols_for_plugins(mlir-opt)
95 if(MLIR_ENABLE_DEPRECATED_GPU_SERIALIZATION)
96 # Enable deprecated serialization passes.
97 target_compile_definitions(mlir-opt
99 MLIR_DEPRECATED_GPU_SERIALIZATION_ENABLE=1