[StableHLO] Add VhloDialect to the dependent dialects of vhlo-to-version

PiperOrigin-RevId: 697695971
This commit is contained in:
Kevin Gleason 2024-11-18 11:18:18 -08:00 committed by TensorFlower Gardener
parent fa95063523
commit 591c66ee24
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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