[LLVM] Fix Maintainers.md formatting (NFC)
[llvm-project.git] / mlir / lib / Rewrite / CMakeLists.txt
blob15b3739e4c633772ceaced5e11abe3362981a377
1 set(LLVM_OPTIONAL_SOURCES ByteCode.cpp)
3 add_mlir_library(MLIRRewrite
4   FrozenRewritePatternSet.cpp
5   PatternApplicator.cpp
7   ADDITIONAL_HEADER_DIRS
8   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Rewrite
10   DEPENDS
11   mlir-generic-headers
12   MLIRConversionPassIncGen
14   LINK_LIBS PUBLIC
15   MLIRIR
16   MLIRSideEffectInterfaces
17   )
19 if(MLIR_ENABLE_PDL_IN_PATTERNMATCH)
20   add_mlir_library(MLIRRewritePDL
21     ByteCode.cpp
23     ADDITIONAL_HEADER_DIRS
24     ${MLIR_MAIN_INCLUDE_DIR}/mlir/Rewrite
26     DEPENDS
27     mlir-generic-headers
29     LINK_LIBS PUBLIC
30     MLIRIR
31     MLIRPDLDialect
32     MLIRPDLInterpDialect
33     MLIRPDLToPDLInterp
34     MLIRSideEffectInterfaces
35   )
37   target_link_libraries(MLIRRewrite PUBLIC
38     MLIRPDLDialect
39     MLIRPDLInterpDialect
40     MLIRPDLToPDLInterp
41     MLIRRewritePDL)
42 endif()