diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 297147567309..cfd990b31aa8 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -4418,6 +4418,7 @@ cc_library( ":LoopLikeInterface", ":MemRefDialect", ":MemorySlotInterfaces", + ":MemorySlotUtils", ":ParallelCombiningOpInterface", ":SCFDeviceMappingInterfacesIncGen", ":SCFIncGen", @@ -4470,6 +4471,17 @@ cc_library( ], ) +cc_library( + name = "MemorySlotUtils", + srcs = ["lib/Interfaces/Utils/MemorySlotUtils.cpp"], + hdrs = ["include/mlir/Interfaces/Utils/MemorySlotUtils.h"], + includes = ["include"], + deps = [ + ":IR", + "//llvm:Support", + ], +) + cc_library( name = "DataLayoutInterfaces", srcs = ["lib/Interfaces/DataLayoutInterfaces.cpp"], @@ -13212,6 +13224,7 @@ cc_library( ":MemRefOpsIncGen", ":MemoryAccessOpInterfacesIncGen", ":MemorySlotInterfaces", + ":MemorySlotUtils", ":RuntimeVerifiableOpInterface", ":ShapedOpInterfaces", ":SideEffectInterfaces", diff --git a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel index 5af159c9dbd6..21edfa092ee0 100644 --- a/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/unittests/BUILD.bazel @@ -74,9 +74,11 @@ cc_test( "//mlir:IR", "//mlir:InferIntRangeInterface", "//mlir:InferTypeOpInterface", + "//mlir:MemorySlotUtils", "//mlir:Parser", "//mlir:SideEffectInterfaces", "//mlir:Support", + "//mlir/test:TestDialect", "//third-party/unittest:gtest", "//third-party/unittest:gtest_main", ],