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
ca87d685
Commit
ca87d685
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed define-move-function to assume that the first arg is a VOP instead
of a node.
parent
ee793680
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/vmdef.lisp
+10
-10
10 additions, 10 deletions
compiler/vmdef.lisp
with
10 additions
and
10 deletions
compiler/vmdef.lisp
+
10
−
10
View file @
ca87d685
...
...
@@ -243,9 +243,9 @@
"Define-Move-Function (Name Cost) lambda-list ({(From-SC*) (To-SC*)}*) form*
Define the function Name and note it as the function used for moving operands
from the From-SCs to the To-SCs. Cost is the cost of this move operation.
The function is called with three arguments: the
node
(for
source
context),
and the
source and destination TNs. An ASSEMBLE form is wrapped around the
body.
All uses of DEFINE-MOVE-FUNCTION should be compiled before any uses of
The function is called with three arguments: the
VOP
(for context),
and the
source and destination TNs. An ASSEMBLE form is wrapped around the
body.
All uses of DEFINE-MOVE-FUNCTION should be compiled before any uses of
DEFINE-VOP."
(
when
(
or
(
oddp
(
length
scs
))
(
null
scs
))
(
error
"Malformed SCs spec: ~S."
scs
))
...
...
@@ -259,7 +259,7 @@
(
setf
(
svref
(
sc-load-costs
to-sc
)
num
)
',cost
)))))
(
defun
,
name
,
lambda-list
(
assemble
,
(
first
lambda-list
)
,@
body
))))
(
assemble
(
vop-node
,
(
first
lambda-list
)
)
,@
body
))))
(
defconstant
sc-vop-slots
'
((
:move
.
sc-move-vops
)
...
...
@@ -1020,21 +1020,21 @@
(
load-tn
(
operand-parse-load-tn
op
)))
(
if
funs
(
let*
((
tn
`
(
tn-ref-tn
,
(
operand-parse-temp
op
)))
(
n-
node
(
or
(
vop-parse-
node
-var
parse
)
(
setf
(
vop-parse-
node
-var
parse
)
(
gensym
))))
(
n-
vop
(
or
(
vop-parse-
vop
-var
parse
)
(
setf
(
vop-parse-
vop
-var
parse
)
(
gensym
))))
(
form
(
if
(
rest
funs
)
`
(
sc-case
,
tn
,@
(
mapcar
#'
(
lambda
(
x
)
`
(
,
(
mapcar
#'
sc-name
(
car
x
))
,
(
if
load-p
`
(
,
(
cdr
x
)
,
n-
node
,
tn
`
(
,
(
cdr
x
)
,
n-
vop
,
tn
,
load-tn
)
`
(
,
(
cdr
x
)
,
n-
node
,
load-tn
`
(
,
(
cdr
x
)
,
n-
vop
,
load-tn
,
tn
))))
funs
))
(
if
load-p
`
(
,
(
cdr
(
first
funs
))
,
n-
node
,
tn
,
load-tn
)
`
(
,
(
cdr
(
first
funs
))
,
n-
node
,
load-tn
,
tn
)))))
`
(
,
(
cdr
(
first
funs
))
,
n-
vop
,
tn
,
load-tn
)
`
(
,
(
cdr
(
first
funs
))
,
n-
vop
,
load-tn
,
tn
)))))
(
if
(
eq
(
operand-parse-load
op
)
t
)
`
(
when
,
load-tn
,
form
)
`
(
when
(
eq
,
load-tn
,
(
operand-parse-name
op
))
...
...
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