[libc++abi] Build cxxabi with sanitizers (#119612)
[llvm-project.git] / mlir / test / lib / Transforms / CMakeLists.txt
blob66b1faf78e2d8b8dd0a4b34d7ccaed8d927305d5
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
10   EXTRA_INCLUDES
11   ${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test
12   ${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test
13   )
14   set(MLIRTestTransformsPDLSrc
15     TestDialectConversion.cpp)
16   set(MLIRTestTransformsPDLDep
17     MLIRTestDialectConversionPDLLPatternsIncGen)
18 endif()
20 # Exclude tests from libMLIR.so
21 add_mlir_library(MLIRTestTransforms
22   TestCommutativityUtils.cpp
23   TestCompositePass.cpp
24   TestConstantFold.cpp
25   TestControlFlowSink.cpp
26   TestInlining.cpp
27   TestMakeIsolatedFromAbove.cpp
28   ${MLIRTestTransformsPDLSrc}
30   EXCLUDE_FROM_LIBMLIR
32   ADDITIONAL_HEADER_DIRS
33   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
35   DEPENDS
36   ${MLIRTestTransformsPDLDep}
38   LINK_LIBS PUBLIC
39   MLIRAnalysis
40   MLIRFuncDialect
41   MLIRInferIntRangeInterface
42   MLIRTestDialect
43   MLIRTransforms
44   )
46 target_include_directories(MLIRTestTransforms
47   PRIVATE
48   ${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test
49   ${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test
50   )