Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
e56ec4bf
Commit
e56ec4bf
authored
31 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Add support for :when DEFTRANSFORM argument.
parent
6e197c06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/macros.lisp
+8
-4
8 additions, 4 deletions
compiler/macros.lisp
with
8 additions
and
4 deletions
compiler/macros.lisp
+
8
−
4
View file @
e56ec4bf
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/macros.lisp,v 1.3
3
1993/0
1
/1
4 21:33:01 wlott
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/macros.lisp,v 1.3
4
1993/0
5
/1
1 13:56:57 ram
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -397,7 +397,7 @@
(
defmacro
deftransform
(
name
(
lambda-list
&optional
(
arg-types
'*
)
(
result-type
'*
)
&key
result
policy
node
defun-only
eval-name
important
)
eval-name
important
(
when
:native
)
)
&body
(
body
decls
doc
))
"Deftransform Name (Lambda-List [Arg-Types] [Result-Type] {Key Value}*)
Declaration* [Doc-String] Form*
...
...
@@ -453,7 +453,10 @@
:Important
- If supplied and non-NIL, note this transform as ``important,''
which means effeciency notes will be generated when this
transform fails even if brevity=speed (but not if brevity>speed)"
transform fails even if brevity=speed (but not if brevity>speed)
:When {:Native | :Byte | :Both}
- Indicates whether this transform applies to native code,
byte-code or both (default :native.)"
(
when
(
and
eval-name
defun-only
)
(
error
"Can't specify both DEFUN-ONLY and EVAL-NAME."
))
...
...
@@ -492,7 +495,8 @@
`'
(
function
,
arg-types
,
result-type
))
#'
(
lambda
,@
stuff
)
,
doc
,
(
if
important
t
nil
)))))))
,
(
if
important
t
nil
)
,
when
))))))
;;;; Defknown, Defoptimizer:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment