summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2023-05-17 14:50:01 +0200
committerBenjamin Kramer <benny.kra@googlemail.com>2023-05-17 14:50:01 +0200
commitfbdd7856d54346747b574a558da7199cd2acdf4e (patch)
tree904d4a55b0d0d4a951b16854ec65520bd03574d4 /utils
parenteb5a3e247aa2ec4f0089e6518fc815915ab24228 (diff)
downloadllvm-fbdd7856d54346747b574a558da7199cd2acdf4e.tar.gz
[bazel] Port c8a581c331f27a1ece8e42206831e56b7a222d26
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/BUILD.bazel24
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index ef211bfef6eb..603716cd4747 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -1950,6 +1950,7 @@ td_library(
name = "IRDLTdFiles",
srcs = [
"include/mlir/Dialect/IRDL/IR/IRDL.td",
+ "include/mlir/Dialect/IRDL/IR/IRDLInterfaces.td",
"include/mlir/Dialect/IRDL/IR/IRDLOps.td",
"include/mlir/Dialect/IRDL/IR/IRDLTypes.td",
],
@@ -1996,6 +1997,24 @@ gentbl_cc_library(
)
gentbl_cc_library(
+ name = "IRDLInterfacesIncGen",
+ strip_include_prefix = "include",
+ tbl_outs = [
+ (
+ ["-gen-op-interface-decls"],
+ "include/mlir/Dialect/IRDL/IR/IRDLInterfaces.h.inc",
+ ),
+ (
+ ["-gen-op-interface-defs"],
+ "include/mlir/Dialect/IRDL/IR/IRDLInterfaces.cpp.inc",
+ ),
+ ],
+ tblgen = ":mlir-tblgen",
+ td_file = "include/mlir/Dialect/IRDL/IR/IRDLInterfaces.td",
+ deps = [":IRDLTdFiles"],
+)
+
+gentbl_cc_library(
name = "IRDLOpsIncGen",
strip_include_prefix = "include",
tbl_outs = [
@@ -2035,18 +2054,23 @@ cc_library(
name = "IRDLDialect",
srcs = [
"lib/Dialect/IRDL/IR/IRDL.cpp",
+ "lib/Dialect/IRDL/IR/IRDLOps.cpp",
"lib/Dialect/IRDL/IRDLLoading.cpp",
+ "lib/Dialect/IRDL/IRDLVerifiers.cpp",
],
hdrs = [
"include/mlir/Dialect/IRDL/IR/IRDL.h",
+ "include/mlir/Dialect/IRDL/IR/IRDLInterfaces.h",
"include/mlir/Dialect/IRDL/IR/IRDLTraits.h",
"include/mlir/Dialect/IRDL/IRDLLoading.h",
+ "include/mlir/Dialect/IRDL/IRDLVerifiers.h",
],
includes = ["include"],
deps = [
":Dialect",
":IR",
":IRDLIncGen",
+ ":IRDLInterfacesIncGen",
":IRDLOpsIncGen",
":IRDLTypesIncGen",
":InferTypeOpInterface",