From 199c2d63fd612427fce66d78b1e3eb58a59ef1e7 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Thu, 27 Jan 2022 09:44:06 +0100 Subject: [PATCH] [mlir][Bazel] Add TestMemRef target. Needed after D118285 Differential Revision: https://reviews.llvm.org/D118330 --- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 1 + .../llvm-project-overlay/mlir/test/BUILD.bazel | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 5dab97f36989..7dc763d9c262 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -5719,6 +5719,7 @@ cc_binary( "//mlir/test:TestIR", "//mlir/test:TestLinalg", "//mlir/test:TestMath", + "//mlir/test:TestMemRef", "//mlir/test:TestPass", "//mlir/test:TestReducer", "//mlir/test:TestRewrite", diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel index 49cde53a8c54..4f9ae531e1b1 100644 --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -430,6 +430,20 @@ cc_library( ], ) +cc_library( + name = "TestMemRef", + srcs = glob(["lib/Dialect/MemRef/*.cpp"]), + defines = ["MLIR_CUDA_CONVERSIONS_ENABLED"], + includes = ["lib/Dialect/Test"], + deps = [ + ":TestDialect", + "//mlir:Affine", + "//mlir:MemRefTransforms", + "//mlir:Pass", + "//mlir:Transforms", + ], +) + cc_library( name = "TestSCF", srcs = glob(["lib/Dialect/SCF/*.cpp"]),