-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inliner has become a bit of a ball of mud. It was over 2000 lines and handled several aspects that did not have clear boundaries. This commit refactors Inliner into three units in a new package `inlines`. They are: - Inlines.scala: The frontend for querying inline methods and issuing inline calls. - Inliner.scala: This unit does the main job of inlining. It transforms a call with a given right hand side into a list of bindings and an expansion. - InlineReducer.scala: A helper class used by Inliner that does rewriting of inlined code with the aim of optimizing it. The three units are joined by `PrepareInlineable` in package `inlines`.
- Loading branch information
Showing
23 changed files
with
2,010 additions
and
1,953 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
Oops, something went wrong.