Skip to content

Commit d4fb50d

Browse files
committed
[bazel] Split TransformDialect into a header-only lib in prep for PR85221
This lets users use TensorDialect without depending on all dialects transitively. 513cdb8 forces that otherwise.
1 parent 4f909da commit d4fb50d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7382,7 +7382,7 @@ cc_library(
73827382
":Support",
73837383
":TensorOpsIncGen",
73847384
":TilingInterface",
7385-
":TransformDialect",
7385+
":TransformDialectInterfaces",
73867386
":ValueBoundsOpInterface",
73877387
":ViewLikeInterface",
73887388
"//llvm:Support",
@@ -12064,6 +12064,24 @@ gentbl_cc_library(
1206412064
deps = [":TransformDialectTdFiles"],
1206512065
)
1206612066

12067+
cc_library(
12068+
name = "TransformDialectInterfaces",
12069+
# FIXME: Change this once https://github.com/llvm/llvm-project/pull/85221 lands
12070+
hdrs = glob(["include/mlir/Dialect/Transform/IR/*.h"]),
12071+
deps = [
12072+
":CastInterfaces",
12073+
":IR",
12074+
":Rewrite",
12075+
":SideEffectInterfaces",
12076+
":Support",
12077+
":TransformDialectInterfacesIncGen",
12078+
":TransformDialectUtils",
12079+
":TransformTypesIncGen",
12080+
":Transforms",
12081+
"//llvm:Support",
12082+
],
12083+
)
12084+
1206712085
cc_library(
1206812086
name = "TransformDialect",
1206912087
srcs = glob(["lib/Dialect/Transform/IR/*.cpp"]),

0 commit comments

Comments
 (0)