[bazel][mlir] Fold :Observers and :BreakpointManagers into :Debug

To avoid circular deps.

While at it, add missing dep on CAPIIR.
This commit is contained in:
Emilio Cota
2023-04-25 00:53:03 -04:00
parent 00d0749f92
commit 2e7d200210
2 changed files with 9 additions and 34 deletions

View File

@@ -3717,43 +3717,21 @@ cc_library(
srcs = glob([
"lib/Debug/*.cpp",
"lib/Debug/*.h",
]),
hdrs = glob([
"include/mlir/Debug/*.h",
]),
includes = ["include"],
deps = [
":IR",
":Support",
"//llvm:Support",
],
)
cc_library(
name = "Observers",
srcs = glob([
"lib/Debug/BreakpointManagers/*.cpp",
"lib/Debug/BreakpointManagers/*.h",
"lib/Debug/Observers/*.cpp",
"lib/Debug/Observers/*.h",
]),
hdrs = glob(["include/mlir/Debug/Observers/*.h"]),
hdrs = glob([
"include/mlir/Debug/*.h",
"include/mlir/Debug/BreakpointManagers/*.h",
"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",

View File

@@ -21,7 +21,6 @@ cc_test(
deps = [
"//llvm:Support",
"//llvm:TestingSupport",
"//mlir:BreakpointManagers",
"//mlir:Debug",
"//mlir:IR",
"//mlir:Support",