[PATCH] D124515: [mlir][bazel] Add suport for PDLL tests.

Stephan Herhut via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 03:35:34 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc10bbc20bc4d: [mlir][bazel] Add suport for PDLL tests. (authored by herhut).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124515/new/

https://reviews.llvm.org/D124515

Files:
  utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
  utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel


Index: utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ 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",
+    ],
+)
Index: utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ 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",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124515.425469.patch
Type: text/x-patch
Size: 1630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/8e80fb32/attachment.bin>


More information about the llvm-commits mailing list