diff options
author | Andy Wingo <wingo@pobox.com> | 2021-03-23 21:11:44 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2021-05-11 21:39:07 +0200 |
commit | cbfad75fa6caee89793090efa1a81e2b3a2bfe11 (patch) | |
tree | 23e8b01d268477f02783242ce9f91a153e25393e /module/system/base/optimize.scm | |
parent | a892791b43a68a80f2caeab49b123bc828324969 (diff) | |
download | guile-cbfad75fa6caee89793090efa1a81e2b3a2bfe11.tar.gz |
Add support for recording inlinable module exports
* module/language/tree-il/inlinable-exports.scm: New module.
* am/bootstrap.am:
* module/Makefile.am:
* module/language/tree-il/optimize.scm (make-optimizer):
* module/system/base/optimize.scm (available-optimizations): Wire up new
module.
* module/ice-9/boot-9.scm (module): Add inlinable-exports field.
(define-module*): Add #:inlinable-exports kwarg.
Diffstat (limited to 'module/system/base/optimize.scm')
-rw-r--r-- | module/system/base/optimize.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/system/base/optimize.scm b/module/system/base/optimize.scm index 1fd666376..8da908da6 100644 --- a/module/system/base/optimize.scm +++ b/module/system/base/optimize.scm @@ -1,6 +1,6 @@ ;;; Optimization flags -;; Copyright (C) 2018, 2020 Free Software Foundation, Inc. +;; Copyright (C) 2018, 2020, 2021 Free Software Foundation, Inc. ;;;; This library is free software; you can redistribute it and/or ;;;; modify it under the terms of the GNU Lesser General Public @@ -34,7 +34,9 @@ (#:letrectify? 2) (#:seal-private-bindings? 3) (#:partial-eval? 1) - (#:eta-expand? 2))) + (#:eta-expand? 2) + (#:inlinable-exports? 1) + (#:cross-module-inlining? 2))) ('cps '( ;; (#:split-rec? #t) (#:simplify? 2) |