diff --git a/third_party/stablehlo/temporary.patch b/third_party/stablehlo/temporary.patch index 5ce180cfea5..5e643affefd 100755 --- a/third_party/stablehlo/temporary.patch +++ b/third_party/stablehlo/temporary.patch @@ -383,6 +383,13 @@ diff --ruN a/stablehlo/stablehlo/transforms/Passes.td b/stablehlo/stablehlo/tran }]; } +@@ -375,4 +394,5 @@ + Option<"targetVersionOption", "target", "std::string", "", + "The target version. Must be a version of the form #.#.# .">, + ]; +-} ++ let dependentDialects = ["mlir::vhlo::VhloDialect"]; ++} diff --ruN a/stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp b/stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp --- stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp +++ stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp diff --git a/third_party/xla/third_party/stablehlo/temporary.patch b/third_party/xla/third_party/stablehlo/temporary.patch index 5ce180cfea5..5e643affefd 100755 --- a/third_party/xla/third_party/stablehlo/temporary.patch +++ b/third_party/xla/third_party/stablehlo/temporary.patch @@ -383,6 +383,13 @@ diff --ruN a/stablehlo/stablehlo/transforms/Passes.td b/stablehlo/stablehlo/tran }]; } +@@ -375,4 +394,5 @@ + Option<"targetVersionOption", "target", "std::string", "", + "The target version. Must be a version of the form #.#.# .">, + ]; +-} ++ let dependentDialects = ["mlir::vhlo::VhloDialect"]; ++} diff --ruN a/stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp b/stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp --- stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp +++ stablehlo/stablehlo/transforms/StablehloRefineArguments.cpp