[PATCH] D156355: [mlir][irdl] Fix BUILD files.
Ingo Müller via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 11:14:30 PDT 2023
ingomueller-net created this revision.
Herald added subscribers: bviyer, Moerafaat, zero9178, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini.
Herald added a project: All.
ingomueller-net requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer.
Herald added a project: LLVM.
https://reviews.llvm.org/D153983 introduced a new .td file with
attributes and enums. This patch adds the corresponding rules to the
BUILD file in order to fix the bazel build.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156355
Files:
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
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
@@ -2178,6 +2178,7 @@
name = "IRDLTdFiles",
srcs = [
"include/mlir/Dialect/IRDL/IR/IRDL.td",
+ "include/mlir/Dialect/IRDL/IR/IRDLAttributes.td",
"include/mlir/Dialect/IRDL/IR/IRDLInterfaces.td",
"include/mlir/Dialect/IRDL/IR/IRDLOps.td",
"include/mlir/Dialect/IRDL/IR/IRDLTypes.td",
@@ -2242,6 +2243,42 @@
deps = [":IRDLTdFiles"],
)
+gentbl_cc_library(
+ name = "IRDLAttributesIncGen",
+ strip_include_prefix = "include",
+ tbl_outs = [
+ (
+ ["-gen-attrdef-decls"],
+ "include/mlir/Dialect/IRDL/IR/IRDLAttributes.h.inc",
+ ),
+ (
+ ["-gen-attrdef-defs"],
+ "include/mlir/Dialect/IRDL/IR/IRDLAttributes.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/IRDL/IR/IRDLAttributes.td",
+ deps = [":IRDLTdFiles"],
+)
+
+gentbl_cc_library(
+ name = "IRDLEnumsIncGen",
+ strip_include_prefix = "include",
+ tbl_outs = [
+ (
+ ["-gen-enum-decls"],
+ "include/mlir/Dialect/IRDL/IR/IRDLEnums.h.inc",
+ ),
+ (
+ ["-gen-enum-defs"],
+ "include/mlir/Dialect/IRDL/IR/IRDLEnums.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/IRDL/IR/IRDLAttributes.td",
+ deps = [":IRDLTdFiles"],
+)
+
gentbl_cc_library(
name = "IRDLOpsIncGen",
strip_include_prefix = "include",
@@ -2297,6 +2334,8 @@
deps = [
":Dialect",
":IR",
+ ":IRDLAttributesIncGen",
+ ":IRDLEnumsIncGen",
":IRDLIncGen",
":IRDLInterfacesIncGen",
":IRDLOpsIncGen",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156355.544447.patch
Type: text/x-patch
Size: 1923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230726/169b9399/attachment.bin>
More information about the llvm-commits
mailing list