[mlir][Bazel] Add missing dependencies.
authorAdrian Kuegel <akuegel@google.com>
Mon, 25 Apr 2022 07:16:16 +0000 (09:16 +0200)
committerAdrian Kuegel <akuegel@google.com>
Mon, 25 Apr 2022 07:24:07 +0000 (09:24 +0200)
When building with layering_check enabled, there needs to be a
dependency for each header include.

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

index 20e819c..274fa87 100644 (file)
@@ -2988,6 +2988,7 @@ cc_library(
         ":ControlFlowInterfaces",
         ":DialectUtils",
         ":IR",
+        ":InferTypeOpInterface",
         ":MemRefDialect",
         ":SideEffectInterfaces",
         ":Support",
@@ -5389,13 +5390,13 @@ cc_library(
     includes = ["include"],
     deps = [
         ":Analysis",
+        ":ArithmeticDialect",
         ":ConversionPassIncGen",
         ":DataLayoutInterfaces",
         ":FuncDialect",
         ":IR",
         ":LLVMCommonConversion",
         ":LLVMDialect",
-        ":ArithmeticDialect",
         ":MemRefDialect",
         ":Pass",
         ":Support",
@@ -7170,6 +7171,7 @@ cc_library(
         ":ArithmeticDialect",
         ":ArithmeticUtils",
         ":BufferizationDialect",
+        ":ControlFlowInterfaces",
         ":CopyOpInterface",
         ":DialectUtils",
         ":FuncDialect",
@@ -8524,6 +8526,7 @@ cc_library(
         ":BufferizableOpInterfaceIncGen",
         ":BufferizationBaseIncGen",
         ":BufferizationOpsIncGen",
+        ":CopyOpInterface",
         ":FuncDialect",
         ":IR",
         ":MemRefDialect",
index dd49785..1e4707f 100644 (file)
@@ -263,6 +263,7 @@ cc_library(
         "//mlir:LLVMDialect",
         "//mlir:LinalgInterfaces",
         "//mlir:LinalgOps",
+        "//mlir:LoopLikeInterface",
         "//mlir:Pass",
         "//mlir:Reducer",
         "//mlir:SideEffects",
@@ -271,6 +272,7 @@ cc_library(
         "//mlir:TensorDialect",
         "//mlir:TransformUtils",
         "//mlir:Transforms",
+        "//mlir:ViewLikeInterface",
     ],
 )