2019-11-23 22:08:50 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS SPIRVCanonicalization.td)
|
|
|
|
mlir_tablegen(SPIRVCanonicalization.inc -gen-rewriters)
|
|
|
|
add_public_tablegen_target(MLIRSPIRVCanonicalizationIncGen)
|
|
|
|
|
2019-05-26 20:43:20 +08:00
|
|
|
add_llvm_library(MLIRSPIRV
|
|
|
|
DialectRegistration.cpp
|
2019-11-15 04:31:32 +08:00
|
|
|
LayoutUtils.cpp
|
2019-05-26 20:43:20 +08:00
|
|
|
SPIRVDialect.cpp
|
|
|
|
SPIRVOps.cpp
|
2019-11-15 04:31:32 +08:00
|
|
|
SPIRVLowering.cpp
|
2019-06-11 03:21:44 +08:00
|
|
|
SPIRVTypes.cpp
|
2019-05-26 20:43:20 +08:00
|
|
|
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/SPIRV
|
|
|
|
)
|
|
|
|
|
2019-06-11 20:48:30 +08:00
|
|
|
add_dependencies(MLIRSPIRV
|
2019-12-28 05:24:33 +08:00
|
|
|
MLIRSPIRVAvailabilityIncGen
|
2019-11-23 22:08:50 +08:00
|
|
|
MLIRSPIRVCanonicalizationIncGen
|
2019-11-02 02:17:23 +08:00
|
|
|
MLIRSPIRVEnumsIncGen
|
2019-11-26 04:56:46 +08:00
|
|
|
MLIRSPIRVLoweringStructGen
|
2019-11-23 22:08:50 +08:00
|
|
|
MLIRSPIRVOpsIncGen
|
2019-07-04 09:12:52 +08:00
|
|
|
MLIRSPIRVOpUtilsGen)
|
2019-05-26 20:43:20 +08:00
|
|
|
|
2019-06-13 03:16:05 +08:00
|
|
|
target_link_libraries(MLIRSPIRV
|
|
|
|
MLIRIR
|
|
|
|
MLIRParser
|
2019-11-15 04:31:32 +08:00
|
|
|
MLIRSupport
|
|
|
|
MLIRTransforms)
|
2019-06-22 05:51:58 +08:00
|
|
|
|
|
|
|
add_subdirectory(Serialization)
|
2019-10-09 07:42:38 +08:00
|
|
|
add_subdirectory(Transforms)
|