mirror of https://github.com/llvm/torch-mlir
27 lines
523 B
CMake
27 lines
523 B
CMake
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
|
|
NPCOMPE2E
|
|
)
|