annotate mlir/tools/mlir-lsp-server/CMakeLists.txt @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 set(LLVM_OPTIONAL_SOURCES
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 null.cpp
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 set(LLVM_LINK_COMPONENTS
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 Core
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 Support
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 AsmParser
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 if(MLIR_INCLUDE_TESTS)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 set(test_libs
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 MLIRAffineTransformsTestPasses
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 MLIRShapeTestPasses
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 MLIRSPIRVTestPasses
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 MLIRTestAnalysis
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 MLIRTestDialect
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 MLIRTestIR
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 MLIRTestPass
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 MLIRTestReducer
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 MLIRTestRewrite
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 MLIRTestTransforms
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 endif()
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 set(LIBS
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 ${dialect_libs}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 ${conversion_libs}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 ${test_libs}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 MLIRLoopAnalysis
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 MLIRAnalysis
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 MLIRDialect
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 MLIRLspServerLib
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 MLIRParser
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 MLIRPass
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 MLIRTransforms
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 MLIRTransformUtils
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 MLIRSupport
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 MLIRIR
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 add_llvm_tool(mlir-lsp-server
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 mlir-lsp-server.cpp
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 DEPENDS
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 ${LIBS}
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 )
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 target_link_libraries(mlir-lsp-server PRIVATE ${LIBS})
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 llvm_update_compile_flags(mlir-lsp-server)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 mlir_check_all_link_libraries(mlir-lsp-server)