diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -6188,6 +6188,7 @@ "//mlir/test:TestLinalg", "//mlir/test:TestMath", "//mlir/test:TestMemRef", + "//mlir/test:TestPDLL", "//mlir/test:TestPass", "//mlir/test:TestReducer", "//mlir/test:TestRewrite", diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel @@ -626,3 +626,38 @@ "//mlir:Transforms", ], ) + +gentbl_cc_library( + name = "TestPDLLPatternsIncGen", + includes = ["lib/Dialect/Test"], + strip_include_prefix = "lib", + tbl_outs = [ + ( + ["-x=cpp"], + "lib/Tools/PDLL/TestPDLLPatterns.h.inc", + ), + ], + tblgen = "//mlir:mlir-pdll", + td_file = "lib/Tools/PDLL/TestPDLL.pdll", + deps = [ + ":TestDialect", + ":TestOpTdFiles", + ], +) + +cc_library( + name = "TestPDLL", + srcs = ["lib/Tools/PDLL/TestPDLL.cpp"], + includes = ["lib/Tools/PDLL"], + deps = [ + ":TestDialect", + ":TestPDLLPatternsIncGen", + "//mlir:IR", + "//mlir:PDLDialect", + "//mlir:PDLInterpDialect", + "//mlir:Parser", + "//mlir:Pass", + "//mlir:Support", + "//mlir:TransformUtils", + ], +)