[Bazel] Uniformly export all MLIR td files
authorGeoffrey Martin-Noble <gcmn@google.com>
Wed, 14 Jul 2021 19:09:41 +0000 (12:09 -0700)
committerGeoffrey Martin-Noble <gcmn@google.com>
Wed, 14 Jul 2021 19:18:44 +0000 (12:18 -0700)
CMake would have no restrictions on this and the custom list is a pain
to maintain.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D106003

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

index 20c65fa..202db46 100644 (file)
@@ -25,6 +25,8 @@ filegroup(
     srcs = glob(["include/mlir-c/**/*"]),  # <== i.e. match the entire tree
 )
 
+exports_files(glob(["include/**/*.td"]))
+
 [
     gentbl_cc_library(
         name = name + "IncGen",
@@ -6490,35 +6492,9 @@ cc_library(
 )
 
 exports_files([
-    "include/mlir/Bindings/Python/Attributes.td",
-    "include/mlir/Dialect/DLTI/DLTIBase.td",
-    "include/mlir/Dialect/LLVMIR/LLVMOpBase.td",
-    "include/mlir/Dialect/Linalg/IR/LinalgOps.td",
-    "include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td",
-    "include/mlir/Dialect/Shape/IR/ShapeBase.td",
-    "include/mlir/Dialect/Shape/IR/ShapeOps.td",
-    "include/mlir/Dialect/StandardOps/IR/Ops.td",
-    "include/mlir/Dialect/Vector/VectorOps.td",
-    "include/mlir/Dialect/X86Vector/X86Vector.td",
-    "include/mlir/IR/OpAsmInterface.td",
-    "include/mlir/IR/OpBase.td",
-    "include/mlir/IR/RegionKindInterface.td",
-    "include/mlir/IR/SymbolInterfaces.td",
-    "include/mlir/IR/TensorEncoding.td",
     "include/mlir/Interfaces/CallInterfaces.h",
-    "include/mlir/Interfaces/CallInterfaces.td",
     "include/mlir/Interfaces/CastInterfaces.h",
-    "include/mlir/Interfaces/CastInterfaces.td",
     "include/mlir/Interfaces/ControlFlowInterfaces.h",
-    "include/mlir/Interfaces/ControlFlowInterfaces.td",
-    "include/mlir/Interfaces/CopyOpInterface.td",
-    "include/mlir/Interfaces/DataLayoutInterfaces.td",
-    "include/mlir/Interfaces/InferTypeOpInterface.td",
-    "include/mlir/Interfaces/LoopLikeInterface.td",
-    "include/mlir/Interfaces/SideEffectInterfaceBase.td",
-    "include/mlir/Interfaces/SideEffectInterfaces.td",
-    "include/mlir/Interfaces/VectorInterfaces.td",
-    "include/mlir/Interfaces/ViewLikeInterface.td",
     "include/mlir/Transforms/InliningUtils.h",
 ])