This repository was archived by the owner on Apr 23, 2021. It is now read-only.
File tree 23 files changed +77
-45
lines changed
examples/Linalg/Linalg1/lib
23 files changed +77
-45
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ set(LIBS
17
17
MLIRAnalysis
18
18
MLIRControlFlowToCFG
19
19
MLIREDSC
20
+ MLIRLinalg
20
21
MLIRLLVMIR
21
22
MLIRParser
22
23
MLIRPass
@@ -26,13 +27,13 @@ set(LIBS
26
27
MLIRTransforms
27
28
)
28
29
29
- add_llvm_library(Linalg1LLVMConversion
30
+ add_llvm_library(Linalg1LLVMConversion STATIC
30
31
ConvertToLLVMDialect.cpp
31
32
)
32
33
target_link_libraries (Linalg1LLVMConversion PUBLIC MLIRLLVMIR
33
- MLIRControlFlowToCFG MLIRStandardOps)
34
+ Linalg1 MLIRControlFlowToCFG MLIRStandardOps MLIRStandardToLLVM MLIRLinalg )
34
35
35
- add_llvm_library(Linalg1
36
+ add_llvm_library(Linalg1 STATIC
36
37
Analysis.cpp
37
38
SliceOp.cpp
38
39
ViewOp.cpp
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ add_llvm_library(MLIRAnalysis STATIC
16
16
ADDITIONAL_HEADER_DIRS
17
17
${MLIR_MAIN_INCLUDE_DIR} /mlir/Analysis
18
18
)
19
- add_dependencies (MLIRAnalysis MLIRAffineOps MLIRLoopOps)
20
- target_link_libraries (MLIRAnalysis MLIRAffineOps MLIRLoopOps)
19
+ target_link_libraries (MLIRAnalysis MLIRAffineOps MLIRLoopOps MLIRPass)
Original file line number Diff line number Diff line change @@ -6,5 +6,7 @@ target_link_libraries(MLIRGPUtoNVVMTransforms
6
6
MLIRGPU
7
7
MLIRLLVMIR
8
8
MLIRNVVMIR
9
+ MLIRStandardToLLVM
10
+ MLIRTransforms
9
11
MLIRPass
10
12
)
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ target_link_libraries(MLIRSPIRVConversion
19
19
MLIRPass
20
20
MLIRSPIRV
21
21
MLIRSupport
22
+ MLIRTransforms
22
23
MLIRTransformUtils
23
24
MLIRSPIRV
24
25
MLIRStandardOps
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ add_llvm_library(MLIRVectorToLLVM
6
6
)
7
7
set (LIBS
8
8
MLIRLLVMIR
9
+ MLIRStandardToLLVM
9
10
MLIRTransforms
10
11
LLVMCore
11
12
LLVMSupport
Original file line number Diff line number Diff line change 1
- add_llvm_library(MLIRAffineOps
1
+ add_llvm_library(MLIRAffineOps STATIC
2
2
AffineOps.cpp
3
3
DialectRegistration.cpp
4
4
@@ -7,4 +7,3 @@ add_llvm_library(MLIRAffineOps
7
7
)
8
8
add_dependencies (MLIRAffineOps MLIRAffineOpsIncGen MLIRIR MLIRStandardOps)
9
9
target_link_libraries (MLIRAffineOps MLIRIR MLIRStandardOps)
10
-
Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ add_llvm_library(MLIRFxpMathOps
6
6
ADDITIONAL_HEADER_DIRS
7
7
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/FxpMathOps
8
8
)
9
- add_dependencies (MLIRFxpMathOps
10
- MLIRFxpMathOpsIncGen
11
- MLIRQuantOps
12
- MLIRIR
13
- MLIRPass
14
- MLIRSupport
15
- MLIRStandardOps)
9
+ add_dependencies (
10
+ MLIRFxpMathOps
11
+ MLIRFxpMathOpsIncGen)
12
+ target_link_libraries (
13
+ MLIRFxpMathOps
14
+ MLIRQuantOps
15
+ MLIRIR
16
+ MLIRPass
17
+ MLIRSupport
18
+ MLIRStandardOps)
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ add_llvm_library(MLIRGPU
7
7
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/GPU
8
8
)
9
9
add_dependencies (MLIRGPU MLIRGPUOpsIncGen MLIRIR LLVMSupport)
10
- target_link_libraries (MLIRGPU MLIRIR MLIRStandardOps LLVMSupport)
10
+ target_link_libraries (MLIRGPU MLIRIR MLIRPass MLIRStandardOps LLVMSupport)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ add_llvm_library(MLIRLLVMIR
5
5
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/LLVMIR
6
6
)
7
7
add_dependencies (MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
8
- target_link_libraries (MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport)
8
+ target_link_libraries (MLIRLLVMIR MLIRIR LLVMAsmParser LLVMCore LLVMSupport)
9
9
10
10
add_llvm_library(MLIRNVVMIR
11
11
IR/NVVMDialect.cpp
@@ -14,4 +14,4 @@ add_llvm_library(MLIRNVVMIR
14
14
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/LLVMIR
15
15
)
16
16
add_dependencies (MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
17
- target_link_libraries (MLIRNVVMIR LLVMAsmParser LLVMCore LLVMSupport)
17
+ target_link_libraries (MLIRNVVMIR MLIRLLVMIR MLIRIR LLVMAsmParser LLVMCore LLVMSupport)
Original file line number Diff line number Diff line change 1
- add_llvm_library(MLIRLinalg
1
+ add_llvm_library(MLIRLinalg STATIC
2
2
LinalgRegistration.cpp
3
3
Analysis/DependenceAnalysis.cpp
4
4
IR/LinalgOps.cpp
@@ -17,8 +17,12 @@ add_llvm_library(MLIRLinalg
17
17
18
18
add_dependencies (MLIRLinalg
19
19
20
- MLIRAffineOps
21
20
MLIRLinalgOpsIncGen
22
21
MLIRLinalgLibraryOpsIncGen
22
+ )
23
+ target_link_libraries (MLIRLinalg
24
+
25
+ MLIRAffineOps
26
+ MLIRIR
23
27
MLIRStandardToLLVM
24
28
)
Original file line number Diff line number Diff line change 1
1
file (GLOB globbed *.c *.cpp)
2
- add_llvm_library(MLIRLoopOps
2
+ add_llvm_library(MLIRLoopOps STATIC
3
3
${globbed}
4
4
5
5
ADDITIONAL_HEADER_DIRS
6
6
${MLIR_MAIN_INCLUDE_DIR} /mlir/LoopOps
7
7
)
8
- add_dependencies (MLIRLoopOps MLIRLoopOpsIncGen MLIRStandardOps LLVMSupport)
9
- target_link_libraries (MLIRLoopOps LLVMSupport)
8
+ add_dependencies (MLIRLoopOps MLIRLoopOpsIncGen MLIRStandardOps MLIRIR LLVMSupport)
9
+ target_link_libraries (MLIRLoopOps MLIRStandardOps MLIRIR LLVMSupport)
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ add_dependencies(MLIRQuantOps
19
19
MLIRQuantOpsIncGen
20
20
MLIRSupport
21
21
MLIRStandardOps)
22
+
23
+ target_link_libraries (MLIRQuantOps MLIRIR MLIRPass MLIRParser MLIRSupport MLIRTransforms MLIRAnalysis MLIRStandardOps LLVMSupport)
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ add_dependencies(MLIRSPIRV
16
16
target_link_libraries (MLIRSPIRV
17
17
MLIRIR
18
18
MLIRParser
19
- MLIRSupport)
19
+ MLIRSupport
20
+ MLIRTranslation)
20
21
21
22
add_subdirectory (Serialization)
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ add_dependencies(MLIRSPIRVSerialization
15
15
target_link_libraries (MLIRSPIRVSerialization
16
16
MLIRIR
17
17
MLIRSPIRV
18
- MLIRSupport)
18
+ MLIRSupport
19
+ MLIRTranslation)
Original file line number Diff line number Diff line change 1
1
file (GLOB globbed *.c *.cpp)
2
- add_llvm_library(MLIRStandardOps
2
+ add_llvm_library(MLIRStandardOps STATIC
3
3
${globbed}
4
4
5
5
ADDITIONAL_HEADER_DIRS
6
6
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/StandardOps
7
7
)
8
8
add_dependencies (MLIRStandardOps MLIRStandardOpsIncGen LLVMSupport)
9
- target_link_libraries (MLIRStandardOps LLVMSupport)
9
+ target_link_libraries (MLIRStandardOps MLIRIR MLIRParser LLVMSupport)
Original file line number Diff line number Diff line change @@ -11,11 +11,19 @@ target_link_libraries(MLIRExecutionEngine
11
11
12
12
MLIRLLVMIR
13
13
MLIRTargetLLVMIR
14
+ Linalg1LLVMConversion
15
+ LLVMAggressiveInstCombine
16
+ LLVMAnalysis
14
17
LLVMBitReader
15
18
LLVMBitWriter
16
19
LLVMExecutionEngine
20
+ LLVMInstCombine
17
21
LLVMOrcJIT
22
+ LLVMMC
23
+ LLVMScalarOpts
18
24
LLVMSupport
25
+ LLVMTarget
19
26
LLVMTransformUtils
27
+ LLVMVectorize
20
28
21
29
${outlibs} )
Original file line number Diff line number Diff line change 1
- add_llvm_library(MLIRParser
1
+ add_llvm_library(MLIRParser STATIC
2
2
Lexer.cpp
3
3
Parser.cpp
4
4
Token.cpp
Original file line number Diff line number Diff line change 1
1
file (GLOB globbed *.c *.cpp)
2
- add_llvm_library(MLIRPass
2
+ add_llvm_library(MLIRPass STATIC
3
3
${globbed}
4
4
5
5
ADDITIONAL_HEADER_DIRS
6
6
${MLIR_MAIN_INCLUDE_DIR} /mlir/Pass
7
7
)
8
- add_dependencies (MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
8
+ add_dependencies (MLIRPass MLIRIR LLVMSupport)
9
9
target_link_libraries (MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
Original file line number Diff line number Diff line change @@ -10,21 +10,27 @@ add_llvm_library(MLIRQuantizerSupport
10
10
11
11
ADDITIONAL_HEADER_DIRS
12
12
)
13
- add_dependencies (MLIRQuantizerSupport
14
- MLIRIR
15
- MLIRQuantOps
16
- MLIRSupport
17
- MLIRStandardOps)
13
+ target_link_libraries (
14
+ MLIRQuantizerSupport
15
+ MLIRIR
16
+ MLIRQuantOps
17
+ MLIRSupport
18
+ MLIRStandardOps)
18
19
19
20
# Configurations.
20
21
add_llvm_library(MLIRQuantizerFxpMathConfig
21
22
Configurations /FxpMathConfig.cpp
22
23
23
24
ADDITIONAL_HEADER_DIRS
24
25
)
25
- add_dependencies (MLIRQuantizerFxpMathConfig
26
- MLIRFxpMathOpsIncGen
27
- MLIRQuantizerSupport)
26
+ add_dependencies (
27
+ MLIRQuantizerFxpMathConfig
28
+ MLIRFxpMathOpsIncGen)
29
+ target_link_libraries (
30
+ MLIRQuantizerFxpMathConfig
31
+ MLIRFxpMathOps
32
+ MLIRIR
33
+ MLIRQuantizerSupport)
28
34
29
35
# Transforms.
30
36
add_llvm_library(MLIRQuantizerTransforms
Original file line number Diff line number Diff line change @@ -13,23 +13,23 @@ add_llvm_library(MLIRSupport
13
13
ADDITIONAL_HEADER_DIRS
14
14
${MLIR_MAIN_INCLUDE_DIR} /mlir/Support
15
15
)
16
- target_link_libraries (MLIRSupport LLVMSupport)
16
+ target_link_libraries (MLIRSupport Threads::Threads LLVMSupport)
17
17
18
18
add_llvm_library(MLIROptMain
19
19
MlirOptMain.cpp
20
20
21
21
ADDITIONAL_HEADER_DIRS
22
22
${MLIR_MAIN_INCLUDE_DIR} /mlir/Support
23
23
)
24
- target_link_libraries (MLIROptMain LLVMSupport)
24
+ target_link_libraries (MLIROptMain MLIRIR MLIRParser LLVMSupport)
25
25
26
26
add_llvm_library(MLIRTranslateClParser
27
27
TranslateClParser.cpp
28
28
29
29
ADDITIONAL_HEADER_DIRS
30
30
${MLIR_MAIN_INCLUDE_DIR} /mlir/Support
31
31
)
32
- target_link_libraries (MLIRTranslateClParser LLVMSupport)
32
+ target_link_libraries (MLIRTranslateClParser MLIRTranslation MLIRIR MLIRAnalysis MLIRParser LLVMSupport)
33
33
34
34
add_llvm_library(MLIRJitRunner
35
35
JitRunner.cpp
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ add_dependencies(MLIRTransforms MLIRStandardOpsIncGen)
31
31
target_link_libraries (MLIRTransforms
32
32
MLIRAffineOps
33
33
MLIRAnalysis
34
+ MLIREDSC
34
35
MLIRLoopOps
35
36
MLIRPass
36
37
MLIRTransformUtils
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ add_llvm_library(MLIRTestDialect
15
15
)
16
16
add_dependencies (MLIRTestDialect
17
17
MLIRTestOpsIncGen
18
- MLIRIR
19
- LLVMSupport
20
18
)
21
19
target_link_libraries (MLIRTestDialect
22
20
MLIRDialect
23
21
MLIRIR
22
+ MLIRPass
23
+ MLIRTransforms
24
24
LLVMSupport
25
25
)
Original file line number Diff line number Diff line change @@ -3,17 +3,21 @@ set(LLVM_OPTIONAL_SOURCES
3
3
)
4
4
5
5
set (LIB_LIBS
6
+ Linalg1LLVMConversion
6
7
MLIRAnalysis
8
+ MLIRIR
7
9
MLIRLLVMIR
10
+ MLIROptMain
8
11
MLIRParser
9
12
MLIRPass
10
- MLIRTransforms
13
+ MLIRQuantizerSupport
11
14
MLIRSupport
15
+ MLIRTransforms
12
16
)
13
17
add_llvm_library(MLIRMlirOptLib
14
18
mlir-opt.cpp
15
19
)
16
- target_link_libraries (MLIRMlirOptLib ${LIB_LIBS} )
20
+ target_link_libraries (MLIRMlirOptLib ${LIB_LIBS} MLIRIR )
17
21
18
22
set (LIBS
19
23
MLIRAffineOps
@@ -40,7 +44,6 @@ set(LIBS
40
44
MLIRStandardToLLVM
41
45
MLIRTransforms
42
46
MLIRTestDialect
43
- MLIRTestPass
44
47
MLIRTestTransforms
45
48
MLIRSupport
46
49
MLIRVectorOps
You can’t perform that action at this time.
0 commit comments