forked from openxla/stablehlo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate StableHLO to use properties (openxla#2221)
Migrate StableHLO to use properties with a few additional changes: - Constant op's custom fallback parsing needs to be updated to handle properties _or_ attributes. - There are PjRT who require handling version skew, and are yet to migrate to VHLO (in progress, est ~Jun next release), in the meantime we require inherent IR attribute downgrades (DenseArray->DenseElements in [openxla/xla/pjrt/mlir_to_hlo.cc]( https://github.com/openxla/xla/blob/aefa3ab3a0613b538e14b449817dce986a765e84/xla/pjrt/mlir_to_hlo.cc#L180)). This isn't possible in a dialect that is using properties since properties require that property types are never invalid, so this PR introduces a DenseArray backed by generic Attribute storage. Cleanup tasks for this are tracked by openxla#2216 Closes openxla#1584
- Loading branch information
Showing
14 changed files
with
231 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.