[mlir] update bazel for transform debug extension

This commit is contained in:
Alex Zinenko 2024-01-12 13:52:31 +00:00
parent 6c2fbc3a68
commit b32001a232
3 changed files with 46 additions and 0 deletions

View File

@ -4600,6 +4600,7 @@ cc_library(
":SCFTransformOps",
":SparseTensorTransformOps",
":TensorTransformOps",
":TransformDebugExtension",
":TransformLoopExtension",
":TransformPDLExtension",
":UBToLLVM",
@ -8991,6 +8992,7 @@ cc_library(
":TensorTransforms",
":TosaDialect",
":TosaToLinalg",
":TransformDebugExtension",
":TransformDialect",
":TransformDialectTransforms",
":TransformLoopExtension",
@ -11747,6 +11749,48 @@ cc_library(
],
)
td_library(
name = "TransformDebugExtensionTdFiles",
srcs = glob(["include/mlir/Dialect/Transform/DebugExtension/*.td"]),
deps = [
":TransformDialectTdFiles",
],
)
gentbl_cc_library(
name = "TransformDebugExtensionOpsIncGen",
tbl_outs = [
(
[
"-gen-op-decls",
],
"include/mlir/Dialect/Transform/DebugExtension/DebugExtensionOps.h.inc",
),
(
[
"-gen-op-defs",
],
"include/mlir/Dialect/Transform/DebugExtension/DebugExtensionOps.cpp.inc",
),
],
tblgen = ":mlir-tblgen",
td_file = "include/mlir/Dialect/Transform/DebugExtension/DebugExtensionOps.td",
deps = [":TransformDebugExtensionTdFiles"],
)
cc_library(
name = "TransformDebugExtension",
srcs = glob(["lib/Dialect/Transform/DebugExtension/*.cpp"]),
hdrs = glob(["include/mlir/Dialect/Transform/DebugExtension/*.h"]),
deps = [
":IR",
":Support",
":TransformDebugExtensionOpsIncGen",
":TransformDialect",
"//third_party/llvm/llvm-project/llvm:Support",
],
)
td_library(
name = "TransformLoopExtensionTdFiles",
srcs = glob(["include/mlir/Dialect/Transform/LoopExtension/*.td"]),

View File

@ -360,6 +360,7 @@ cc_library(
"//mlir:IR",
"//mlir:PDLDialect",
"//mlir:Pass",
"//mlir:TransformDebugExtension",
"//mlir:TransformDialect",
"//mlir:TransformDialectTransforms",
"//mlir:TransformPDLExtension",

View File

@ -242,6 +242,7 @@ cc_test(
"//mlir:Parser",
"//mlir:Pass",
"//mlir:Support",
"//mlir:TransformDebugExtension",
"//mlir:TransformDialect",
"//mlir:TransformDialectTransforms",
"//mlir/test:TestTransformDialect",