forked from OSchip/llvm-project
[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
This commit is contained in:
parent
e69d359841
commit
095bbc3a5a
|
@ -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",
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue