mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Add representations for new primcalls
* module/language/cps/utils.scm (compute-var-representations): Add representations for vector-length and so on.
This commit is contained in:
parent
85f85a0fc0
commit
896960dade
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Continuation-passing style (CPS) intermediate language (IL)
|
||||
|
||||
;; Copyright (C) 2013, 2014, 2015, 2017, 2018, 2019, 2020, 2021 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2013, 2014, 2015, 2017, 2018, 2019, 2020, 2021, 2023 Free Software Foundation, Inc.
|
||||
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -406,7 +406,9 @@ by a label, respectively."
|
|||
'ursh/immediate 'ulsh/immediate
|
||||
'u8-ref 'u16-ref 'u32-ref 'u64-ref
|
||||
'word-ref 'word-ref/immediate
|
||||
'untag-char))
|
||||
'untag-char
|
||||
'vector-length 'vtable-size 'bv-length
|
||||
'string-length 'string-ref))
|
||||
(intmap-add representations var 'u64))
|
||||
(($ $primcall (or 'untag-fixnum
|
||||
'assume-s64
|
||||
|
@ -414,7 +416,8 @@ by a label, respectively."
|
|||
'srsh 'srsh/immediate
|
||||
's8-ref 's16-ref 's32-ref 's64-ref))
|
||||
(intmap-add representations var 's64))
|
||||
(($ $primcall (or 'pointer-ref/immediate
|
||||
(($ $primcall (or 'bv-contents
|
||||
'pointer-ref/immediate
|
||||
'tail-pointer-ref/immediate))
|
||||
(intmap-add representations var 'ptr))
|
||||
(($ $code)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue