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
02219274
Commit
02219274
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Changed function-info-or-lose and %defknown to change the info environment
in *target-backend* if there is one.
parent
8814e5de
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/knownfun.lisp
+9
-4
9 additions, 4 deletions
compiler/knownfun.lisp
with
9 additions
and
4 deletions
compiler/knownfun.lisp
+
9
−
4
View file @
02219274
...
...
@@ -146,10 +146,13 @@
(
proclaim
'
(
function
%defknown
(
list
list
attributes
&key
(
derive-type
function
)
(
optimizer
function
))))
(
defun
%defknown
(
names
type
attributes
&key
derive-type
optimizer
)
(
declare
(
ignore
derive-type
))
(
let
((
ctype
(
specifier-type
type
))
(
info
(
make-function-info
:attributes
attributes
; :derive-type derive-type Until database is fixed...
:optimizer
optimizer
)))
:optimizer
optimizer
))
(
*info-environment*
(
or
(
backend-info-environment
*target-backend*
)
*info-environment*
)))
(
dolist
(
name
names
)
(
setf
(
info
function
type
name
)
ctype
)
(
setf
(
info
function
where-from
name
)
:declared
)
...
...
@@ -167,6 +170,8 @@
;;;
(
proclaim
'
(
function
function-info-or-lose
(
t
)
function-info
))
(
defun
function-info-or-lose
(
name
)
(
let
((
old
(
info
function
info
name
)))
(
unless
old
(
error
"~S is not a known function."
name
))
(
setf
(
info
function
info
name
)
(
copy-function-info
old
))))
(
let
((
*info-environment*
(
or
(
backend-info-environment
*target-backend*
)
*info-environment*
)))
(
let
((
old
(
info
function
info
name
)))
(
unless
old
(
error
"~S is not a known function."
name
))
(
setf
(
info
function
info
name
)
(
copy-function-info
old
)))))
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