[Utils] Identity map module-level debug info on first use in CloneFunction* (#118627)
[llvm-project.git] / mlir / examples / toy / Ch2 / CMakeLists.txt
blob3fbff2fa2a6792972acccd18d670d8e7b62edc32
1 # For a better template to copy, see examples/standalone
2 add_subdirectory(include)
4 set(LLVM_LINK_COMPONENTS
5   Support
6   )
8 add_toy_chapter(toyc-ch2
9   toyc.cpp
10   parser/AST.cpp
11   mlir/MLIRGen.cpp
12   mlir/Dialect.cpp
14   DEPENDS
15   ToyCh2OpsIncGen
17   )
18 include_directories(include/)
19 include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
20 target_link_libraries(toyc-ch2
21   PRIVATE
22     MLIRAnalysis
23     MLIRFunctionInterfaces
24     MLIRIR
25     MLIRParser
26     MLIRSideEffectInterfaces
27     MLIRTransforms)