From 4ac499a42d36a2999db5c11ee2fe344082782ddd Mon Sep 17 00:00:00 2001 From: Jakub Kuderski Date: Tue, 13 Jun 2023 21:15:38 -0400 Subject: [PATCH] Bump stablehlo submodule. Fix bazel deps. --- build_tools/bazel/workspace.bzl | 4 ++-- .../iree/compiler/InputConversion/Common/BUILD.bazel | 2 +- .../compiler/InputConversion/StableHLO/BUILD.bazel | 10 +++++----- .../StableHLO/Preprocessing/BUILD.bazel | 6 +++--- compiler/src/iree/compiler/Tools/BUILD.bazel | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/build_tools/bazel/workspace.bzl b/build_tools/bazel/workspace.bzl index f54c920179f3..10ff1464174e 100644 --- a/build_tools/bazel/workspace.bzl +++ b/build_tools/bazel/workspace.bzl @@ -129,8 +129,8 @@ def configure_iree_submodule_deps(iree_repo_alias = "@", iree_path = "./"): maybe( native.local_repository, - name = "mlir-hlo", - path = paths.join(iree_path, "third_party/mlir-hlo"), + name = "stablehlo", + path = paths.join(iree_path, "third_party/stablehlo"), ) maybe( diff --git a/compiler/src/iree/compiler/InputConversion/Common/BUILD.bazel b/compiler/src/iree/compiler/InputConversion/Common/BUILD.bazel index dfd65f55c6d4..a3d7e7b2bfbe 100644 --- a/compiler/src/iree/compiler/InputConversion/Common/BUILD.bazel +++ b/compiler/src/iree/compiler/InputConversion/Common/BUILD.bazel @@ -105,7 +105,7 @@ iree_compiler_cc_library( "@llvm-project//mlir:Pass", "@llvm-project//mlir:TosaDialect", "@llvm-project//mlir:Transforms", - "@stablehlo//stablehlo:stablehlo_ops", + "@stablehlo//:stablehlo_ops", "@torch-mlir-dialects//:TorchMLIRTMTensorDialect", ], ) diff --git a/compiler/src/iree/compiler/InputConversion/StableHLO/BUILD.bazel b/compiler/src/iree/compiler/InputConversion/StableHLO/BUILD.bazel index e33cbb56d364..4a457e97b1c2 100644 --- a/compiler/src/iree/compiler/InputConversion/StableHLO/BUILD.bazel +++ b/compiler/src/iree/compiler/InputConversion/StableHLO/BUILD.bazel @@ -53,8 +53,8 @@ iree_gentbl_cc_library( tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "CHLODecompositionPatterns.td", deps = [ - "@stablehlo//stablehlo:chlo_ops_td_files", - "@stablehlo//stablehlo:stablehlo_ops_td_files", + "@stablehlo//:chlo_ops_td_files", + "@stablehlo//:stablehlo_ops_td_files", ], ) @@ -115,9 +115,9 @@ iree_compiler_cc_library( "@llvm-project//mlir:TensorUtils", "@llvm-project//mlir:Transforms", "@llvm-project//mlir:VectorDialect", - "@stablehlo//stablehlo:broadcast_utils", - "@stablehlo//stablehlo:chlo_ops", - "@stablehlo//stablehlo:stablehlo_ops", + "@stablehlo//:broadcast_utils", + "@stablehlo//:chlo_ops", + "@stablehlo//:stablehlo_ops", ], ) diff --git a/compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/BUILD.bazel b/compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/BUILD.bazel index 02c8a7ac464b..165ce95e3bd5 100644 --- a/compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/BUILD.bazel +++ b/compiler/src/iree/compiler/InputConversion/StableHLO/Preprocessing/BUILD.bazel @@ -53,7 +53,7 @@ iree_gentbl_cc_library( td_file = "ComplexLoweringPatterns.td", deps = [ "@llvm-project//mlir:FuncTdFiles", - "@stablehlo//stablehlo:stablehlo_ops_td_files", + "@stablehlo//:stablehlo_ops_td_files", ], ) @@ -90,7 +90,7 @@ iree_compiler_cc_library( "@llvm-project//mlir:Support", "@llvm-project//mlir:TensorDialect", "@llvm-project//mlir:Transforms", - "@stablehlo//stablehlo:chlo_ops", - "@stablehlo//stablehlo:stablehlo_ops", + "@stablehlo//:chlo_ops", + "@stablehlo//:stablehlo_ops", ], ) diff --git a/compiler/src/iree/compiler/Tools/BUILD.bazel b/compiler/src/iree/compiler/Tools/BUILD.bazel index 583171693cd2..1bd4185282f7 100644 --- a/compiler/src/iree/compiler/Tools/BUILD.bazel +++ b/compiler/src/iree/compiler/Tools/BUILD.bazel @@ -43,8 +43,8 @@ iree_compiler_cc_library( "@llvm-project//mlir:ConversionPasses", "@llvm-project//mlir:IR", "@llvm-project//mlir:TosaDialect", - "@stablehlo//stablehlo:chlo_ops", - "@stablehlo//stablehlo:stablehlo_ops", + "@stablehlo//:chlo_ops", + "@stablehlo//:stablehlo_ops", "@torch-mlir-dialects//:TorchMLIRTMTensorDialect", ], )