blob: d6bddd0eec8f6b29f166e0749fcf4d2f5354d0ff [file] [log] [blame]
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
FIRDialect
FIRSupport
FIRTransforms
FIRCodeGen
${dialect_libs}
# TODO: these should be transitive dependencies from a target providing
# "registerFIRPasses()"
MLIRIR
MLIRLLVMIR
MLIRPass
MLIRStandardToLLVM
MLIRTransforms
MLIRAffineToStandard
MLIRAnalysis
MLIRSCFToStandard
MLIRParser
MLIRStandardToLLVM
MLIRSupport
MLIRVectorToLLVM
MLIROptLib
)