StandardToSPIRV currently contains an assortment of patterns converting from different dialects to SPIRV. This commit splits up StandardToSPIRV into separate conversions for each of the dialects involved (some of which already exist). Differential Revision: https://reviews.llvm.org/D120767
21 lines
381 B
CMake
21 lines
381 B
CMake
add_mlir_conversion_library(MLIRControlFlowToSPIRV
|
|
ControlFlowToSPIRV.cpp
|
|
ControlFlowToSPIRVPass.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
|
|
${MLIR_MAIN_INCLUDE_DIR}/mlir/IR
|
|
|
|
DEPENDS
|
|
MLIRConversionPassIncGen
|
|
|
|
LINK_LIBS PUBLIC
|
|
MLIRIR
|
|
MLIRControlFlow
|
|
MLIRPass
|
|
MLIRSPIRV
|
|
MLIRSPIRVConversion
|
|
MLIRSupport
|
|
MLIRTransformUtils
|
|
)
|