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
053f9163
Commit
053f9163
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added support for :ALIAS TNs.
parent
fbbbd8c3
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/represent.lisp
+12
-6
12 additions, 6 deletions
compiler/represent.lisp
with
12 additions
and
6 deletions
compiler/represent.lisp
+
12
−
6
View file @
053f9163
...
@@ -489,12 +489,13 @@
...
@@ -489,12 +489,13 @@
;;; SELECT-REPRESENTATIONS -- Interface
;;; SELECT-REPRESENTATIONS -- Interface
;;;
;;;
;;; Entry to representation selection. First we select the representation
;;; Entry to representation selection. First we select the representation
;;; for all normal TNs, setting the TN-SC. We then scan all the IR2,
;;; for all normal TNs, setting the TN-SC. After selecting the TN
;;; emitting any necessary coerce and move-arg VOPs. Finally, we scan all
;;; representations, we set the SC for all :ALIAS TNs to be the representation
;;; TNs looking for ones that might be placed on the number stack, noting
;;; chosen for the original TN. We then scan all the IR2, emitting any
;;; this so that the number-FP can be allocated. This must be done last,
;;; necessary coerce and move-arg VOPs. Finally, we scan all TNs looking for
;;; since references in new environments may be introduced by MOVE-ARG
;;; ones that might be placed on the number stack, noting this so that the
;;; insertion.
;;; number-FP can be allocated. This must be done last, since references in
;;; new environments may be introduced by MOVE-ARG insertion.
;;;
;;;
(
defun
select-representations
(
component
)
(
defun
select-representations
(
component
)
(
let
((
costs
(
make-array
sc-number-limit
))
(
let
((
costs
(
make-array
sc-number-limit
))
...
@@ -512,6 +513,11 @@
...
@@ -512,6 +513,11 @@
(
assert
sc
)
(
assert
sc
)
(
setf
(
tn-sc
tn
)
sc
))))
(
setf
(
tn-sc
tn
)
sc
))))
(
do
((
alias
(
ir2-component-alias-tns
2comp
)
(
tn-next
alias
)))
((
null
alias
))
(
setf
(
tn-sc
alias
)
(
tn-sc
(
tn-save-tn
alias
))))
(
do-ir2-blocks
(
block
component
)
(
do-ir2-blocks
(
block
component
)
(
emit-moves-and-coercions
block
))
(
emit-moves-and-coercions
block
))
...
...
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