Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup the code to picking lowering rules based on platform.
Previously, we had special-cased the code to pick the lowering rule for a primitive based on the lowering platform, and separately we had the code to handle multi-platform lowering. The latter, called `mlir.lower_multi_platform` had its own special case for when a single lowering rule applied. We rename `mlir.lower_multi_platform` to `mlir.lower_per_platform` to not imply that it is only for multi-platform. We simplify its API (takes a dictionary instead of a list of tuples).
- Loading branch information
Showing
3 changed files
with
87 additions
and
114 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