diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/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",