2020-05-29 07:41:36 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Core
|
|
|
|
Support
|
|
|
|
nativecodegen
|
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_tool(npcomp-run-mlir
|
|
|
|
npcomp-run-mlir.cpp
|
|
|
|
)
|
|
|
|
llvm_update_compile_flags(npcomp-run-mlir)
|
|
|
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
|
|
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
|
|
|
target_link_libraries(npcomp-run-mlir PRIVATE
|
|
|
|
${dialect_libs}
|
|
|
|
${conversion_libs}
|
|
|
|
MLIRAnalysis
|
|
|
|
MLIREDSC
|
|
|
|
MLIRExecutionEngine
|
|
|
|
MLIRIR
|
|
|
|
MLIRJitRunner
|
|
|
|
MLIRLLVMIR
|
|
|
|
MLIRParser
|
|
|
|
MLIRTargetLLVMIR
|
|
|
|
MLIRSupport
|
2020-06-12 08:47:14 +08:00
|
|
|
NPCOMPInitAll
|
2020-05-29 07:41:36 +08:00
|
|
|
)
|