| # Copyright 2019 The IREE Authors | |
| # | |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. | |
| # See https://llvm.org/LICENSE.txt for license information. | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| # Tests for end-to-end IREE support of *simple* models or their close | |
| # derivatives. This does not use our standard test infrastructure and instead | |
| # JIT-compiles and runs models with iree-run-mlir. It is intended for small | |
| # example programs that can be manually read and updated. | |
| load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob") | |
| load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite") | |
| package( | |
| features = ["layering_check"], | |
| licenses = ["notice"], # Apache 2.0 | |
| ) | |
| iree_lit_test_suite( | |
| name = "lit", | |
| srcs = enforce_glob( | |
| [ | |
| "collatz.mlir", | |
| "edge_detection.mlir", | |
| "fragment_000.mlir", | |
| "fullyconnected.mlir", | |
| "mnist_fake_weights.mlir", | |
| "unidirectional_lstm.mlir", | |
| ], | |
| include = ["*.mlir"], | |
| ), | |
| cfg = "//tests:lit.cfg.py", | |
| tags = [ | |
| "driver=local-task", | |
| "driver=vulkan", | |
| "hostonly", | |
| "optonly", # swiftshader is too slow in dbg | |
| ], | |
| tools = [ | |
| "//tools:iree-run-mlir", | |
| "@llvm-project//lld", | |
| "@llvm-project//llvm:FileCheck", | |
| ], | |
| ) |