llvm-project/mlir/lib/Conversion/GPUToSPIRV/CMakeLists.txt

23 lines
482 B
CMake

set(LLVM_TARGET_DEFINITIONS GPUToSPIRV.td)
mlir_tablegen(GPUToSPIRV.cpp.inc -gen-rewriters)
add_public_tablegen_target(MLIRGPUToSPIRVIncGen)
add_llvm_library(MLIRGPUtoSPIRVTransforms
ConvertGPUToSPIRV.cpp
ConvertGPUToSPIRVPass.cpp
)
add_dependencies(MLIRGPUtoSPIRVTransforms
MLIRGPUToSPIRVIncGen)
target_link_libraries(MLIRGPUtoSPIRVTransforms
MLIRGPU
MLIRIR
MLIRPass
MLIRSPIRV
MLIRStandardOps
MLIRStandardToSPIRVTransforms
MLIRSupport
MLIRTransforms
)