Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[export] Improve the calling of multi-platform exported module
Previously we declared the lowering rule for call_exported to be platform specific. This was correct, but in the case when the caller function is lowered itself for multiple platforms this results in multiple copies of the inner called Exported. Now instead we make the call_exported rule be platform independent and make it compute the platform index for the called module based on the platform index in the caller module. This results in a single copy of the HLO for the called module in the output.
- Loading branch information
Showing
2 changed files
with
59 additions
and
22 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