mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
Type and range inference for CPS
* module/language/cps/types.scm: New file, implementing type and range inference over CPS. * module/language/cps/type-fold.scm: New file, implementing abstract constant folding for CPS. * module/Makefile.am: Add the new files. * module/language/cps/compile-bytecode.scm: Wire up type-fold, but currently disabled.
This commit is contained in:
parent
7ed92f0a9c
commit
8bc65d2d64
4 changed files with 1706 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
|||
#:use-module (language cps simplify)
|
||||
#:use-module (language cps slot-allocation)
|
||||
#:use-module (language cps specialize-primcalls)
|
||||
#:use-module (language cps type-fold)
|
||||
#:use-module (system vm assembler)
|
||||
#:export (compile-bytecode))
|
||||
|
||||
|
@ -73,6 +74,7 @@
|
|||
(exp (run-pass exp elide-values #:elide-values? #t))
|
||||
(exp (run-pass exp prune-bailouts #:prune-bailouts? #t))
|
||||
(exp (run-pass exp eliminate-common-subexpressions #:cse? #t))
|
||||
(exp (run-pass exp type-fold #:type-fold? #f))
|
||||
(exp (run-pass exp resolve-self-references #:resolve-self-references? #t))
|
||||
(exp (run-pass exp eliminate-dead-code #:eliminate-dead-code? #t))
|
||||
(exp (run-pass exp simplify #:simplify? #t)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue