[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:12:21 PDT 2022
herhut created this revision.
Herald added subscribers: sdasgup3, wenzhicui, wrengr, Chia-hungDuan, dcaballe, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a project: All.
herhut requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
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.425462.patch
Type: text/x-patch
Size: 1630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220427/627a9bdb/attachment.bin>
More information about the llvm-commits
mailing list