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
9251d43d
Commit
9251d43d
authored
33 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Fixed to deal with new TAIL-SET semantics. All lambdas now have tail-sets,
but some may have a return type of NIL.
parent
ff6b1cfd
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/gtn.lisp
+14
-12
14 additions, 12 deletions
compiler/gtn.lisp
with
14 additions
and
12 deletions
compiler/gtn.lisp
+
14
−
12
View file @
9251d43d
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/gtn.lisp,v 1.1
0
1991/
0
2/
20
1
4
:5
7:46
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/gtn.lisp,v 1.1
1
1991/
1
2/
11
1
6
:5
4:17
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -109,11 +109,13 @@
;;;
(
defun
has-full-call-use
(
fun
)
(
declare
(
type
clambda
fun
))
(
do-uses
(
use
(
return-result
(
lambda-return
fun
))
nil
)
(
when
(
and
(
node-tail-p
use
)
(
basic-combination-p
use
)
(
eq
(
basic-combination-kind
use
)
:full
))
(
return
t
))))
(
let
((
return
(
lambda-return
fun
)))
(
and
return
(
do-uses
(
use
(
return-result
return
)
nil
)
(
when
(
and
(
node-tail-p
use
)
(
basic-combination-p
use
)
(
eq
(
basic-combination-kind
use
)
:full
))
(
return
t
))))))
;;; Use-Standard-Returns -- Internal
...
...
@@ -202,16 +204,16 @@
;;; Assign-Return-Locations -- Internal
;;;
;;; If Env has a Tail-Set, and the Tail-Set doesn't
have any Info, then make
;;; a Return-Info for it. If we choose a return
convention other than
;;; :Unknown, and this environment is for an XEP, then
break tail recursion on
;;; the XEP calls, since we must always use unknown
values when returning from
;;; an XEP.
;;; If Env has a Tail-Set
with a non-empty type
, and the Tail-Set doesn't
;;;
have any Info, then make
a Return-Info for it. If we choose a return
;;;
convention other than
:Unknown, and this environment is for an XEP, then
;;;
break tail recursion on
the XEP calls, since we must always use unknown
;;;
values when returning from
an XEP.
;;;
(
defun
assign-return-locations
(
fun
)
(
declare
(
type
clambda
fun
))
(
let
((
tails
(
lambda-tail-set
fun
)))
(
when
tails
(
unless
(
eq
(
tail-set-type
tails
)
*empty-type*
)
(
let
((
returns
(
or
(
tail-set-info
tails
)
(
setf
(
tail-set-info
tails
)
(
return-info-for-set
tails
)))))
...
...
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