1 set(LLVM_OPTIONAL_SOURCES
2 TestDialectConversion.cpp)
3 set(MLIRTestTransformsPDLDep)
4 set(MLIRTestTransformsPDLSrc)
5 if(MLIR_ENABLE_PDL_IN_PATTERNMATCH)
6 add_mlir_pdll_library(MLIRTestDialectConversionPDLLPatternsIncGen
7 TestDialectConversion.pdll
8 TestDialectConversionPDLLPatterns.h.inc
11 ${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test
12 ${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test
14 set(MLIRTestTransformsPDLSrc
15 TestDialectConversion.cpp)
16 set(MLIRTestTransformsPDLDep
17 MLIRTestDialectConversionPDLLPatternsIncGen)
20 # Exclude tests from libMLIR.so
21 add_mlir_library(MLIRTestTransforms
22 TestCommutativityUtils.cpp
25 TestControlFlowSink.cpp
27 TestMakeIsolatedFromAbove.cpp
28 ${MLIRTestTransformsPDLSrc}
32 ADDITIONAL_HEADER_DIRS
33 ${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
36 ${MLIRTestTransformsPDLDep}
41 MLIRInferIntRangeInterface
46 target_include_directories(MLIRTestTransforms
48 ${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test
49 ${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test