diff options
author | Geoffrey Martin-Noble <gcmn@google.com> | 2021-09-13 13:24:31 -0700 |
---|---|---|
committer | Geoffrey Martin-Noble <gcmn@google.com> | 2021-09-13 13:45:23 -0700 |
commit | 095bbc3a5a75f2e576b6efeadae34aaca693084e (patch) | |
tree | 0145f46e570c69e568d66cd11e7ff4d11a0aeb03 | |
parent | e69d359841b6358f1d17569212ef8cf91244ca11 (diff) | |
download | llvm-095bbc3a5a75f2e576b6efeadae34aaca693084e.zip llvm-095bbc3a5a75f2e576b6efeadae34aaca693084e.tar.gz llvm-095bbc3a5a75f2e576b6efeadae34aaca693084e.tar.bz2 |
[Bazel][mlir] Simplify test/BUILD.bazel with globs
This reduces the maintenance burden by using globs, which is the
tradeoff we make in the other LLVM Bazel build files as well.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D109720
-rw-r--r-- | utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel index fa373c0..7a095f2 100644 --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -33,20 +33,14 @@ cc_library( td_library( name = "TestOpTdFiles", - srcs = [ - "lib/Dialect/Test/TestInterfaces.td", - "lib/Dialect/Test/TestOps.td", - "//mlir:include/mlir/Dialect/DLTI/DLTIBase.td", - "//mlir:include/mlir/IR/OpAsmInterface.td", - "//mlir:include/mlir/IR/RegionKindInterface.td", - "//mlir:include/mlir/IR/SymbolInterfaces.td", - "//mlir:include/mlir/Interfaces/CallInterfaces.td", - "//mlir:include/mlir/Interfaces/ControlFlowInterfaces.td", - "//mlir:include/mlir/Interfaces/CopyOpInterface.td", - "//mlir:include/mlir/Interfaces/DataLayoutInterfaces.td", - "//mlir:include/mlir/Interfaces/InferTypeOpInterface.td", - ], + srcs = glob(["lib/Dialect/Test/*.td"]), deps = [ + "//mlir:CallInterfacesTdFiles", + "//mlir:ControlFlowInterfacesTdFiles", + "//mlir:CopyOpInterfaceTdFiles", + "//mlir:DLTIDialectTdFiles", + "//mlir:DataLayoutInterfacesTdFiles", + "//mlir:InferTypeOpInterfaceTdFiles", "//mlir:OpBaseTdFiles", "//mlir:SideEffectTdFiles", ], @@ -196,21 +190,8 @@ gentbl_cc_library( cc_library( name = "TestDialect", - srcs = [ - "lib/Dialect/Test/TestAttributes.cpp", - "lib/Dialect/Test/TestDialect.cpp", - "lib/Dialect/Test/TestInterfaces.cpp", - "lib/Dialect/Test/TestPatterns.cpp", - "lib/Dialect/Test/TestTraits.cpp", - "lib/Dialect/Test/TestTypes.cpp", - ], - hdrs = [ - "lib/Dialect/Test/TestAttributes.h", - "lib/Dialect/Test/TestDialect.h", - "lib/Dialect/Test/TestInterfaces.h", - "lib/Dialect/Test/TestTraits.h", - "lib/Dialect/Test/TestTypes.h", - ], + srcs = glob(["lib/Dialect/Test/*.cpp"]), + hdrs = glob(["lib/Dialect/Test/*.h"]), includes = [ "lib/Dialect/Test", ], |