1# Exclude tests from libMLIR.so
2add_mlir_library(MLIRTestTransforms
3  TestAffineLoopParametricTiling.cpp
4  TestExpandTanh.cpp
5  TestCallGraph.cpp
6  TestDecomposeCallGraphTypes.cpp
7  TestConstantFold.cpp
8  TestConvVectorization.cpp
9  TestConvertCallOp.cpp
10  TestConvertGPUKernelToCubin.cpp
11  TestConvertGPUKernelToHsaco.cpp
12  TestDominance.cpp
13  TestDynamicPipeline.cpp
14  TestLoopFusion.cpp
15  TestGpuMemoryPromotion.cpp
16  TestGpuParallelLoopMapping.cpp
17  TestGpuRewrite.cpp
18  TestInlining.cpp
19  TestLinalgCodegenStrategy.cpp
20  TestLinalgFusionTransforms.cpp
21  TestLinalgHoisting.cpp
22  TestLinalgTransforms.cpp
23  TestLiveness.cpp
24  TestLoopMapping.cpp
25  TestLoopParametricTiling.cpp
26  TestLoopUnrolling.cpp
27  TestNumberOfExecutions.cpp
28  TestOpaqueLoc.cpp
29  TestMemRefBoundCheck.cpp
30  TestMemRefDependenceCheck.cpp
31  TestMemRefStrideCalculation.cpp
32  TestSCFUtils.cpp
33  TestSparsification.cpp
34  TestVectorTransforms.cpp
35
36  EXCLUDE_FROM_LIBMLIR
37
38  ADDITIONAL_HEADER_DIRS
39  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Transforms
40
41  DEPENDS
42  MLIRStandardOpsIncGen
43
44  LINK_LIBS PUBLIC
45  MLIRAffine
46  MLIRAnalysis
47  MLIREDSC
48  MLIRGPU
49  MLIRGPUToGPURuntimeTransforms
50  MLIRLinalg
51  MLIRLinalgTransforms
52  MLIRNVVMIR
53  MLIRSCF
54  MLIRSCFTransforms
55  MLIRGPU
56  MLIRPass
57  MLIRROCDLIR
58  MLIRStandardOpsTransforms
59  MLIRTargetNVVMIR
60  MLIRTargetROCDLIR
61  MLIRTestDialect
62  MLIRTransformUtils
63  MLIRVectorToSCF
64  MLIRVector
65  )
66
67include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../Dialect/Test)
68include_directories(${CMAKE_CURRENT_BINARY_DIR}/../Dialect/Test)
69