From 89c65c68f2fc0d0bc5388d5596ef1712e9447da1 Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Tue, 25 Feb 2025 14:52:04 -0800 Subject: [PATCH] Bazel fixes for a778930f85b6d17cf31ff0e15964a7c7116e2a9d --- .../llvm-project-overlay/mlir/BUILD.bazel | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 2c5fb626c8446..3cbde42e0d9ec 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -370,6 +370,40 @@ cc_library( ], ) +td_library( + name = "RelayoutOpInterfaceTdFiles", + srcs = ["include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.td"], + includes = ["include"], + deps = [ + ":DestinationStyleOpInterfaceTdFiles" + ], +) + +gentbl_cc_library( + name = "RelayoutOpInterfaceIncGen", + tbl_outs = [ + ( + ["-gen-op-interface-decls"], + "include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.h.inc", + ), + ( + ["-gen-op-interface-defs"], + "include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.cpp.inc", + ), + ], + tblgen = ":mlir-tblgen", + td_file = "include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.td", + deps = [ + ":RelayoutOpInterfaceTdFiles", + ], +) + +cc_library( + name = "RelayoutOpInterface", + hdrs = ["include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.h"], + deps = [":RelayoutOpInterfaceIncGen"], +) + cc_library( name = "IR", srcs = glob([ @@ -7858,9 +7892,9 @@ cc_library( ":InferIntRangeInterface", ":InferTypeOpInterface", ":InliningUtils", - ":LinalgInterfaces", ":LoopLikeInterface", ":ParallelCombiningOpInterface", + ":RelayoutOpInterface", ":ShapedOpInterfaces", ":SideEffectInterfaces", ":SubsetOpInterface", @@ -11141,6 +11175,7 @@ td_library( "include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td", "include/mlir/Dialect/Linalg/IR/LinalgOps.td", "include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td", + "include/mlir/Dialect/Linalg/IR/RelayoutOpInterface.td", ], includes = ["include"], deps = [ @@ -11153,6 +11188,7 @@ td_library( ":SideEffectInterfacesTdFiles", ":TilingInterfaceTdFiles", ":ViewLikeInterfaceTdFiles", + ":RelayoutOpInterfaceIncGen", ], ) @@ -11564,6 +11600,7 @@ cc_library( ":InferTypeOpInterface", ":LinalgInterfacesIncGen", ":LinalgStructuredOpsIncGen", + ":RelayoutOpInterfaceIncGen", ":Support", ":ViewLikeInterface", ], @@ -11604,6 +11641,7 @@ cc_library( ":LinalgNamedStructuredOpsYamlIncGen", ":LinalgOpsIncGen", ":LinalgRelayoutOpsIncGen", + ":RelayoutOpInterfaceIncGen", ":LinalgStructuredOpsIncGen", ":MathDialect", ":MemRefDialect",