2020-03-01 03:08:19 +08:00
|
|
|
add_llvm_library(MLIRTargetLLVMIRModuleTranslation
|
2020-02-06 09:10:55 +08:00
|
|
|
LLVMIR/DebugTranslation.cpp
|
2019-04-30 21:08:21 +08:00
|
|
|
LLVMIR/ModuleTranslation.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
|
|
|
)
|
2020-03-01 03:51:04 +08:00
|
|
|
target_link_libraries(MLIRTargetLLVMIRModuleTranslation
|
|
|
|
MLIRLLVMIR LLVMCore LLVMIRReader LLVMSupport LLVMTransformUtils
|
|
|
|
MLIRTranslation)
|
2020-03-01 03:08:19 +08:00
|
|
|
add_llvm_library(MLIRTargetLLVMIR
|
2019-11-06 06:41:08 +08:00
|
|
|
LLVMIR/ConvertFromLLVMIR.cpp
|
2019-04-30 21:08:21 +08:00
|
|
|
LLVMIR/ConvertToLLVMIR.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
|
|
|
)
|
2020-03-01 03:51:04 +08:00
|
|
|
target_link_libraries(MLIRTargetLLVMIR MLIRTargetLLVMIRModuleTranslation)
|
2020-03-01 03:08:19 +08:00
|
|
|
add_llvm_library(MLIRTargetNVVMIR
|
2019-04-30 21:08:21 +08:00
|
|
|
LLVMIR/ConvertToNVVMIR.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2020-03-01 03:51:04 +08:00
|
|
|
)
|
|
|
|
target_link_libraries(MLIRTargetNVVMIR
|
2019-06-25 21:30:32 +08:00
|
|
|
MLIRGPU
|
|
|
|
MLIRIR
|
2019-10-10 16:33:33 +08:00
|
|
|
MLIRLLVMIR
|
2019-06-25 21:30:32 +08:00
|
|
|
MLIRNVVMIR
|
|
|
|
MLIRTargetLLVMIRModuleTranslation
|
|
|
|
)
|
2020-03-01 03:08:19 +08:00
|
|
|
add_llvm_library(MLIRTargetROCDLIR
|
2019-09-27 14:49:51 +08:00
|
|
|
LLVMIR/ConvertToROCDLIR.cpp
|
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Target/LLVMIR
|
|
|
|
DEPENDS
|
|
|
|
intrinsics_gen
|
2020-03-01 03:51:04 +08:00
|
|
|
)
|
|
|
|
target_link_libraries(MLIRTargetROCDLIR
|
2019-09-27 14:49:51 +08:00
|
|
|
MLIRGPU
|
|
|
|
MLIRIR
|
2019-10-10 16:33:33 +08:00
|
|
|
MLIRLLVMIR
|
2019-09-27 14:49:51 +08:00
|
|
|
MLIRROCDLIR
|
|
|
|
MLIRTargetLLVMIRModuleTranslation
|
|
|
|
)
|