forked from OSchip/llvm-project
40 lines
832 B
CMake
40 lines
832 B
CMake
# For a better template to copy, see examples/standalone
|
|
include_directories(include)
|
|
add_subdirectory(include)
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
|
|
mlir_tablegen(ToyCombine.inc -gen-rewriters)
|
|
add_public_tablegen_target(ToyCh4CombineIncGen)
|
|
|
|
add_toy_chapter(toyc-ch4
|
|
toyc.cpp
|
|
parser/AST.cpp
|
|
mlir/MLIRGen.cpp
|
|
mlir/Dialect.cpp
|
|
mlir/ShapeInferencePass.cpp
|
|
mlir/ToyCombine.cpp
|
|
|
|
DEPENDS
|
|
ToyCh4OpsIncGen
|
|
ToyCh4ShapeInferenceInterfaceIncGen
|
|
ToyCh4CombineIncGen
|
|
)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
|
|
target_link_libraries(toyc-ch4
|
|
PRIVATE
|
|
MLIRAnalysis
|
|
MLIRCastInterfaces
|
|
MLIRCallInterfaces
|
|
MLIRIR
|
|
MLIRParser
|
|
MLIRPass
|
|
MLIRSideEffectInterfaces
|
|
MLIRTransforms)
|
|
|