2021-02-17 00:48:20 +08:00
|
|
|
add_flang_tool(fir-opt fir-opt.cpp)
|
|
|
|
llvm_update_compile_flags(fir-opt)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
|
|
|
|
|
|
target_link_libraries(fir-opt PRIVATE
|
2021-10-05 20:01:17 +08:00
|
|
|
FIRDialect
|
|
|
|
FIRSupport
|
|
|
|
FIRTransforms
|
|
|
|
FIRCodeGen
|
2021-02-17 00:48:20 +08:00
|
|
|
${dialect_libs}
|
|
|
|
|
|
|
|
# TODO: these should be transitive dependencies from a target providing
|
|
|
|
# "registerFIRPasses()"
|
2021-10-06 02:32:43 +08:00
|
|
|
MLIRIR
|
|
|
|
MLIRLLVMIR
|
|
|
|
MLIRPass
|
|
|
|
MLIRStandardToLLVM
|
|
|
|
MLIRTransforms
|
2021-02-17 00:48:20 +08:00
|
|
|
MLIRAffineToStandard
|
2021-10-06 02:32:43 +08:00
|
|
|
MLIRAnalysis
|
|
|
|
MLIRSCFToStandard
|
|
|
|
MLIRParser
|
|
|
|
MLIRStandardToLLVM
|
|
|
|
MLIRSupport
|
|
|
|
MLIRVectorToLLVM
|
2021-02-17 00:48:20 +08:00
|
|
|
MLIROptLib
|
2021-10-06 02:32:43 +08:00
|
|
|
|
2021-02-17 00:48:20 +08:00
|
|
|
)
|