forked from OSchip/llvm-project
[MLIR] Move from using target_link_libraries to LINK_LIBS for llvm libraries.
When compiling libLLVM.so, add_llvm_library() manipulates the link libraries being used. This means that when using add_llvm_library(), we need to pass the list of libraries to be linked (using the LINK_LIBS keyword) instead of using the standard target_link_libraries call. This is preparation for properly dealing with creating libMLIR.so as well. Differential Revision: https://reviews.llvm.org/D74864
This commit is contained in:
parent
07aa9ae23b
commit
7a6c689771
|
@ -41,4 +41,9 @@ target_link_libraries(toyc-ch6
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRTargetLLVMIR
|
MLIRTargetLLVMIR
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
LLVMOrcJIT
|
||||||
|
LLVMSupport
|
||||||
|
LLVMX86CodeGen
|
||||||
|
LLVMX86Desc
|
||||||
|
LLVMX86Info
|
||||||
)
|
)
|
||||||
|
|
|
@ -38,6 +38,12 @@ target_link_libraries(toyc-ch7
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRParser
|
MLIRParser
|
||||||
MLIRPass
|
MLIRPass
|
||||||
|
MLIRSupport
|
||||||
MLIRTargetLLVMIR
|
MLIRTargetLLVMIR
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
LLVMOrcJIT
|
||||||
|
LLVMSupport
|
||||||
|
LLVMX86CodeGen
|
||||||
|
LLVMX86Desc
|
||||||
|
LLVMX86Info
|
||||||
)
|
)
|
||||||
|
|
|
@ -22,6 +22,13 @@ add_llvm_library(MLIRAnalysis
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRAnalysis
|
add_dependencies(MLIRAnalysis
|
||||||
MLIRAffineOps
|
MLIRAffineOps
|
||||||
|
@ -30,8 +37,6 @@ add_dependencies(MLIRAnalysis
|
||||||
MLIRLoopOps
|
MLIRLoopOps
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(MLIRAnalysis MLIRAffineOps MLIRLoopOps)
|
|
||||||
|
|
||||||
add_llvm_library(MLIRLoopAnalysis
|
add_llvm_library(MLIRLoopAnalysis
|
||||||
AffineAnalysis.cpp
|
AffineAnalysis.cpp
|
||||||
AffineStructures.cpp
|
AffineStructures.cpp
|
||||||
|
@ -41,6 +46,14 @@ add_llvm_library(MLIRLoopAnalysis
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Analysis
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRLoopAnalysis
|
add_dependencies(MLIRLoopAnalysis
|
||||||
MLIRAffineOps
|
MLIRAffineOps
|
||||||
|
@ -48,5 +61,3 @@ add_dependencies(MLIRLoopAnalysis
|
||||||
MLIRTypeInferOpInterfaceIncGen
|
MLIRTypeInferOpInterfaceIncGen
|
||||||
MLIRLoopOps
|
MLIRLoopOps
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(MLIRLoopAnalysis MLIRAffineOps MLIRLoopOps)
|
|
||||||
|
|
|
@ -3,7 +3,17 @@ add_mlir_conversion_library(MLIRAffineToStandard
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/AffineToStandard
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/AffineToStandard
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRIR
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
add_dependencies(
|
add_dependencies(
|
||||||
MLIRAffineToStandard
|
MLIRAffineToStandard
|
||||||
|
|
||||||
|
@ -13,15 +23,3 @@ add_dependencies(
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(
|
|
||||||
MLIRAffineToStandard
|
|
||||||
|
|
||||||
MLIRAffineOps
|
|
||||||
MLIRLoopOps
|
|
||||||
MLIRPass
|
|
||||||
MLIRStandardOps
|
|
||||||
MLIRTransforms
|
|
||||||
MLIRIR
|
|
||||||
LLVMCore
|
|
||||||
LLVMSupport
|
|
||||||
)
|
|
||||||
|
|
|
@ -10,11 +10,15 @@ if (MLIR_CUDA_CONVERSIONS_ENABLED)
|
||||||
list(APPEND SOURCES "ConvertKernelFuncToCubin.cpp")
|
list(APPEND SOURCES "ConvertKernelFuncToCubin.cpp")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_mlir_conversion_library(MLIRGPUtoCUDATransforms ${SOURCES})
|
add_mlir_conversion_library(MLIRGPUtoCUDATransforms
|
||||||
target_link_libraries(MLIRGPUtoCUDATransforms
|
${SOURCES}
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMNVPTXCodeGen
|
||||||
|
LLVMNVPTXDesc
|
||||||
|
LLVMNVPTXInfo
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
MLIRNVVMIR
|
MLIRNVVMIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRTargetNVVMIR
|
MLIRTargetNVVMIR
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,17 +4,21 @@ add_public_tablegen_target(MLIRGPUToNVVMIncGen)
|
||||||
|
|
||||||
add_mlir_conversion_library(MLIRGPUtoNVVMTransforms
|
add_mlir_conversion_library(MLIRGPUtoNVVMTransforms
|
||||||
LowerGpuOpsToNVVMOps.cpp
|
LowerGpuOpsToNVVMOps.cpp
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
MLIRGPU
|
||||||
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
|
MLIRNVVMIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRStandardToLLVM
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRGPUtoNVVMTransforms
|
add_dependencies(MLIRGPUtoNVVMTransforms
|
||||||
MLIRGPUToNVVMIncGen)
|
MLIRGPUToNVVMIncGen)
|
||||||
|
|
||||||
target_link_libraries(MLIRGPUtoNVVMTransforms
|
|
||||||
LLVMSupport
|
|
||||||
MLIRGPU
|
|
||||||
MLIRLLVMIR
|
|
||||||
MLIRNVVMIR
|
|
||||||
MLIRPass
|
|
||||||
MLIRStandardToLLVM
|
|
||||||
MLIRTransformUtils
|
|
||||||
)
|
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
add_mlir_conversion_library(MLIRGPUtoROCDLTransforms
|
add_mlir_conversion_library(MLIRGPUtoROCDLTransforms
|
||||||
LowerGpuOpsToROCDLOps.cpp
|
LowerGpuOpsToROCDLOps.cpp
|
||||||
)
|
|
||||||
target_link_libraries(MLIRGPUtoROCDLTransforms
|
LINK_LIBS
|
||||||
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
MLIRROCDLIR
|
MLIRROCDLIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,18 +5,19 @@ add_public_tablegen_target(MLIRGPUToSPIRVIncGen)
|
||||||
add_mlir_conversion_library(MLIRGPUtoSPIRVTransforms
|
add_mlir_conversion_library(MLIRGPUtoSPIRVTransforms
|
||||||
ConvertGPUToSPIRV.cpp
|
ConvertGPUToSPIRV.cpp
|
||||||
ConvertGPUToSPIRVPass.cpp
|
ConvertGPUToSPIRVPass.cpp
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(MLIRGPUtoSPIRVTransforms
|
LINK_LIBS
|
||||||
MLIRGPUToSPIRVIncGen)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRGPUtoSPIRVTransforms
|
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
MLIRIR
|
MLIRIR
|
||||||
|
MLIRLoopOps
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
MLIRStandardToSPIRVTransforms
|
MLIRStandardToSPIRVTransforms
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_dependencies(MLIRGPUtoSPIRVTransforms
|
||||||
|
MLIRGPUToSPIRVIncGen)
|
||||||
|
|
|
@ -3,20 +3,19 @@ add_mlir_conversion_library(MLIRLinalgToLLVM
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LinalgToLLVM
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LinalgToLLVM
|
||||||
)
|
|
||||||
set(LIBS
|
LINK_LIBS
|
||||||
MLIRAffineToStandard
|
MLIRAffineToStandard
|
||||||
MLIREDSC
|
MLIREDSC
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
MLIRLoopToStandard
|
MLIRLoopToStandard
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
MLIRVectorToLLVM
|
MLIRVectorToLLVM
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgToLLVM ${LIBS})
|
|
||||||
target_link_libraries(MLIRLinalgToLLVM ${LIBS})
|
|
||||||
|
|
|
@ -5,13 +5,15 @@ add_mlir_conversion_library(MLIRLinalgToSPIRVTransforms
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRLinalgToSPIRVTransforms
|
LINK_LIBS
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
MLIRLinalgUtils
|
MLIRLinalgUtils
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,16 @@ add_mlir_conversion_library(MLIRLoopToStandard
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopToStandard
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopToStandard
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
add_dependencies(
|
add_dependencies(
|
||||||
MLIRLoopToStandard
|
MLIRLoopToStandard
|
||||||
|
|
||||||
|
@ -12,11 +21,3 @@ add_dependencies(
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(
|
|
||||||
MLIRLoopToStandard
|
|
||||||
|
|
||||||
MLIRLoopOps
|
|
||||||
MLIRTransforms
|
|
||||||
LLVMCore
|
|
||||||
LLVMSupport
|
|
||||||
)
|
|
||||||
|
|
|
@ -4,10 +4,12 @@ set(LIBS
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
|
MLIRLoopOps
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -17,6 +19,8 @@ add_mlir_conversion_library(MLIRLoopsToGPU
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/LoopsToGPU
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
${LIBS}
|
||||||
|
)
|
||||||
add_dependencies(MLIRLoopsToGPU ${LIBS})
|
add_dependencies(MLIRLoopsToGPU ${LIBS})
|
||||||
target_link_libraries(MLIRLoopsToGPU ${LIBS})
|
|
||||||
|
|
|
@ -3,7 +3,16 @@ add_mlir_conversion_library(MLIRStandardToLLVM
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/StandardToLLVM
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/StandardToLLVM
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
add_dependencies(
|
add_dependencies(
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
|
|
||||||
|
@ -12,11 +21,3 @@ add_dependencies(
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(
|
|
||||||
MLIRStandardToLLVM
|
|
||||||
|
|
||||||
MLIRLLVMIR
|
|
||||||
MLIRTransforms
|
|
||||||
LLVMCore
|
|
||||||
LLVMSupport
|
|
||||||
)
|
|
||||||
|
|
|
@ -10,17 +10,18 @@ add_mlir_conversion_library(MLIRStandardToSPIRVTransforms
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(MLIRStandardToSPIRVTransforms
|
LINK_LIBS
|
||||||
MLIRStandardToSPIRVIncGen)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRStandardToSPIRVTransforms
|
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
MLIRTransforms
|
||||||
MLIRTransformUtils
|
MLIRTransformUtils
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_dependencies(MLIRStandardToSPIRVTransforms
|
||||||
|
MLIRStandardToSPIRVIncGen)
|
||||||
|
|
|
@ -3,15 +3,16 @@ add_mlir_conversion_library(MLIRVectorToLLVM
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLLVM
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLLVM
|
||||||
)
|
|
||||||
set(LIBS
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
MLIRVectorOps
|
MLIRVectorOps
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRVectorToLLVM ${LIBS})
|
|
||||||
target_link_libraries(MLIRVectorToLLVM ${LIBS})
|
|
||||||
|
|
|
@ -3,14 +3,17 @@ add_mlir_conversion_library(MLIRVectorToLoops
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLoops
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/VectorToLoops
|
||||||
)
|
|
||||||
set(LIBS
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
MLIREDSC
|
MLIREDSC
|
||||||
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRStandardOps
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
|
MLIRVectorOps
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRVectorToLoops ${LIBS})
|
|
||||||
target_link_libraries(MLIRVectorToLoops ${LIBS})
|
|
||||||
|
|
|
@ -5,6 +5,12 @@ add_mlir_dialect_library(MLIRAffineOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/AffineOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/AffineOps
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIREDSC
|
||||||
|
MLIRIR
|
||||||
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRAffineOps
|
add_dependencies(MLIRAffineOps
|
||||||
|
|
||||||
|
@ -14,9 +20,3 @@ add_dependencies(MLIRAffineOps
|
||||||
MLIRLoopLikeInterfaceIncGen
|
MLIRLoopLikeInterfaceIncGen
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRAffineOps
|
|
||||||
|
|
||||||
MLIREDSC
|
|
||||||
MLIRIR
|
|
||||||
MLIRStandardOps
|
|
||||||
)
|
|
||||||
|
|
|
@ -22,5 +22,8 @@ add_llvm_library(MLIRDialect
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRDialect MLIRIR)
|
|
||||||
|
|
|
@ -4,14 +4,16 @@ add_mlir_dialect_library(MLIRFxpMathOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/FxpMathOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/FxpMathOps
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRFxpMathOps
|
LINK_LIBS
|
||||||
MLIRQuantOps
|
MLIRQuantOps
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRFxpMathOps
|
add_dependencies(MLIRFxpMathOps
|
||||||
MLIRFxpMathOpsIncGen
|
MLIRFxpMathOpsIncGen
|
||||||
|
|
|
@ -7,7 +7,18 @@ add_mlir_dialect_library(MLIRGPU
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/GPU
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/GPU
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIREDSC
|
||||||
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
add_dependencies(MLIRGPU
|
add_dependencies(MLIRGPU
|
||||||
MLIRGPUOpsIncGen
|
MLIRGPUOpsIncGen
|
||||||
MLIREDSC
|
MLIREDSC
|
||||||
|
@ -17,13 +28,3 @@ add_dependencies(MLIRGPU
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRTransformUtils
|
MLIRTransformUtils
|
||||||
LLVMSupport)
|
LLVMSupport)
|
||||||
target_link_libraries(MLIRGPU
|
|
||||||
MLIREDSC
|
|
||||||
MLIRIR
|
|
||||||
MLIRLLVMIR
|
|
||||||
MLIRLoopOps
|
|
||||||
MLIRPass
|
|
||||||
MLIRStandardOps
|
|
||||||
MLIRSupport
|
|
||||||
MLIRTransformUtils
|
|
||||||
LLVMSupport)
|
|
||||||
|
|
|
@ -3,24 +3,42 @@ add_mlir_dialect_library(MLIRLLVMIR
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMAsmParser
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
MLIRIR
|
||||||
|
MLIRSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
add_dependencies(MLIRLLVMIR MLIRLLVMOpsIncGen MLIRLLVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
||||||
target_link_libraries(MLIRLLVMIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR)
|
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRNVVMIR
|
add_mlir_dialect_library(MLIRNVVMIR
|
||||||
IR/NVVMDialect.cpp
|
IR/NVVMDialect.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMAsmParser
|
||||||
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
|
LLVMSupport
|
||||||
|
LLVMCore
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
add_dependencies(MLIRNVVMIR MLIRNVVMOpsIncGen MLIRNVVMConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
||||||
target_link_libraries(MLIRNVVMIR LLVMAsmParser MLIRIR MLIRLLVMIR LLVMSupport LLVMCore)
|
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRROCDLIR
|
add_mlir_dialect_library(MLIRROCDLIR
|
||||||
IR/ROCDLDialect.cpp
|
IR/ROCDLDialect.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMAsmParser
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
|
MLIRIR
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
add_dependencies(MLIRROCDLIR MLIRROCDLOpsIncGen MLIRROCDLConversionsIncGen LLVMAsmParser LLVMCore LLVMSupport)
|
||||||
target_link_libraries(MLIRROCDLIR LLVMAsmParser LLVMCore LLVMSupport MLIRIR)
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
set(LIBS
|
set(LIBS
|
||||||
|
MLIRIR
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +13,9 @@ add_mlir_dialect_library(MLIRLinalgAnalysis
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
${LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgAnalysis ${LIBS})
|
add_dependencies(MLIRLinalgAnalysis ${LIBS})
|
||||||
target_link_libraries(MLIRLinalgAnalysis ${LIBS})
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ set(LIBS
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
MLIRLoopOps
|
MLIRLoopOps
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRLinalgEDSC
|
add_mlir_dialect_library(MLIRLinalgEDSC
|
||||||
|
@ -15,7 +16,9 @@ add_mlir_dialect_library(MLIRLinalgEDSC
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
${LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgEDSC ${LIBS})
|
add_dependencies(MLIRLinalgEDSC ${LIBS})
|
||||||
target_link_libraries(MLIRLinalgEDSC ${LIBS})
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
set(LIBS
|
set(LIBS
|
||||||
|
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRLinalgOps
|
add_mlir_dialect_library(MLIRLinalgOps
|
||||||
|
@ -12,6 +13,12 @@ add_mlir_dialect_library(MLIRLinalgOps
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgOps
|
add_dependencies(MLIRLinalgOps
|
||||||
|
@ -21,4 +28,3 @@ add_dependencies(MLIRLinalgOps
|
||||||
MLIRLinalgStructuredOpsIncGen
|
MLIRLinalgStructuredOpsIncGen
|
||||||
MLIRLinalgStructuredOpsInterfaceIncGen
|
MLIRLinalgStructuredOpsInterfaceIncGen
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRLinalgOps ${LIBS})
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ set(LIBS
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
MLIRTransformUtils
|
MLIRTransformUtils
|
||||||
MLIRVectorOps
|
MLIRVectorOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRLinalgTransforms
|
add_mlir_dialect_library(MLIRLinalgTransforms
|
||||||
|
@ -27,6 +28,9 @@ add_mlir_dialect_library(MLIRLinalgTransforms
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
${LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgTransforms
|
add_dependencies(MLIRLinalgTransforms
|
||||||
|
@ -34,4 +38,3 @@ add_dependencies(MLIRLinalgTransforms
|
||||||
${LIBS}
|
${LIBS}
|
||||||
MLIRLinalgTransformPatternsIncGen
|
MLIRLinalgTransformPatternsIncGen
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRLinalgTransforms ${LIBS})
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
set(LIBS
|
set(LIBS
|
||||||
|
MLIRAffineOps
|
||||||
MLIREDSC
|
MLIREDSC
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLinalgOps
|
MLIRLinalgOps
|
||||||
|
@ -7,6 +7,7 @@ set(LIBS
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
MLIRTransformUtils
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_mlir_dialect_library(MLIRLinalgUtils
|
add_mlir_dialect_library(MLIRLinalgUtils
|
||||||
|
@ -17,7 +18,8 @@ add_mlir_dialect_library(MLIRLinalgUtils
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Linalg
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
${LIBS})
|
||||||
|
|
||||||
add_dependencies(MLIRLinalgUtils ${LIBS})
|
add_dependencies(MLIRLinalgUtils ${LIBS})
|
||||||
target_link_libraries(MLIRLinalgUtils ${LIBS})
|
|
||||||
|
|
|
@ -5,6 +5,12 @@ add_mlir_dialect_library(MLIRLoopOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/LoopOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/LoopOps
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIREDSC
|
||||||
|
MLIRIR
|
||||||
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRLoopOps
|
add_dependencies(MLIRLoopOps
|
||||||
|
|
||||||
|
@ -14,12 +20,5 @@ add_dependencies(MLIRLoopOps
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRLoopOps
|
|
||||||
|
|
||||||
MLIREDSC
|
|
||||||
MLIRIR
|
|
||||||
MLIRStandardOps
|
|
||||||
LLVMSupport
|
|
||||||
)
|
|
||||||
|
|
||||||
add_subdirectory(Transforms)
|
add_subdirectory(Transforms)
|
||||||
|
|
|
@ -3,7 +3,11 @@ add_mlir_dialect_library(MLIROpenMP
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenMP
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/OpenMP
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIROpenMP MLIROpenMPOpsIncGen)
|
add_dependencies(MLIROpenMP MLIROpenMPOpsIncGen)
|
||||||
target_link_libraries(MLIROpenMP MLIRIR)
|
|
||||||
|
|
|
@ -11,6 +11,14 @@ add_mlir_dialect_library(MLIRQuantOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/QuantOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/QuantOps
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRSupport
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRQuantOps
|
add_dependencies(MLIRQuantOps
|
||||||
MLIRIR
|
MLIRIR
|
||||||
|
@ -18,11 +26,3 @@ add_dependencies(MLIRQuantOps
|
||||||
MLIRQuantOpsIncGen
|
MLIRQuantOpsIncGen
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRStandardOps)
|
MLIRStandardOps)
|
||||||
|
|
||||||
target_link_libraries(MLIRQuantOps
|
|
||||||
MLIRIR
|
|
||||||
MLIRPass
|
|
||||||
MLIRSupport
|
|
||||||
MLIRStandardOps
|
|
||||||
MLIRTransformUtils
|
|
||||||
)
|
|
||||||
|
|
|
@ -4,6 +4,10 @@ add_mlir_dialect_library(MLIRSDBM
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SDBM
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SDBM
|
||||||
)
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
add_dependencies(MLIRSDBM MLIRIR)
|
add_dependencies(MLIRSDBM MLIRIR)
|
||||||
target_link_libraries(MLIRSDBM MLIRIR)
|
|
||||||
|
|
|
@ -13,6 +13,14 @@ add_mlir_dialect_library(MLIRSPIRV
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRParser
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTransforms
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRSPIRV
|
add_dependencies(MLIRSPIRV
|
||||||
|
@ -24,11 +32,6 @@ add_dependencies(MLIRSPIRV
|
||||||
MLIRSPIRVOpUtilsGen
|
MLIRSPIRVOpUtilsGen
|
||||||
MLIRSPIRVTargetAndABIIncGen)
|
MLIRSPIRVTargetAndABIIncGen)
|
||||||
|
|
||||||
target_link_libraries(MLIRSPIRV
|
|
||||||
MLIRIR
|
|
||||||
MLIRParser
|
|
||||||
MLIRSupport
|
|
||||||
MLIRTransforms)
|
|
||||||
|
|
||||||
add_subdirectory(Serialization)
|
add_subdirectory(Serialization)
|
||||||
add_subdirectory(Transforms)
|
add_subdirectory(Transforms)
|
||||||
|
|
|
@ -6,13 +6,15 @@ add_mlir_dialect_library(MLIRSPIRVSerialization
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRParser
|
||||||
|
MLIRSPIRV
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTranslation
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRSPIRVSerialization
|
add_dependencies(MLIRSPIRVSerialization
|
||||||
MLIRSPIRVSerializationGen)
|
MLIRSPIRVSerializationGen)
|
||||||
|
|
||||||
target_link_libraries(MLIRSPIRVSerialization
|
|
||||||
MLIRIR
|
|
||||||
MLIRSPIRV
|
|
||||||
MLIRSupport
|
|
||||||
MLIRTranslation)
|
|
||||||
|
|
|
@ -4,9 +4,13 @@ add_mlir_dialect_library(MLIRSPIRVTransforms
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRSPIRVTransforms
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,6 +5,13 @@ add_mlir_dialect_library(MLIRStandardOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/StandardOps
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIREDSC
|
||||||
|
MLIRIR
|
||||||
|
MLIRSupport
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRStandardOps
|
add_dependencies(MLIRStandardOps
|
||||||
|
|
||||||
|
@ -14,9 +21,3 @@ add_dependencies(MLIRStandardOps
|
||||||
MLIRStandardOpsIncGen
|
MLIRStandardOpsIncGen
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRStandardOps
|
|
||||||
|
|
||||||
MLIREDSC
|
|
||||||
MLIRIR
|
|
||||||
LLVMSupport
|
|
||||||
)
|
|
||||||
|
|
|
@ -6,9 +6,15 @@ add_mlir_dialect_library(MLIRVectorOps
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/VectorOps
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/VectorOps
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRLoopAnalysis
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRVectorOps MLIRVectorOpsIncGen)
|
add_dependencies(MLIRVectorOps MLIRVectorOpsIncGen)
|
||||||
add_dependencies(MLIRVectorOps MLIRVectorTransformPatternsIncGen)
|
add_dependencies(MLIRVectorOps MLIRVectorTransformPatternsIncGen)
|
||||||
|
|
||||||
target_link_libraries(MLIRVectorOps MLIRIR MLIRStandardOps MLIRAffineOps MLIRLoopOps MLIRLoopAnalysis)
|
|
||||||
|
|
|
@ -8,12 +8,11 @@ add_llvm_library(MLIREDSC
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
|
||||||
)
|
|
||||||
target_link_libraries(MLIREDSC
|
|
||||||
PUBLIC
|
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_llvm_library(MLIREDSCInterface
|
add_llvm_library(MLIREDSCInterface
|
||||||
|
@ -21,11 +20,11 @@ add_llvm_library(MLIREDSCInterface
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/EDSC
|
||||||
)
|
|
||||||
add_dependencies(MLIREDSCInterface MLIRIR)
|
LINK_LIBS
|
||||||
target_link_libraries(MLIREDSCInterface
|
|
||||||
PUBLIC
|
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
MLIRParser
|
MLIRParser
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
add_dependencies(MLIREDSCInterface MLIRIR)
|
||||||
|
|
|
@ -12,13 +12,15 @@ add_llvm_library(MLIRExecutionEngine
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/ExecutionEngine
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/ExecutionEngine
|
||||||
)
|
|
||||||
target_link_libraries(MLIRExecutionEngine
|
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
|
MLIRSupport
|
||||||
MLIRTargetLLVMIR
|
MLIRTargetLLVMIR
|
||||||
LLVMBitReader
|
LLVMBitReader
|
||||||
LLVMBitWriter
|
LLVMBitWriter
|
||||||
|
LLVMCore
|
||||||
LLVMExecutionEngine
|
LLVMExecutionEngine
|
||||||
LLVMObject
|
LLVMObject
|
||||||
LLVMOrcJIT
|
LLVMOrcJIT
|
||||||
|
@ -32,8 +34,8 @@ target_link_libraries(MLIRExecutionEngine
|
||||||
LLVMTarget
|
LLVMTarget
|
||||||
LLVMVectorize
|
LLVMVectorize
|
||||||
LLVMTransformUtils
|
LLVMTransformUtils
|
||||||
|
${outlibs}
|
||||||
${outlibs})
|
)
|
||||||
|
|
||||||
add_llvm_library(mlir_c_runner_utils SHARED CRunnerUtils.cpp)
|
add_llvm_library(mlir_c_runner_utils SHARED CRunnerUtils.cpp)
|
||||||
target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS)
|
target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS)
|
||||||
|
|
|
@ -4,6 +4,10 @@ add_llvm_library(MLIRIR
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
|
${LLVM_PTHREAD_LIB}
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRIR MLIRCallOpInterfacesIncGen MLIROpAsmInterfacesIncGen MLIRSupport LLVMSupport)
|
add_dependencies(MLIRIR MLIRCallOpInterfacesIncGen MLIROpAsmInterfacesIncGen MLIRSupport LLVMSupport)
|
||||||
target_link_libraries(MLIRIR MLIRSupport LLVMSupport)
|
|
||||||
|
|
|
@ -5,6 +5,10 @@ add_llvm_library(MLIRParser
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Parser
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Parser
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRAnalysis
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRParser MLIRIR MLIRAnalysis)
|
add_dependencies(MLIRParser MLIRIR MLIRAnalysis)
|
||||||
target_link_libraries(MLIRParser MLIRIR MLIRAnalysis)
|
|
||||||
|
|
|
@ -4,6 +4,12 @@ add_llvm_library(MLIRPass
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAnalysis
|
||||||
|
MLIRIR
|
||||||
|
MLIRSupport
|
||||||
|
LLVMIRReader
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
add_dependencies(MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
|
add_dependencies(MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
|
||||||
target_link_libraries(MLIRPass MLIRAnalysis MLIRIR LLVMSupport)
|
|
||||||
|
|
|
@ -9,14 +9,8 @@ add_llvm_library(MLIRQuantizerSupport
|
||||||
Support/UniformSolvers.cpp
|
Support/UniformSolvers.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(MLIRQuantizerSupport
|
LINK_LIBS
|
||||||
MLIRIR
|
|
||||||
MLIRQuantOps
|
|
||||||
MLIRSupport
|
|
||||||
MLIRStandardOps)
|
|
||||||
target_link_libraries(MLIRQuantizerSupport
|
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRQuantOps
|
MLIRQuantOps
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
@ -24,22 +18,31 @@ target_link_libraries(MLIRQuantizerSupport
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_dependencies(MLIRQuantizerSupport
|
||||||
|
MLIRIR
|
||||||
|
MLIRQuantOps
|
||||||
|
MLIRSupport
|
||||||
|
MLIRStandardOps)
|
||||||
|
|
||||||
# Configurations.
|
# Configurations.
|
||||||
add_llvm_library(MLIRQuantizerFxpMathConfig
|
add_llvm_library(MLIRQuantizerFxpMathConfig
|
||||||
Configurations/FxpMathConfig.cpp
|
Configurations/FxpMathConfig.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRFxpMathOps
|
||||||
|
MLIRQuantOps
|
||||||
|
MLIRQuantizerSupport
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRQuantizerFxpMathConfig
|
add_dependencies(MLIRQuantizerFxpMathConfig
|
||||||
MLIRFxpMathOpsIncGen
|
MLIRFxpMathOpsIncGen
|
||||||
MLIRQuantizerSupport)
|
MLIRQuantizerSupport)
|
||||||
target_link_libraries(MLIRQuantizerFxpMathConfig
|
|
||||||
MLIRIR
|
|
||||||
MLIRFxpMathOps
|
|
||||||
MLIRQuantOps
|
|
||||||
MLIRQuantizerSupport
|
|
||||||
)
|
|
||||||
|
|
||||||
# Transforms.
|
# Transforms.
|
||||||
add_llvm_library(MLIRQuantizerTransforms
|
add_llvm_library(MLIRQuantizerTransforms
|
||||||
|
@ -48,16 +51,18 @@ add_llvm_library(MLIRQuantizerTransforms
|
||||||
Transforms/RemoveInstrumentationPass.cpp
|
Transforms/RemoveInstrumentationPass.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
)
|
|
||||||
add_dependencies(MLIRQuantizerTransforms
|
LINK_LIBS
|
||||||
MLIRQuantizerFxpMathConfig
|
|
||||||
MLIRQuantizerSupport
|
|
||||||
MLIRPass)
|
|
||||||
target_link_libraries(MLIRQuantizerTransforms
|
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRQuantizerFxpMathConfig
|
MLIRQuantizerFxpMathConfig
|
||||||
MLIRQuantizerSupport
|
MLIRQuantizerSupport
|
||||||
MLIRQuantOps
|
MLIRQuantOps
|
||||||
MLIRPass
|
MLIRPass
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
add_dependencies(MLIRQuantizerTransforms
|
||||||
|
MLIRQuantizerFxpMathConfig
|
||||||
|
MLIRQuantizerSupport
|
||||||
|
MLIRPass)
|
||||||
|
|
|
@ -14,20 +14,24 @@ add_llvm_library(MLIRSupport
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMSupport
|
||||||
|
${LLVM_PTHREAD_LIB}
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRSupport LLVMSupport ${LLVM_PTHREAD_LIB})
|
|
||||||
|
|
||||||
add_llvm_library(MLIROptLib
|
add_llvm_library(MLIROptLib
|
||||||
MlirOptMain.cpp
|
MlirOptMain.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
||||||
)
|
|
||||||
target_link_libraries(MLIROptLib
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRParser
|
MLIRParser
|
||||||
LLVMSupport
|
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_llvm_library(MLIRTranslateClParser
|
add_llvm_library(MLIRTranslateClParser
|
||||||
|
@ -35,15 +39,22 @@ add_llvm_library(MLIRTranslateClParser
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Support
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMSupport
|
||||||
|
MLIRAnalysis
|
||||||
|
MLIRIR
|
||||||
|
MLIRTranslation
|
||||||
|
MLIRParser
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRTranslateClParser LLVMSupport MLIRIR MLIRTranslation MLIRParser)
|
|
||||||
|
|
||||||
add_llvm_library(MLIRJitRunner
|
add_llvm_library(MLIRJitRunner
|
||||||
JitRunner.cpp
|
JitRunner.cpp
|
||||||
)
|
|
||||||
target_link_libraries(MLIRJitRunner PRIVATE
|
LINK_LIBS
|
||||||
MLIRExecutionEngine
|
MLIRExecutionEngine
|
||||||
MLIRIR
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
MLIRParser
|
MLIRParser
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
MLIRTargetLLVMIR
|
MLIRTargetLLVMIR
|
||||||
|
@ -51,5 +62,9 @@ target_link_libraries(MLIRJitRunner PRIVATE
|
||||||
MLIRStandardToLLVM
|
MLIRStandardToLLVM
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
LLVMCore
|
LLVMCore
|
||||||
|
LLVMOrcJIT
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
LLVMX86CodeGen
|
||||||
|
LLVMX86Desc
|
||||||
|
LLVMX86Info
|
||||||
|
)
|
||||||
|
|
|
@ -15,5 +15,8 @@ add_llvm_library(LLVMMLIRTableGen
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/TableGen
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/TableGen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMSupport
|
||||||
|
LLVMTableGen
|
||||||
)
|
)
|
||||||
target_link_libraries(LLVMMLIRTableGen LLVMSupport LLVMTableGen)
|
|
||||||
|
|
|
@ -4,47 +4,74 @@ add_llvm_library(MLIRTargetLLVMIRModuleTranslation
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
||||||
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRLLVMIR
|
||||||
|
LLVMCore
|
||||||
|
LLVMIRReader
|
||||||
|
LLVMSupport
|
||||||
|
LLVMTransformUtils
|
||||||
|
MLIRIR
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTranslation
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRTargetLLVMIRModuleTranslation
|
|
||||||
MLIRLLVMIR LLVMCore LLVMIRReader LLVMSupport LLVMTransformUtils
|
|
||||||
MLIRTranslation)
|
|
||||||
add_llvm_library(MLIRTargetLLVMIR
|
add_llvm_library(MLIRTargetLLVMIR
|
||||||
LLVMIR/ConvertFromLLVMIR.cpp
|
LLVMIR/ConvertFromLLVMIR.cpp
|
||||||
LLVMIR/ConvertToLLVMIR.cpp
|
LLVMIR/ConvertToLLVMIR.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRLLVMIR
|
||||||
|
MLIRSupport
|
||||||
|
MLIRTargetLLVMIRModuleTranslation
|
||||||
|
MLIRTranslation
|
||||||
|
LLVMCore
|
||||||
|
LLVMIRReader
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRTargetLLVMIR MLIRTargetLLVMIRModuleTranslation)
|
|
||||||
add_llvm_library(MLIRTargetNVVMIR
|
add_llvm_library(MLIRTargetNVVMIR
|
||||||
LLVMIR/ConvertToNVVMIR.cpp
|
LLVMIR/ConvertToNVVMIR.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
||||||
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
)
|
|
||||||
target_link_libraries(MLIRTargetNVVMIR
|
LINK_LIBS
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
MLIRNVVMIR
|
MLIRNVVMIR
|
||||||
MLIRTargetLLVMIRModuleTranslation
|
MLIRTargetLLVMIRModuleTranslation
|
||||||
|
MLIRTranslation
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_llvm_library(MLIRTargetROCDLIR
|
add_llvm_library(MLIRTargetROCDLIR
|
||||||
LLVMIR/ConvertToROCDLIR.cpp
|
LLVMIR/ConvertToROCDLIR.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
||||||
|
|
||||||
DEPENDS
|
DEPENDS
|
||||||
intrinsics_gen
|
intrinsics_gen
|
||||||
)
|
|
||||||
target_link_libraries(MLIRTargetROCDLIR
|
LINK_LIBS
|
||||||
MLIRGPU
|
MLIRGPU
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLLVMIR
|
MLIRLLVMIR
|
||||||
MLIRROCDLIR
|
MLIRROCDLIR
|
||||||
MLIRTargetLLVMIRModuleTranslation
|
MLIRTargetLLVMIRModuleTranslation
|
||||||
|
MLIRTranslation
|
||||||
|
LLVMCore
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,16 +26,21 @@ add_llvm_library(MLIRTransforms
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRAnalysis
|
||||||
|
MLIRIR
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRLoopAnalysis
|
||||||
|
MLIRPass
|
||||||
|
MLIRSupport
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTransformUtils
|
||||||
|
MLIRVectorOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
add_dependencies(MLIRTransforms
|
add_dependencies(MLIRTransforms
|
||||||
MLIRLoopLikeInterfaceIncGen
|
MLIRLoopLikeInterfaceIncGen
|
||||||
MLIRStandardOpsIncGen)
|
MLIRStandardOpsIncGen)
|
||||||
target_link_libraries(MLIRTransforms
|
|
||||||
MLIRAffineOps
|
|
||||||
MLIRAnalysis
|
|
||||||
MLIRLoopOps
|
|
||||||
MLIRPass
|
|
||||||
MLIRTransformUtils
|
|
||||||
MLIRVectorOps
|
|
||||||
)
|
|
||||||
|
|
|
@ -9,14 +9,15 @@ add_llvm_library(MLIRTransformUtils
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
||||||
)
|
|
||||||
|
|
||||||
add_dependencies(MLIRTransformUtils MLIRStandardOpsIncGen)
|
LINK_LIBS
|
||||||
target_link_libraries(MLIRTransformUtils
|
|
||||||
MLIRAffineOps
|
MLIRAffineOps
|
||||||
MLIRAnalysis
|
MLIRAnalysis
|
||||||
|
MLIRIR
|
||||||
MLIRLoopAnalysis
|
MLIRLoopAnalysis
|
||||||
MLIRLoopOps
|
MLIRLoopOps
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
add_dependencies(MLIRTransformUtils MLIRStandardOpsIncGen)
|
||||||
|
|
|
@ -3,5 +3,7 @@ add_llvm_library(MLIRTranslation
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Translation
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Translation
|
||||||
)
|
|
||||||
target_link_libraries(MLIRTranslation LLVMSupport)
|
LINK_LIBS
|
||||||
|
LLVMSupport
|
||||||
|
)
|
||||||
|
|
|
@ -15,6 +15,7 @@ target_link_libraries(mlir-edsc-builder-api-test
|
||||||
MLIRStandardOps
|
MLIRStandardOps
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
MLIRVectorOps
|
MLIRVectorOps
|
||||||
|
MLIRTransformUtils
|
||||||
LLVMCore
|
LLVMCore
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,11 +4,13 @@ add_llvm_library(MLIRSPIRVTestPasses
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(MLIRSPIRVTestPasses PRIVATE
|
LINK_LIBS
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
|
MLIRTransforms
|
||||||
|
MLIRTransformUtils
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,12 +4,15 @@ add_llvm_library(MLIRTestIR
|
||||||
TestSymbolUses.cpp
|
TestSymbolUses.cpp
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../TestDialect)
|
||||||
add_dependencies(MLIRTestIR
|
add_dependencies(MLIRTestIR
|
||||||
MLIRTestDialect
|
MLIRTestDialect
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRTestIR
|
|
||||||
MLIRPass
|
|
||||||
)
|
|
||||||
|
|
|
@ -3,8 +3,9 @@ add_llvm_library(MLIRTestPass
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Pass
|
||||||
)
|
|
||||||
target_link_libraries(MLIRTestPass
|
LINK_LIBS
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRPass
|
MLIRPass
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
|
@ -14,12 +14,9 @@ add_public_tablegen_target(MLIRTestOpsIncGen)
|
||||||
add_llvm_library(MLIRTestDialect
|
add_llvm_library(MLIRTestDialect
|
||||||
TestDialect.cpp
|
TestDialect.cpp
|
||||||
TestPatterns.cpp
|
TestPatterns.cpp
|
||||||
)
|
|
||||||
add_dependencies(MLIRTestDialect
|
LINK_LIBS
|
||||||
MLIRTestOpsIncGen
|
MLIRAnalysis
|
||||||
MLIRTypeInferOpInterfaceIncGen
|
|
||||||
)
|
|
||||||
target_link_libraries(MLIRTestDialect
|
|
||||||
MLIRDialect
|
MLIRDialect
|
||||||
MLIRIR
|
MLIRIR
|
||||||
MLIRLinalgTransforms
|
MLIRLinalgTransforms
|
||||||
|
@ -28,3 +25,7 @@ target_link_libraries(MLIRTestDialect
|
||||||
MLIRTransformUtils
|
MLIRTransformUtils
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
add_dependencies(MLIRTestDialect
|
||||||
|
MLIRTestOpsIncGen
|
||||||
|
MLIRTypeInferOpInterfaceIncGen
|
||||||
|
)
|
||||||
|
|
|
@ -22,6 +22,25 @@ add_llvm_library(MLIRTestTransforms
|
||||||
|
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
MLIRAffineOps
|
||||||
|
MLIRAnalysis
|
||||||
|
MLIRLoopAnalysis
|
||||||
|
MLIREDSC
|
||||||
|
MLIRGPU
|
||||||
|
MLIRIR
|
||||||
|
MLIRLinalgOps
|
||||||
|
MLIRLinalgTransforms
|
||||||
|
MLIRLoopOps
|
||||||
|
MLIRGPU
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRTestDialect
|
||||||
|
MLIRTransformUtils
|
||||||
|
MLIRVectorToLoops
|
||||||
|
MLIRVectorOps
|
||||||
|
LLVMSupport
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../TestDialect)
|
||||||
|
@ -31,18 +50,3 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/../DeclarativeTransforms)
|
||||||
add_dependencies(MLIRTestTransforms MLIRStandardOpsIncGen)
|
add_dependencies(MLIRTestTransforms MLIRStandardOpsIncGen)
|
||||||
add_dependencies(MLIRTestTransforms MLIRTestLinalgTransformPatternsIncGen)
|
add_dependencies(MLIRTestTransforms MLIRTestLinalgTransformPatternsIncGen)
|
||||||
add_dependencies(MLIRTestTransforms MLIRTestVectorTransformPatternsIncGen)
|
add_dependencies(MLIRTestTransforms MLIRTestVectorTransformPatternsIncGen)
|
||||||
target_link_libraries(MLIRTestTransforms
|
|
||||||
MLIRAffineOps
|
|
||||||
MLIRAnalysis
|
|
||||||
MLIREDSC
|
|
||||||
MLIRGPU
|
|
||||||
MLIRLinalgOps
|
|
||||||
MLIRLinalgTransforms
|
|
||||||
MLIRLoopOps
|
|
||||||
MLIRGPU
|
|
||||||
MLIRPass
|
|
||||||
MLIRTestDialect
|
|
||||||
MLIRTransformUtils
|
|
||||||
MLIRVectorToLoops
|
|
||||||
MLIRVectorOps
|
|
||||||
)
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ set(LLVM_OPTIONAL_SOURCES
|
||||||
add_llvm_library(cblas SHARED cblas.cpp)
|
add_llvm_library(cblas SHARED cblas.cpp)
|
||||||
target_compile_definitions(cblas PRIVATE cblas_EXPORTS)
|
target_compile_definitions(cblas PRIVATE cblas_EXPORTS)
|
||||||
|
|
||||||
add_llvm_library(cblas_interface SHARED cblas_interface.cpp)
|
add_llvm_library(cblas_interface SHARED cblas_interface.cpp
|
||||||
target_link_libraries(cblas_interface PRIVATE cblas)
|
LINK_LIBS
|
||||||
|
cblas
|
||||||
|
)
|
||||||
target_compile_definitions(cblas_interface PRIVATE cblas_interface_EXPORTS)
|
target_compile_definitions(cblas_interface PRIVATE cblas_interface_EXPORTS)
|
||||||
|
|
||||||
|
|
|
@ -25,15 +25,15 @@ if(MLIR_CUDA_RUNNER_ENABLED)
|
||||||
|
|
||||||
add_llvm_library(cuda-runtime-wrappers SHARED
|
add_llvm_library(cuda-runtime-wrappers SHARED
|
||||||
cuda-runtime-wrappers.cpp
|
cuda-runtime-wrappers.cpp
|
||||||
|
|
||||||
|
LINK_LIBS
|
||||||
|
LLVMSupport
|
||||||
|
${CUDA_RUNTIME_LIBRARY}
|
||||||
)
|
)
|
||||||
target_include_directories(cuda-runtime-wrappers
|
target_include_directories(cuda-runtime-wrappers
|
||||||
PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}
|
PRIVATE ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}
|
||||||
LLVMSupport
|
LLVMSupport
|
||||||
)
|
)
|
||||||
target_link_libraries(cuda-runtime-wrappers
|
|
||||||
LLVMSupport
|
|
||||||
${CUDA_RUNTIME_LIBRARY}
|
|
||||||
)
|
|
||||||
|
|
||||||
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
|
||||||
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
|
||||||
|
|
|
@ -10,11 +10,12 @@ set(LIB_LIBS
|
||||||
MLIRPass
|
MLIRPass
|
||||||
MLIRTransforms
|
MLIRTransforms
|
||||||
MLIRSupport
|
MLIRSupport
|
||||||
)
|
LLVMSupport
|
||||||
|
)
|
||||||
add_llvm_library(MLIRMlirOptMain
|
add_llvm_library(MLIRMlirOptMain
|
||||||
mlir-opt.cpp
|
mlir-opt.cpp
|
||||||
)
|
|
||||||
target_link_libraries(MLIRMlirOptMain
|
LINK_LIBS
|
||||||
${LIB_LIBS}
|
${LIB_LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,11 @@ add_mlir_unittest(MLIRSPIRVTests
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRSPIRVTests
|
target_link_libraries(MLIRSPIRVTests
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
MLIRIR
|
||||||
MLIRSPIRV
|
MLIRSPIRV
|
||||||
MLIRSPIRVSerialization)
|
MLIRSPIRVSerialization
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport)
|
||||||
|
|
||||||
whole_archive_link(MLIRSPIRVTests MLIRSPIRV)
|
whole_archive_link(MLIRSPIRVTests MLIRSPIRV)
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,7 @@ add_mlir_unittest(MLIRPassTests
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRPassTests
|
target_link_libraries(MLIRPassTests
|
||||||
PRIVATE
|
PRIVATE
|
||||||
MLIRPass)
|
MLIRIR
|
||||||
|
MLIRPass
|
||||||
|
MLIRStandardOps
|
||||||
|
MLIRSupport)
|
||||||
|
|
|
@ -3,6 +3,9 @@ add_mlir_unittest(MLIRSDBMTests
|
||||||
)
|
)
|
||||||
target_link_libraries(MLIRSDBMTests
|
target_link_libraries(MLIRSDBMTests
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
MLIRIR
|
||||||
MLIRSDBM
|
MLIRSDBM
|
||||||
)
|
MLIRStandardOps
|
||||||
|
MLIRSupport
|
||||||
|
)
|
||||||
whole_archive_link(MLIRSDBMTests MLIRSDBM)
|
whole_archive_link(MLIRSDBMTests MLIRSDBM)
|
||||||
|
|
Loading…
Reference in New Issue