File tree Expand file tree Collapse file tree 29 files changed +116
-89
lines changed Expand file tree Collapse file tree 29 files changed +116
-89
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,13 @@ add_toy_chapter(toyc-ch2
9
9
parser/AST.cpp
10
10
mlir/MLIRGen.cpp
11
11
mlir/Dialect.cpp
12
+
13
+ DEPENDS
14
+ ToyCh2OpsIncGen
15
+
12
16
)
13
17
include_directories (include / )
14
18
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
15
- add_dependencies (toyc-ch2 ToyCh2OpsIncGen )
16
19
target_link_libraries (toyc-ch2
17
20
PRIVATE
18
21
MLIRAnalysis
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ add_toy_chapter(toyc-ch3
14
14
mlir/MLIRGen.cpp
15
15
mlir/Dialect.cpp
16
16
mlir/ToyCombine.cpp
17
+
18
+ DEPENDS
19
+ ToyCh3OpsIncGen
20
+ ToyCh3CombineIncGen
17
21
)
18
22
19
- add_dependencies (toyc-ch3 ToyCh3OpsIncGen )
20
- add_dependencies (toyc-ch3 ToyCh3CombineIncGen )
21
23
include_directories (include / )
22
24
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
23
25
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ add_toy_chapter(toyc-ch4
15
15
mlir/Dialect.cpp
16
16
mlir/ShapeInferencePass.cpp
17
17
mlir/ToyCombine.cpp
18
+
19
+ DEPENDS
20
+ ToyCh4OpsIncGen
21
+ ToyCh4ShapeInferenceInterfaceIncGen
22
+ ToyCh4CombineIncGen
23
+ MLIRCallOpInterfacesIncGen
18
24
)
19
25
20
- add_dependencies (toyc-ch4 ToyCh4OpsIncGen )
21
- add_dependencies (toyc-ch4 ToyCh4ShapeInferenceInterfaceIncGen )
22
- add_dependencies (toyc-ch4 ToyCh4CombineIncGen )
23
- add_dependencies (toyc-ch4 MLIRCallOpInterfacesIncGen )
24
26
include_directories (include / )
25
27
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
26
28
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ add_toy_chapter(toyc-ch5
16
16
mlir/LowerToAffineLoops.cpp
17
17
mlir/ShapeInferencePass.cpp
18
18
mlir/ToyCombine.cpp
19
+
20
+ DEPENDS
21
+ ToyCh5ShapeInferenceInterfaceIncGen
22
+ ToyCh5OpsIncGen
23
+ ToyCh5CombineIncGen
24
+ MLIRCallOpInterfacesIncGen
19
25
)
20
26
21
- add_dependencies (toyc-ch5 ToyCh5ShapeInferenceInterfaceIncGen )
22
- add_dependencies (toyc-ch5 ToyCh5OpsIncGen )
23
- add_dependencies (toyc-ch5 ToyCh5CombineIncGen )
24
- add_dependencies (toyc-ch5 MLIRCallOpInterfacesIncGen )
25
27
include_directories (include / )
26
28
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
27
29
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ add_toy_chapter(toyc-ch6
18
18
mlir/LowerToLLVM.cpp
19
19
mlir/ShapeInferencePass.cpp
20
20
mlir/ToyCombine.cpp
21
+
22
+ DEPENDS
23
+ ToyCh6ShapeInferenceInterfaceIncGen
24
+ ToyCh6OpsIncGen
25
+ ToyCh6CombineIncGen
26
+ MLIRCallOpInterfacesIncGen
21
27
)
22
28
23
- add_dependencies (toyc-ch6 ToyCh6ShapeInferenceInterfaceIncGen )
24
- add_dependencies (toyc-ch6 ToyCh6OpsIncGen )
25
- add_dependencies (toyc-ch6 ToyCh6CombineIncGen )
26
- add_dependencies (toyc-ch6 MLIRCallOpInterfacesIncGen )
27
29
include_directories (include / )
28
30
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
29
31
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ add_toy_chapter(toyc-ch7
18
18
mlir/LowerToLLVM.cpp
19
19
mlir/ShapeInferencePass.cpp
20
20
mlir/ToyCombine.cpp
21
+
22
+ DEPENDS
23
+ ToyCh7ShapeInferenceInterfaceIncGen
24
+ ToyCh7OpsIncGen
25
+ ToyCh7CombineIncGen
26
+ MLIRCallOpInterfacesIncGen
21
27
)
22
28
23
- add_dependencies (toyc-ch7 ToyCh7ShapeInferenceInterfaceIncGen )
24
- add_dependencies (toyc-ch7 ToyCh7OpsIncGen )
25
- add_dependencies (toyc-ch7 ToyCh7CombineIncGen )
26
- add_dependencies (toyc-ch7 MLIRCallOpInterfacesIncGen )
27
29
include_directories (include / )
28
30
include_directories (${CMAKE_CURRENT_BINARY_DIR} )
29
31
include_directories (${CMAKE_CURRENT_BINARY_DIR} /include/ )
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ add_llvm_library(MLIRAnalysis
24
24
25
25
ADDITIONAL_HEADER_DIRS
26
26
${MLIR_MAIN_INCLUDE_DIR} /mlir/Analysis
27
- )
28
- add_dependencies ( MLIRAnalysis
27
+
28
+ DEPENDS
29
29
MLIRCallOpInterfacesIncGen
30
30
MLIRControlFlowInterfacesIncGen
31
31
MLIRTypeInferOpInterfaceIncGen
@@ -46,8 +46,8 @@ add_llvm_library(MLIRLoopAnalysis
46
46
47
47
ADDITIONAL_HEADER_DIRS
48
48
${MLIR_MAIN_INCLUDE_DIR} /mlir/Analysis
49
- )
50
- add_dependencies ( MLIRLoopAnalysis
49
+
50
+ DEPENDS
51
51
MLIRCallOpInterfacesIncGen
52
52
MLIRControlFlowInterfacesIncGen
53
53
MLIRTypeInferOpInterfaceIncGen
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ add_public_tablegen_target(MLIRGPUToNVVMIncGen)
4
4
5
5
add_mlir_conversion_library (MLIRGPUtoNVVMTransforms
6
6
LowerGpuOpsToNVVMOps.cpp
7
- )
8
7
9
- add_dependencies (MLIRGPUtoNVVMTransforms
10
- MLIRGPUToNVVMIncGen )
8
+ DEPENDS
9
+ MLIRGPUToNVVMIncGen
10
+ )
11
11
12
12
target_link_libraries (MLIRGPUtoNVVMTransforms
13
13
PUBLIC
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ add_public_tablegen_target(MLIRGPUToSPIRVIncGen)
5
5
add_mlir_conversion_library (MLIRGPUtoSPIRVTransforms
6
6
ConvertGPUToSPIRV.cpp
7
7
ConvertGPUToSPIRVPass.cpp
8
- )
9
8
10
- add_dependencies (MLIRGPUtoSPIRVTransforms
11
- MLIRGPUToSPIRVIncGen )
9
+ DEPENDS
10
+ MLIRGPUToSPIRVIncGen
11
+ )
12
12
13
13
target_link_libraries (MLIRGPUtoSPIRVTransforms
14
14
PUBLIC
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ add_mlir_conversion_library(MLIRStandardToSPIRVTransforms
10
10
ADDITIONAL_HEADER_DIRS
11
11
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/SPIRV
12
12
${MLIR_MAIN_INCLUDE_DIR} /mlir/IR
13
- )
14
13
15
- add_dependencies (MLIRStandardToSPIRVTransforms
16
- MLIRStandardToSPIRVIncGen )
14
+ DEPENDS
15
+ MLIRStandardToSPIRVIncGen
16
+ )
17
17
18
18
target_link_libraries (MLIRStandardToSPIRVTransforms
19
19
PUBLIC
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ add_mlir_dialect_library(MLIRAffineOps
5
5
6
6
ADDITIONAL_HEADER_DIRS
7
7
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/AffineOps
8
- )
9
- add_dependencies ( MLIRAffineOps
8
+
9
+ DEPENDS
10
10
MLIRAffineOpsIncGen
11
11
MLIRLoopLikeInterfaceIncGen
12
12
)
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ add_mlir_dialect_library(MLIRFxpMathOps
4
4
5
5
ADDITIONAL_HEADER_DIRS
6
6
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/FxpMathOps
7
+
8
+ DEPENDS
9
+ MLIRFxpMathOpsIncGen
7
10
)
8
11
9
12
target_link_libraries (MLIRFxpMathOps
@@ -14,6 +17,3 @@ target_link_libraries(MLIRFxpMathOps
14
17
MLIRSupport
15
18
MLIRStandardOps
16
19
)
17
- add_dependencies (MLIRFxpMathOps
18
- MLIRFxpMathOpsIncGen
19
- )
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ add_mlir_dialect_library(MLIRGPU
7
7
8
8
ADDITIONAL_HEADER_DIRS
9
9
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/GPU
10
- )
11
- add_dependencies ( MLIRGPU
10
+
11
+ DEPENDS
12
12
MLIRGPUOpsIncGen
13
13
)
14
14
target_link_libraries (MLIRGPU
@@ -21,4 +21,5 @@ target_link_libraries(MLIRGPU
21
21
MLIRStandardOps
22
22
MLIRSupport
23
23
MLIRTransformUtils
24
- LLVMSupport )
24
+ LLVMSupport
25
+ )
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ add_mlir_dialect_library(MLIRLLVMIR
3
3
4
4
ADDITIONAL_HEADER_DIRS
5
5
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/LLVMIR
6
- )
7
- add_dependencies ( MLIRLLVMIR
6
+
7
+ DEPENDS
8
8
MLIRControlFlowInterfacesIncGen
9
9
MLIRLLVMOpsIncGen
10
10
MLIRLLVMConversionsIncGen
@@ -25,8 +25,8 @@ add_mlir_dialect_library(MLIRNVVMIR
25
25
26
26
ADDITIONAL_HEADER_DIRS
27
27
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/LLVMIR
28
- )
29
- add_dependencies ( MLIRNVVMIR
28
+
29
+ DEPENDS
30
30
MLIRNVVMOpsIncGen
31
31
MLIRNVVMConversionsIncGen
32
32
)
@@ -44,8 +44,8 @@ add_mlir_dialect_library(MLIRROCDLIR
44
44
45
45
ADDITIONAL_HEADER_DIRS
46
46
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/LLVMIR
47
- )
48
- add_dependencies ( MLIRROCDLIR
47
+
48
+ DEPENDS
49
49
MLIRROCDLOpsIncGen
50
50
MLIRROCDLConversionsIncGen
51
51
)
Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ add_mlir_dialect_library(MLIRLinalgTransforms
7
7
8
8
ADDITIONAL_HEADER_DIRS
9
9
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/Linalg
10
+
10
11
DEPENDS
11
12
intrinsics_gen
12
- )
13
-
14
- add_dependencies (MLIRLinalgTransforms
15
13
MLIRLinalgTransformPatternsIncGen
16
14
)
17
15
target_link_libraries (MLIRLinalgTransforms
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ add_mlir_dialect_library(MLIRLoopOps
5
5
6
6
ADDITIONAL_HEADER_DIRS
7
7
${MLIR_MAIN_INCLUDE_DIR} /mlir/LoopOps
8
- )
9
- add_dependencies ( MLIRLoopOps
8
+
9
+ DEPENDS
10
10
MLIRLoopLikeInterfaceIncGen
11
11
MLIRLoopOpsIncGen
12
12
)
Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ add_mlir_dialect_library(MLIROpenMP
3
3
4
4
ADDITIONAL_HEADER_DIRS
5
5
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/OpenMP
6
- )
7
6
8
- add_dependencies (MLIROpenMP MLIROpenMPOpsIncGen )
7
+ DEPENDS
8
+ MLIROpenMPOpsIncGen
9
+ )
9
10
target_link_libraries (MLIROpenMP
10
11
PUBLIC
11
- MLIRIR )
12
+ MLIRIR
13
+ )
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ add_mlir_dialect_library(MLIRQuantOps
11
11
12
12
ADDITIONAL_HEADER_DIRS
13
13
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/QuantOps
14
- )
15
- add_dependencies ( MLIRQuantOps
14
+
15
+ DEPENDS
16
16
MLIRQuantOpsIncGen
17
17
)
18
18
target_link_libraries (MLIRQuantOps
Original file line number Diff line number Diff line change @@ -13,24 +13,23 @@ add_mlir_dialect_library(MLIRSPIRV
13
13
14
14
ADDITIONAL_HEADER_DIRS
15
15
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/SPIRV
16
- )
17
16
18
- add_dependencies (MLIRSPIRV
19
17
MLIRControlFlowInterfacesIncGen
20
18
MLIRSPIRVAvailabilityIncGen
21
19
MLIRSPIRVCanonicalizationIncGen
22
20
MLIRSPIRVEnumAvailabilityIncGen
23
21
MLIRSPIRVEnumsIncGen
24
22
MLIRSPIRVOpsIncGen
25
23
MLIRSPIRVOpUtilsGen
26
- MLIRSPIRVTargetAndABIIncGen )
27
-
24
+ MLIRSPIRVTargetAndABIIncGen
25
+ )
28
26
target_link_libraries (MLIRSPIRV
29
27
PUBLIC
30
28
MLIRIR
31
29
MLIRParser
32
30
MLIRSupport
33
- MLIRTransforms )
31
+ MLIRTransforms
32
+ )
34
33
35
34
add_subdirectory (Serialization )
36
35
add_subdirectory (Transforms )
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ add_mlir_dialect_library(MLIRSPIRVSerialization
6
6
7
7
ADDITIONAL_HEADER_DIRS
8
8
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/SPIRV
9
- )
10
-
11
- add_dependencies (MLIRSPIRVSerialization
12
- MLIRSPIRVSerializationGen )
13
9
10
+ DEPENDS
11
+ MLIRSPIRVSerializationGen
12
+ )
14
13
target_link_libraries (MLIRSPIRVSerialization
15
14
PUBLIC
16
15
MLIRIR
17
16
MLIRSPIRV
18
17
MLIRSupport
19
- MLIRTranslation )
18
+ MLIRTranslation
19
+ )
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ add_mlir_dialect_library(MLIRStandardOps
5
5
6
6
ADDITIONAL_HEADER_DIRS
7
7
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/StandardOps
8
- )
9
- add_dependencies ( MLIRStandardOps
8
+
9
+ DEPENDS
10
10
MLIRCallOpInterfacesIncGen
11
11
MLIRControlFlowInterfacesIncGen
12
12
MLIRStandardOpsIncGen
Original file line number Diff line number Diff line change @@ -6,15 +6,16 @@ add_mlir_dialect_library(MLIRVectorOps
6
6
7
7
ADDITIONAL_HEADER_DIRS
8
8
${MLIR_MAIN_INCLUDE_DIR} /mlir/Dialect/VectorOps
9
- )
10
-
11
- add_dependencies (MLIRVectorOps MLIRVectorOpsIncGen )
12
- add_dependencies (MLIRVectorOps MLIRVectorTransformPatternsIncGen )
13
9
10
+ DEPENDS
11
+ MLIRVectorOpsIncGen
12
+ MLIRVectorTransformPatternsIncGen
13
+ )
14
14
target_link_libraries (MLIRVectorOps
15
15
PUBLIC
16
16
MLIRIR
17
17
MLIRStandardOps
18
18
MLIRAffineOps
19
19
MLIRLoopOps
20
- MLIRLoopAnalysis )
20
+ MLIRLoopAnalysis
21
+ )
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ add_llvm_library(MLIRIR
4
4
5
5
ADDITIONAL_HEADER_DIRS
6
6
${MLIR_MAIN_INCLUDE_DIR} /mlir/IR
7
- )
8
- add_dependencies ( MLIRIR
7
+
8
+ DEPENDS
9
9
MLIRCallOpInterfacesIncGen
10
10
MLIROpAsmInterfacesIncGen
11
11
)
12
12
target_link_libraries (MLIRIR
13
13
PUBLIC
14
14
MLIRSupport
15
- LLVMSupport )
15
+ LLVMSupport
16
+ )
You can’t perform that action at this time.
0 commit comments