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 @@ -1014,6 +1014,13 @@ deps = [":OpBaseTdFiles"], ) +td_library( + name = "Mem2RegInterfacesTdFiles", + srcs = ["include/mlir/Interfaces/Mem2RegInterfaces.td"], + includes = ["include"], + deps = [":OpBaseTdFiles"], +) + td_library( name = "ShapedOpInterfacesTdFiles", srcs = ["include/mlir/Interfaces/ShapedOpInterfaces.td"], @@ -3139,6 +3146,18 @@ ], ) +cc_library( + name = "Mem2RegInterfaces", + srcs = ["lib/Interfaces/Mem2RegInterfaces.cpp"], + hdrs = ["include/mlir/Interfaces/Mem2RegInterfaces.h"], + includes = ["include"], + deps = [ + ":IR", + ":Mem2RegInterfacesIncGen", + "//llvm:Support", + ], +) + cc_library( name = "ShapedOpInterfaces", srcs = ["lib/Interfaces/ShapedOpInterfaces.cpp"], @@ -3942,18 +3961,23 @@ "include/mlir/Dialect/LLVMIR/ROCDL*.h", "include/mlir/Dialect/LLVMIR/*X86Vector*.h", ], - ) + ["include/mlir/Transforms/InliningUtils.h"], + ) + [ + "include/mlir/Transforms/InliningUtils.h", + "include/mlir/Transforms/Mem2Reg.h", + ], includes = ["include"], deps = [ ":CallOpInterfaces", ":ControlFlowInterfaces", ":DataLayoutInterfaces", - ":IR", ":InferTypeOpInterface", + ":IR", ":LLVMDialectInterfaceIncGen", ":LLVMIntrinsicOpsIncGen", ":LLVMOpsIncGen", ":LLVMTypesIncGen", + ":Mem2RegInterfaces", + ":Mem2RegInterfacesIncGen", ":SideEffectInterfaces", ":Support", "//llvm:AsmParser", @@ -4355,6 +4379,7 @@ ":DataLayoutInterfacesTdFiles", ":FunctionInterfacesTdFiles", ":InferTypeOpInterfaceTdFiles", + ":Mem2RegInterfacesTdFiles", ":OpBaseTdFiles", ":SideEffectInterfacesTdFiles", ], @@ -6010,6 +6035,24 @@ deps = [":LoopLikeInterfaceTdFiles"], ) +gentbl_cc_library( + name = "Mem2RegInterfacesIncGen", + strip_include_prefix = "include", + tbl_outs = [ + ( + ["-gen-op-interface-decls"], + "include/mlir/Interfaces/Mem2RegInterfaces.h.inc", + ), + ( + ["-gen-op-interface-defs"], + "include/mlir/Interfaces/Mem2RegInterfaces.cpp.inc", + ), + ], + tblgen = ":mlir-tblgen", + td_file = "include/mlir/Interfaces/Mem2RegInterfaces.td", + deps = [":Mem2RegInterfacesTdFiles"], +) + gentbl_cc_library( name = "ShapedOpInterfacesIncGen", strip_include_prefix = "include", @@ -6165,6 +6208,7 @@ ":ControlFlowInterfaces", ":IR", ":LoopLikeInterface", + ":Mem2RegInterfaces", ":Pass", ":Rewrite", ":RuntimeVerifiableOpInterface",