This is the constantfold Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 08 17:48:38 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
constantfold
User-defined constant folding facility
Masataro Asai
LGPL
0.1
trivia
(system).
alexandria
(system).
iterate
(system).
lisp-namespace
(system).
package.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
constantfold/package.lisp
constantfold
(system).
constantfold
(macro).
unfold
(function).
%foldable-associative-fn
(function).
%foldable-commutative-associative-fn
(function).
%foldable-fn
(function).
*constant-form-doc-table*
(special variable).
*constant-form-table*
(special variable).
compiler-macro-form-name
(function).
constant-form-boundp
(function).
constant-form-copier
(function).
constant-form-p
(function).
constant-form-type
(type).
evaluate-constants
(function).
flatten-associative-nested-fn
(function).
foldable-associative-fn
(compiler macro).
foldable-commutative-associative-fn
(compiler macro).
foldable-fn
(compiler macro).
register-constant-form
(function).
symbol-constant-form
(function).
(setf symbol-constant-form)
(function).
unbound-constant-form
(condition).
wrap-inline
(function).
wrap-notinline
(function).
Packages are listed by definition order.
constantfold
alexandria
.
common-lisp
.
iterate
.
lisp-namespace
.
trivia.level2
.
constantfold
(macro).
unfold
(function).
%foldable-associative-fn
(function).
%foldable-commutative-associative-fn
(function).
%foldable-fn
(function).
*constant-form-doc-table*
(special variable).
*constant-form-table*
(special variable).
compiler-macro-form-name
(function).
constant-form-boundp
(function).
constant-form-copier
(function).
constant-form-p
(function).
constant-form-type
(type).
evaluate-constants
(function).
flatten-associative-nested-fn
(function).
foldable-associative-fn
(compiler macro).
foldable-commutative-associative-fn
(compiler macro).
foldable-fn
(compiler macro).
register-constant-form
(function).
symbol-constant-form
(function).
(setf symbol-constant-form)
(function).
unbound-constant-form
(condition).
wrap-inline
(function).
wrap-notinline
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Registers a constant folding compiler macros to the function NAME.
Performs constant-folding for associative functions.
Following optimization is performed:
(+ a 2 3 b) –> (+ a (+ 2 3) b) –> (+ a 5 b)
Performs constant-folding for commutative and associative functions.
Following optimization is performed:
(+ a 2 3 b 1) –> (+ (+ 2 3 1) a b) –> (+ 6 a b)
Performs a simple constant-folding. Constantfold when all arguments are constants.
Extracts the name of the function from the &whole argument of a compiler macro.
Automatically defined boolean function.
Recursively checks if the form is a constant form.
Returns a boolean. When FORM is a standard constant form reconized by
constantp, it also returns T as the secondary value.
Flattens a tree of forms of the same functions. For example, (+ (+ 2 3) (+ 5 6)) into (+ 2 3 5 6).
Automatically defined getter function. When DEFAULT is supplied, the value is set automatically.
Automatically defined setter function.
Allows further calls to the compiler macro.
Suppresses further calls to the compiler macro which otherwise causes an infinite loop.
unbound-variable
.
Jump to: | %
(
C E F M R S U W |
---|
Jump to: | %
(
C E F M R S U W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C F P S T U |
---|
Jump to: | C F P S T U |
---|