forked from OSchip/llvm-project
94 lines
1.4 KiB
CMake
94 lines
1.4 KiB
CMake
add_subdirectory(Transforms)
|
|
|
|
add_mlir_dialect_library(MLIRLLVMIR
|
|
IR/LLVMDialect.cpp
|
|
IR/LLVMTypes.cpp
|
|
IR/LLVMTypeSyntax.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
|
|
|
DEPENDS
|
|
MLIRLLVMOpsIncGen
|
|
MLIRLLVMConversionsIncGen
|
|
intrinsics_gen
|
|
|
|
LINK_COMPONENTS
|
|
AsmParser
|
|
BitReader
|
|
BitWriter
|
|
Core
|
|
FrontendOpenMP
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRCallInterfaces
|
|
MLIRControlFlowInterfaces
|
|
MLIROpenMP
|
|
MLIRIR
|
|
MLIRSideEffectInterfaces
|
|
MLIRSupport
|
|
)
|
|
|
|
add_mlir_dialect_library(MLIRLLVMAVX512
|
|
IR/LLVMAVX512Dialect.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
|
|
|
DEPENDS
|
|
MLIRLLVMAVX512IncGen
|
|
MLIRLLVMAVX512ConversionsIncGen
|
|
intrinsics_gen
|
|
|
|
LINK_COMPONENTS
|
|
AsmParser
|
|
Core
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRLLVMIR
|
|
MLIRSideEffectInterfaces
|
|
)
|
|
|
|
add_mlir_dialect_library(MLIRNVVMIR
|
|
IR/NVVMDialect.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
|
|
|
DEPENDS
|
|
MLIRNVVMOpsIncGen
|
|
MLIRNVVMConversionsIncGen
|
|
intrinsics_gen
|
|
|
|
LINK_COMPONENTS
|
|
AsmParser
|
|
Core
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRLLVMIR
|
|
MLIRSideEffectInterfaces
|
|
)
|
|
|
|
add_mlir_dialect_library(MLIRROCDLIR
|
|
IR/ROCDLDialect.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/LLVMIR
|
|
|
|
DEPENDS
|
|
MLIRROCDLOpsIncGen
|
|
MLIRROCDLConversionsIncGen
|
|
intrinsics_gen
|
|
|
|
LINK_COMPONENTS
|
|
AsmParser
|
|
Core
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRSideEffectInterfaces
|
|
MLIRVectorToLLVM
|
|
)
|