forked from OSchip/llvm-project
33 lines
718 B
CMake
33 lines
718 B
CMake
set(LLVM_TARGET_DEFINITIONS SPIRVCanonicalization.td)
|
|
mlir_tablegen(SPIRVCanonicalization.inc -gen-rewriters)
|
|
add_public_tablegen_target(MLIRSPIRVCanonicalizationIncGen)
|
|
|
|
add_llvm_library(MLIRSPIRV
|
|
DialectRegistration.cpp
|
|
LayoutUtils.cpp
|
|
SPIRVDialect.cpp
|
|
SPIRVOps.cpp
|
|
SPIRVLowering.cpp
|
|
SPIRVTypes.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/SPIRV
|
|
)
|
|
|
|
add_dependencies(MLIRSPIRV
|
|
MLIRSPIRVAvailabilityIncGen
|
|
MLIRSPIRVCanonicalizationIncGen
|
|
MLIRSPIRVEnumsIncGen
|
|
MLIRSPIRVLoweringStructGen
|
|
MLIRSPIRVOpsIncGen
|
|
MLIRSPIRVOpUtilsGen)
|
|
|
|
target_link_libraries(MLIRSPIRV
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRSupport
|
|
MLIRTransforms)
|
|
|
|
add_subdirectory(Serialization)
|
|
add_subdirectory(Transforms)
|