1 # This chapter depends on JIT support enabled.
2 if(NOT MLIR_ENABLE_EXECUTION_ENGINE)
6 # For a better template to copy, see examples/standalone
7 include_directories(include)
8 add_subdirectory(include)
10 set(LLVM_LINK_COMPONENTS
17 set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)
18 mlir_tablegen(ToyCombine.inc -gen-rewriters)
19 add_public_tablegen_target(ToyCh7CombineIncGen)
21 add_toy_chapter(toyc-ch7
26 mlir/LowerToAffineLoops.cpp
28 mlir/ShapeInferencePass.cpp
32 ToyCh7ShapeInferenceInterfaceIncGen
37 include_directories(${CMAKE_CURRENT_BINARY_DIR})
38 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
39 get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
40 get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
41 get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
42 target_link_libraries(toyc-ch7
48 MLIRBuiltinToLLVMIRTranslation
52 MLIRFunctionInterfaces
54 MLIRLLVMCommonConversion
55 MLIRLLVMToLLVMIRTranslation
59 MLIRSideEffectInterfaces
60 MLIRTargetLLVMIRExport