From 591c66ee24784d6e6b13939c7138bb67b891d0b3 Mon Sep 17 00:00:00 2001 From: Kevin Gleason Date: Mon, 18 Nov 2024 11:18:18 -0800 Subject: [PATCH] [StableHLO] Add VhloDialect to the dependent dialects of vhlo-to-version PiperOrigin-RevId: 697695971 --- third_party/stablehlo/temporary.patch | 7 +++++++ third_party/xla/third_party/stablehlo/temporary.patch | 7 +++++++ 2 files changed, 14 insertions(+) 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