diff options
Diffstat (limited to 'utils/bazel/llvm-project-overlay/mlir/BUILD.bazel')
-rw-r--r-- | utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 24 |
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", |