63 lines · plain
1# This chapter depends on JIT support enabled.2if(NOT MLIR_ENABLE_EXECUTION_ENGINE)3 return()4endif()5 6 7# For a better template to copy, see examples/standalone8include_directories(include)9add_subdirectory(include)10 11set(LLVM_LINK_COMPONENTS12 Core13 Support14 nativecodegen15 OrcJIT16 )17 18set(LLVM_TARGET_DEFINITIONS mlir/ToyCombine.td)19mlir_tablegen(ToyCombine.inc -gen-rewriters)20add_public_tablegen_target(ToyCh6CombineIncGen)21 22add_toy_chapter(toyc-ch623 toyc.cpp24 parser/AST.cpp25 mlir/MLIRGen.cpp26 mlir/Dialect.cpp27 mlir/LowerToAffineLoops.cpp28 mlir/LowerToLLVM.cpp29 mlir/ShapeInferencePass.cpp30 mlir/ToyCombine.cpp31 32 DEPENDS33 ToyCh6ShapeInferenceInterfaceIncGen34 ToyCh6OpsIncGen35 ToyCh6CombineIncGen36 )37 38include_directories(${CMAKE_CURRENT_BINARY_DIR})39include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)40target_link_libraries(toyc-ch641 PRIVATE42 MLIRAnalysis43 MLIRBuiltinToLLVMIRTranslation44 MLIRCallInterfaces45 MLIRCastInterfaces46 MLIRExecutionEngine47 MLIRFunctionInterfaces48 MLIRIR49 MLIRLLVMCommonConversion50 MLIRLLVMDialect51 MLIRLLVMToLLVMIRTranslation52 MLIRMemRefDialect53 MLIRParser54 MLIRPass55 MLIRRegisterAllDialects56 MLIRRegisterAllExtensions57 MLIRRegisterAllPasses58 MLIRSideEffectInterfaces59 MLIRSupport60 MLIRTargetLLVMIRExport61 MLIRTransforms62 )63