LLVMSupport
)
add_dependencies(MLIRAnalysis
- MLIRAffineOps
MLIRCallOpInterfacesIncGen
MLIRTypeInferOpInterfaceIncGen
- MLIRLoopOps
)
add_llvm_library(MLIRLoopAnalysis
LLVMSupport
)
add_dependencies(MLIRLoopAnalysis
- MLIRAffineOps
MLIRCallOpInterfacesIncGen
MLIRTypeInferOpInterfaceIncGen
- MLIRLoopOps
)
LLVMCore
LLVMSupport
)
-add_dependencies(
- MLIRAffineToStandard
-
- MLIRAffineOps
- MLIRStandardOps
- MLIRIR
- LLVMCore
- LLVMSupport
-)
LLVMCore
LLVMSupport
)
-add_dependencies(
- MLIRLoopToStandard
-
- MLIRLoopOps
- MLIRTransforms
- LLVMCore
- LLVMSupport
-)
-set(LIBS
+add_mlir_conversion_library(MLIRLoopsToGPU
+ LoopsToGPU.cpp
+ LoopsToGPUPass.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU
+
+ LINK_LIBS
MLIRAffineOps
MLIRAffineToStandard
MLIRGPU
MLIRTransforms
MLIRTransformUtils
LLVMSupport
-)
-
-add_mlir_conversion_library(MLIRLoopsToGPU
- LoopsToGPU.cpp
- LoopsToGPUPass.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU
-
- LINK_LIBS
- ${LIBS}
)
-add_dependencies(MLIRLoopsToGPU ${LIBS})
LLVMCore
LLVMSupport
)
-add_dependencies(
- MLIRStandardToLLVM
-
- MLIRLLVMIR
- MLIRTransforms
- LLVMCore
- LLVMSupport
-)
LLVMSupport
)
add_dependencies(MLIRAffineOps
-
MLIRAffineOpsIncGen
- MLIREDSC
- MLIRIR
MLIRLoopLikeInterfaceIncGen
- MLIRStandardOps
)
LLVMSupport
)
add_dependencies(MLIRFxpMathOps
- MLIRFxpMathOpsIncGen
- MLIRQuantOps
- MLIRIR
- MLIRPass
- MLIRSupport
- MLIRStandardOps)
+ MLIRFxpMathOpsIncGen
+ )
)
add_dependencies(MLIRGPU
MLIRGPUOpsIncGen
- MLIREDSC
- MLIRIR
- MLIRLLVMIR
- MLIRLoopOps
- MLIRSupport
- MLIRTransformUtils
- LLVMSupport)
+ )
MLIRIR
MLIRSupport
)
-add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
+add_dependencies(MLIRLLVMIR
+ MLIRLLVMOpsIncGen
+ MLIRLLVMConversionsIncGen
+ )
add_mlir_dialect_library(MLIRNVVMIR
IR/NVVMDialect.cpp
LLVMSupport
LLVMCore
)
-add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
+add_dependencies(MLIRNVVMIR
+ MLIRNVVMOpsIncGen
+ MLIRNVVMConversionsIncGen
+ )
+
add_mlir_dialect_library(MLIRROCDLIR
LLVMSupport
MLIRIR
)
-add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
+add_dependencies(MLIRROCDLIR
+ MLIRROCDLOpsIncGen
+ MLIRROCDLConversionsIncGen
+ )
-set(LIBS
- MLIRIR
- MLIRLinalgOps
- MLIRStandardOps
- LLVMSupport
- )
-
-
add_mlir_dialect_library(MLIRLinalgAnalysis
DependenceAnalysis.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
+
DEPENDS
intrinsics_gen
LINK_LIBS
- ${LIBS}
+ MLIRIR
+ MLIRLinalgOps
+ MLIRStandardOps
+ LLVMSupport
)
-
-add_dependencies(MLIRLinalgAnalysis ${LIBS})
-set(LIBS
-
- MLIREDSC
- MLIRIR
- MLIRAffineOps
- MLIRLinalgOps
- MLIRLoopOps
- MLIRStandardOps
- LLVMSupport
- )
-
add_mlir_dialect_library(MLIRLinalgEDSC
Builders.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
+
DEPENDS
intrinsics_gen
LINK_LIBS
- ${LIBS}
+ MLIREDSC
+ MLIRIR
+ MLIRAffineOps
+ MLIRLinalgOps
+ MLIRLoopOps
+ MLIRStandardOps
+ LLVMSupport
)
-
-add_dependencies(MLIRLinalgEDSC ${LIBS})
-set(LIBS
- MLIRIR
- MLIRStandardOps
- MLIRSupport
- LLVMSupport
- )
-
add_mlir_dialect_library(MLIRLinalgOps
LinalgOps.cpp
LinalgTypes.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
+
DEPENDS
intrinsics_gen
MLIRSupport
LLVMSupport
)
-
add_dependencies(MLIRLinalgOps
-
- ${LIBS}
MLIRLinalgOpsIncGen
MLIRLinalgStructuredOpsIncGen
MLIRLinalgStructuredOpsInterfaceIncGen
-set(LIBS
+add_mlir_dialect_library(MLIRLinalgTransforms
+ Fusion.cpp
+ LinalgTransforms.cpp
+ LinalgToLoops.cpp
+ Promotion.cpp
+ Tiling.cpp
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
+ DEPENDS
+ intrinsics_gen
+
+ LINK_LIBS
MLIRAffineOps
MLIRAnalysis
MLIREDSC
MLIRVectorOps
LLVMSupport
)
-
-add_mlir_dialect_library(MLIRLinalgTransforms
- Fusion.cpp
- LinalgTransforms.cpp
- LinalgToLoops.cpp
- Promotion.cpp
- Tiling.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
- DEPENDS
- intrinsics_gen
-
- LINK_LIBS
- ${LIBS}
- )
-
add_dependencies(MLIRLinalgTransforms
-
- ${LIBS}
MLIRLinalgTransformPatternsIncGen
)
-set(LIBS
+add_mlir_dialect_library(MLIRLinalgUtils
+ Utils.cpp
+
+ ADDITIONAL_HEADER_DIRS
+ ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
+
+ DEPENDS
+ intrinsics_gen
+
+ LINK_LIBS
MLIRAffineOps
MLIREDSC
MLIRIR
MLIRTransformUtils
LLVMSupport
)
-
-add_mlir_dialect_library(MLIRLinalgUtils
-
- Utils.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
- DEPENDS
- intrinsics_gen
-
- LINK_LIBS
- ${LIBS})
-
-add_dependencies(MLIRLinalgUtils ${LIBS})
LLVMSupport
)
add_dependencies(MLIRLoopOps
-
- MLIREDSC
MLIRLoopLikeInterfaceIncGen
MLIRLoopOpsIncGen
- MLIRStandardOps
- LLVMSupport
)
add_subdirectory(Transforms)
LLVMSupport
)
add_dependencies(MLIRQuantOps
- MLIRIR
- MLIRPass
- MLIRQuantOpsIncGen
- MLIRSupport
- MLIRStandardOps)
+ MLIRQuantOpsIncGen
+ )
MLIRSupport
LLVMSupport
)
-add_dependencies(MLIRSDBM MLIRIR)
LLVMSupport
)
add_dependencies(MLIRStandardOps
-
MLIRCallOpInterfacesIncGen
- MLIREDSC
- MLIRIR
MLIRStandardOpsIncGen
- LLVMSupport
)
MLIRParser
LLVMSupport
)
-add_dependencies(MLIREDSCInterface MLIRIR)
LLVMSupport
${LLVM_PTHREAD_LIB}
)
-add_dependencies(MLIRIR MLIRCallOpInterfacesIncGen MLIROpAsmInterfacesIncGen MLIRSupport LLVMSupport)
+add_dependencies(MLIRIR
+ MLIRCallOpInterfacesIncGen
+ MLIROpAsmInterfacesIncGen
+ )
MLIRAnalysis
LLVMSupport
)
-add_dependencies(MLIRParser MLIRIR MLIRAnalysis)
LLVMIRReader
LLVMSupport
)
-add_dependencies(MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
LLVMSupport
)
-add_dependencies(MLIRQuantizerSupport
- MLIRIR
- MLIRQuantOps
- MLIRSupport
- MLIRStandardOps)
-
# Configurations.
add_llvm_library(MLIRQuantizerFxpMathConfig
Configurations/FxpMathConfig.cpp
)
add_dependencies(MLIRQuantizerFxpMathConfig
- MLIRFxpMathOpsIncGen
- MLIRQuantizerSupport)
+ MLIRFxpMathOpsIncGen
+ )
# Transforms.
add_llvm_library(MLIRQuantizerTransforms
MLIRTransformUtils
LLVMSupport
)
-add_dependencies(MLIRQuantizerTransforms
- MLIRQuantizerFxpMathConfig
- MLIRQuantizerSupport
- MLIRPass)
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
-add_dependencies(MLIRTestIR
- MLIRTestDialect
- )