Files
clang-p2996/mlir/lib/Dialect/SPIRV/Transforms/CMakeLists.txt
River Riddle 3655069234 [mlir] Move the Builtin FuncOp to the Func dialect
This commit moves FuncOp out of the builtin dialect, and into the Func
dialect. This move has been planned in some capacity from the moment
we made FuncOp an operation (years ago). This commit handles the
functional aspects of the move, but various aspects are left untouched
to ease migration: func::FuncOp is re-exported into mlir to reduce
the actual API churn, the assembly format still accepts the unqualified
`func`. These temporary measures will remain for a little while to
simplify migration before being removed.

Differential Revision: https://reviews.llvm.org/D121266
2022-03-16 17:07:03 -07:00

42 lines
819 B
CMake

set(LLVM_OPTIONAL_SOURCES
CanonicalizeGLSLPass.cpp
DecorateCompositeTypeLayoutPass.cpp
LowerABIAttributesPass.cpp
RewriteInsertsPass.cpp
SPIRVConversion.cpp
UnifyAliasedResourcePass.cpp
UpdateVCEPass.cpp
)
add_mlir_dialect_library(MLIRSPIRVConversion
SPIRVConversion.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
LINK_LIBS PUBLIC
MLIRFunc
MLIRSPIRV
MLIRTransformUtils
)
add_mlir_dialect_library(MLIRSPIRVTransforms
CanonicalizeGLSLPass.cpp
DecorateCompositeTypeLayoutPass.cpp
LowerABIAttributesPass.cpp
RewriteInsertsPass.cpp
UnifyAliasedResourcePass.cpp
UpdateVCEPass.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
DEPENDS
MLIRSPIRVPassIncGen
LINK_LIBS PUBLIC
MLIRPass
MLIRSPIRVConversion
MLIRSPIRVUtils
)