forked from iree-org/iree
-
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.
Switch to upstream StablehloToLinalg code. (iree-org#19792)
While looking at compiler warnings in build logs, I noticed paths in StableHLO that looked out of place. As it turns out, much of IREE's StableHLO to Linalg conversion code was forked into upstream StableHLO in openxla/stablehlo#1817, though there have been some local changes to the code here since it was forked: https://github.com/iree-org/iree/commits/main/compiler/plugins/input/StableHLO/Conversion. Switching to use the upstream code will allow us to decrease the surface area we directly support and limit the number of files we need to build from source, but it will also make maintenance require coordinating more with upstream (such as during LLVM integrates). We still point to a fork at https://github.com/iree-org/stablehlo , so if things get tricky we can choose to set up a branch with patches as needed. Some notes: * More code, particularly includes and build dependencies, could be pruned. * We can probably delete more code by reviving iree-org#18681 too * I deleted lit tests for the patterns that were moved upstream. The tests still exist at https://github.com/openxla/stablehlo/tree/main/stablehlo/conversions/linalg/tests, but I don't see much value in having our own versions of the lit tests. We do still have e2e tests that compile and run. * I did _not_ plumb through the `enablePrimitiveOps` or `enableSparseOps` options, which may be useful for some programs * I'm keeping our custom `stablehlo.concatenate` lowering since the alternate lowering (from IREE or now StableHLO) has correctness issues. Also keeping the FFT lowering since that does not exist upstream and it handles cases that our LinalgExt lowering does not. Signed-off-by: Hyunsung Lee <ita9naiwa@gmail.com>
- Loading branch information
Showing
28 changed files
with
31 additions
and
12,133 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
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.