From 2e7d200210d4d4e53bd456376dadbeb3036526ff Mon Sep 17 00:00:00 2001 From: Emilio Cota Date: Tue, 25 Apr 2023 00:53:03 -0400 Subject: [PATCH] [bazel][mlir] Fold :Observers and :BreakpointManagers into :Debug To avoid circular deps. While at it, add missing dep on CAPIIR. --- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 40 +++++----------------- .../mlir/unittests/BUILD.bazel | 1 - 2 files changed, 8 insertions(+), 33 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 4313450..3190e65 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -3717,43 +3717,21 @@ cc_library( srcs = glob([ "lib/Debug/*.cpp", "lib/Debug/*.h", + "lib/Debug/BreakpointManagers/*.cpp", + "lib/Debug/BreakpointManagers/*.h", + "lib/Debug/Observers/*.cpp", + "lib/Debug/Observers/*.h", ]), hdrs = glob([ "include/mlir/Debug/*.h", -]), - includes = ["include"], - deps = [ - ":IR", - ":Support", - "//llvm:Support", - ], -) - -cc_library( - name = "Observers", - srcs = glob([ - "lib/Debug/Observers/*.cpp", - "lib/Debug/Observers/*.h", + "include/mlir/Debug/BreakpointManagers/*.h", + "include/mlir/Debug/Observers/*.h", ]), - hdrs = glob(["include/mlir/Debug/Observers/*.h"]), includes = ["include"], deps = [ - ":Debug", - ":IR", - "//llvm:Support", - ], -) - -cc_library( - name = "BreakpointManagers", - srcs = glob([ - "lib/Debug/BreakpointManagers/*.cpp", - "lib/Debug/BreakpointManagers/*.h", - ]), - hdrs = glob(["include/mlir/Debug/BreakpointManagers/*.h"]), - deps = [ - ":Debug", + ":CAPIIR", ":IR", + ":Support", "//llvm:Support", ], ) @@ -7188,13 +7166,11 @@ cc_library( hdrs = ["include/mlir/Tools/mlir-opt/MlirOptMain.h"], includes = ["include"], deps = [ - ":BreakpointManagers", ":BytecodeReader", ":BytecodeWriter", ":Debug", ":IR", ":IRDLDialect", - ":Observers", ":Parser", ":Pass", ":PluginsLib", diff --git a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel index f5b95e2..55d7e99 100644 --- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel @@ -21,7 +21,6 @@ cc_test( deps = [ "//llvm:Support", "//llvm:TestingSupport", - "//mlir:BreakpointManagers", "//mlir:Debug", "//mlir:IR", "//mlir:Support", -- 2.7.4