1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 load("//mlir:tblgen.bzl", "gentbl_cc_library")
8 default_visibility = ["//visibility:public"],
20 "//llvm:TestingSupport",
23 "//mlir/test:TestDialect",
28 name = "interface_tests",
35 "//llvm:TestingSupport",
37 "//mlir:ControlFlowInterfaces",
39 "//mlir:DataLayoutInterfaces",
41 "//mlir:InferTypeOpInterface",
48 name = "support_tests",
56 "//llvm:TestingSupport",
70 "//llvm:TestingSupport",
79 name = "rewrite_tests",
93 name = "dialect_tests",
100 "//llvm:TestingSupport",
107 name = "quantops_tests",
110 "Dialect/Quant/*.cpp",
114 "//llvm:TestingSupport",
132 "//mlir:StandardOps",
137 name = "sparse_tensor_tests",
140 "Dialect/SparseTensor/*.cpp",
141 "Dialect/SparseTensor/*.h",
144 "//llvm:TestingSupport",
146 "//mlir:SparseTensorUtils",
151 name = "spirv_tests",
154 "Dialect/SPIRV/*.cpp",
158 "//llvm:TestingSupport",
160 "//mlir:SPIRVDeserialization",
161 "//mlir:SPIRVDialect",
162 "//mlir:SPIRVSerialization",
167 name = "dialect_utils_tests",
170 "Dialect/Utils/*.cpp",
174 "//llvm:TestingSupport",
176 "//mlir:DialectUtils",
181 name = "EnumsIncGen",
185 "TableGen/EnumsGenTest.h.inc",
189 "TableGen/EnumsGenTest.cpp.inc",
192 tblgen = "//mlir:mlir-tblgen",
193 td_file = "TableGen/enums.td",
195 "//mlir:OpBaseTdFiles",
204 "TableGen/PassGenTest.h.inc",
207 tblgen = "//mlir:mlir-tblgen",
208 td_file = "TableGen/passes.td",
210 "//mlir:PassBaseTdFiles",
211 "//mlir:RewritePassBaseTdFiles",
216 name = "StructsIncGen",
219 ["-gen-struct-attr-decls"],
220 "TableGen/StructAttrGenTest.h.inc",
223 ["-gen-struct-attr-defs"],
224 "TableGen/StructAttrGenTest.cpp.inc",
227 tblgen = "//mlir:mlir-tblgen",
228 td_file = "TableGen/structs.td",
230 "//mlir:OpBaseTdFiles",
235 name = "tablegen_tests",
241 "TableGen/EnumsGenTest.cpp.inc",
242 "TableGen/EnumsGenTest.h.inc",
243 "TableGen/StructAttrGenTest.cpp.inc",
244 "TableGen/StructAttrGenTest.h.inc",
246 includes = ["TableGen/"],
252 "//llvm:TestingSupport",
256 "//mlir/test:TestDialect",
261 name = "transforms_test",
269 "//mlir:AffineAnalysis",
273 "//mlir:TransformUtils",
279 name = "analysis_tests",
286 "Dialect/Affine/Analysis/AffineStructuresParser.*",
289 "//llvm:TestingSupport",
291 "//mlir:AffineAnalysis",
298 name = "conversion_tests",
303 "Conversion/*/*.cpp",
308 "//mlir:ArithmeticDialect",
309 "//mlir:PDLToPDLInterp",
314 name = "execution_engine_tests",
317 "ExecutionEngine/*.cpp",
320 # MSAN does not work with JIT.
324 "//llvm:TestingSupport",
326 "//mlir:AllPassesAndDialects",
328 "//mlir:ExecutionEngine",
330 "//mlir:LinalgToLLVM",
331 "//mlir:MemRefToLLVM",
332 "//mlir:mlir_c_runner_utils",
333 "//mlir:mlir_runner_utils",