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
c1bb7193
Commit
c1bb7193
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Added DELETE-COMPONENT and fixed DELETE-REF to do the right thing for
escape and cleanup lambdas.
parent
24894c42
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/ir1util.lisp
+21
-2
21 additions, 2 deletions
compiler/ir1util.lisp
with
21 additions
and
2 deletions
compiler/ir1util.lisp
+
21
−
2
View file @
c1bb7193
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.3
4
1991/04/0
2
1
1:06:18 wlott
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1util.lisp,v 1.3
5
1991/04/0
3
1
2:45:37 ram
Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -749,7 +749,8 @@ inlines
(
clambda
(
ecase
(
functional-kind
leaf
)
((
nil
:let
:mv-let
:escape
:cleanup
)
(
assert
(
not
(
functional-entry-function
leaf
))))
(
assert
(
not
(
functional-entry-function
leaf
)))
(
delete-lambda
leaf
))
(
:external
(
delete-lambda
leaf
))
((
:deleted
:optional
))))
...
...
@@ -1139,6 +1140,24 @@ inlines
(
let
((
block
(
continuation-block
prev
)))
(
and
(
block-component
block
)
(
not
(
block-delete-p
block
))))))))
;;; DELETE-COMPONENT -- Interface
;;;
;;; Delete all the blocks and functions in Component. We scan first marking
;;; the blocks as delete-p to prevent weird stuff from being triggered by
;;; deletion.
;;;
(
defun
delete-component
(
component
)
(
declare
(
type
component
component
))
(
do-blocks
(
block
component
)
(
setf
(
block-delete-p
block
)
t
))
(
dolist
(
fun
(
component-lambdas
component
))
(
setf
(
leaf-refs
fun
)
nil
)
(
delete-lambda
fun
))
(
do-blocks
(
block
component
)
(
delete-block
block
))
(
undefined-value
))
;;;; Leaf hackery:
...
...
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