llvm/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel

load("//llvm:lit_test.bzl", "lit_test")

licenses(["notice"])

package(default_visibility = ["//visibility:public"])

[
    lit_test(
        name = "%s.test" % src,
        srcs = [src],
        data = [
            "//llvm:llvm-symbolizer",
            "//mlir:mlir-opt",
            "//mlir:mlir-pdll",
            "//mlir:mlir-reduce",
            "//mlir:mlir-translate",
            "//mlir/test:lit_data",
        ] + glob([
            "IRDL/*.irdl.mlir",
            "LLVM/*-symbol-def.mlir",
            "Linalg/transpose-matmul-*.mlir",
            "Transform/include/**/*.mlir",
        ]),
    )
    for src in glob(
        include = ["**/*.mlir"],
        exclude = [
            "IRDL/*.irdl.mlir",
            "LLVM/*-symbol-def.mlir",
            "Linalg/transpose-matmul-*.mlir",
            "Transform/*-symbol-decl-and-schedule.mlir",
            "Transform/include/**/*.mlir",
        ],
    )
]