1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-16 16:50:21 +02:00

Add pass to resolve free toplevel references in declarative modules

* am/bootstrap.am (SOURCES):
* module/Makefile.am (SOURCES):
* module/language/tree-il/optimize.scm (make-optimizer): Wire up the new
pass.
* module/language/tree-il/resolve-free-vars.scm: New pass.
* module/system/base/optimize.scm (available-optimizations): Enable new
pass at -O1.
This commit is contained in:
Andy Wingo 2021-04-01 14:46:01 +02:00
parent 809b165128
commit a892791b43
5 changed files with 287 additions and 0 deletions

View file

@ -28,6 +28,7 @@
(match lang-name
('tree-il
'((#:cps? 2)
(#:resolve-free-vars? 1)
(#:resolve-primitives? 1)
(#:expand-primitives? 1)
(#:letrectify? 2)