1 # This chapter depends on JIT support enabled.
2 if(NOT MLIR_ENABLE_EXECUTION_ENGINE)
7 # For a better template to copy, see examples/standalone
8 include_directories(include)
9 add_subdirectory(include)
11 set(LLVM_LINK_COMPONENTS
18 set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
19 mlir_tablegen(ToyCombine.inc -gen-rewriters)
20 add_public_tablegen_target(ToyCh6CombineIncGen)
22 add_toy_chapter(toyc-ch6
27 mlir/LowerToAffineLoops.cpp
29 mlir/ShapeInferencePass.cpp
33 ToyCh6ShapeInferenceInterfaceIncGen
38 include_directories(${CMAKE_CURRENT_BINARY_DIR})
39 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
40 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
41 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
42 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
43 target_link_libraries(toyc-ch6
49 MLIRBuiltinToLLVMIRTranslation
53 MLIRFunctionInterfaces
55 MLIRLLVMCommonConversion
57 MLIRLLVMToLLVMIRTranslation
61 MLIRSideEffectInterfaces
63 MLIRTargetLLVMIRExport