Handbook
Glossary
##tagged>integer
Vocabulary
compiler
.
cfg
.
instructions
Definition
IN:
compiler.cfg.instructions
TUPLE:
##tagged>integer
<
foldable-insn
dst src insn#
;
Methods
USING:
accessors
compiler.cfg.gvn.avail
compiler.cfg.instructions
kernel
;
M:
##tagged>integer
>avail-insn-defs
[
]
change-dst
drop
;
USING:
accessors
compiler.cfg.gvn.avail
compiler.cfg.instructions
kernel
;
M:
##tagged>integer
>avail-insn-uses
[
dup
>avail-vreg
or*
]
change-src
drop
;
USING:
accessors
arrays
compiler.cfg.gvn.expressions
compiler.cfg.gvn.graph
compiler.cfg.instructions
kernel
sequences.private
;
M:
##tagged>integer
>expr
\
##tagged>integer
swap
[
src>>
vreg>vn
]
keep
drop
2
f
<array>
1
swap
[
set-array-nth
]
keep
0
swap
[
set-array-nth
]
keep
;
USING:
accessors
arrays
compiler.cfg.instructions
compiler.cfg.value-numbering.expressions
compiler.cfg.value-numbering.graph
kernel
sequences.private
;
M:
##tagged>integer
>expr
\
##tagged>integer
swap
[
src>>
vreg>vn
]
keep
drop
2
f
<array>
1
swap
[
set-array-nth
]
keep
0
swap
[
set-array-nth
]
keep
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linear-scan.assignment
kernel
;
M:
##tagged>integer
assign-insn-defs
[
vreg>reg
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linear-scan.assignment
kernel
;
M:
##tagged>integer
assign-insn-uses
[
vreg>reg
]
change-src
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.ssa.destruction.private
kernel
make
;
M:
##tagged>integer
cleanup-insn
dup
useful-copy?
[
,
]
[
drop
]
if
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.destruction.coalescing
kernel
;
M:
##tagged>integer
coalesce-now
[
dst>>
]
[
src>>
]
bi
t
try-eliminate-copy
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.representations.rewrite
kernel
;
M:
##tagged>integer
convert-insn-defs
[
converted-value
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.representations.rewrite
kernel
;
M:
##tagged>integer
convert-insn-uses
[
converted-value
]
change-src
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
cpu.architecture
kernel
;
M:
##tagged>integer
defs-vreg-reps
drop
{
int-rep
}
;
USING:
accessors
arrays
compiler.cfg.def-use
compiler.cfg.instructions
;
M:
##tagged>integer
defs-vregs
dst>>
1array
;
USING:
accessors
compiler.cfg.instructions
compiler.codegen
cpu.architecture
kernel
;
M:
##tagged>integer
generate-insn
[
dst>>
]
keep
[
src>>
]
keep
drop
%tagged>integer
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.liveness
kernel
;
M:
##tagged>integer
lookup-base-pointer*
nip
src>>
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.renaming
kernel
;
M:
##tagged>integer
rename-insn-defs
[
rename-value
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.renaming
kernel
;
M:
##tagged>integer
rename-insn-uses
[
rename-value
]
change-src
drop
;
USING:
accessors
combinators
compiler.cfg.gvn.graph
compiler.cfg.gvn.math
compiler.cfg.gvn.rewrite
compiler.cfg.instructions
kernel
layouts
;
M:
##tagged>integer
rewrite
[
dst>>
]
[
src>>
vreg>insn
]
bi
{
{
[
dup
##load-integer?
]
[
val>>
tag-fixnum
##load-integer
new-insn
]
}
{
[
dup
f-insn?
]
[
drop
\
f
type-number
##load-integer
new-insn
]
}
[
2drop
f
]
}
cond
;
USING:
accessors
combinators
compiler.cfg.instructions
compiler.cfg.value-numbering.graph
compiler.cfg.value-numbering.math
compiler.cfg.value-numbering.rewrite
kernel
layouts
;
M:
##tagged>integer
rewrite
[
dst>>
]
[
src>>
vreg>insn
]
bi
{
{
[
dup
##load-integer?
]
[
val>>
tag-fixnum
##load-integer
new-insn
]
}
{
[
dup
f-insn?
]
[
drop
\
f
type-number
##load-integer
new-insn
]
}
[
2drop
f
]
}
cond
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
##tagged>integer
ssa-rename-insn-defs
[
gen-name
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
##tagged>integer
ssa-rename-insn-uses
[
top-name
]
change-src
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
cpu.architecture
kernel
;
M:
##tagged>integer
uses-vreg-reps
drop
{
tagged-rep
}
;
USING:
accessors
arrays
compiler.cfg.def-use
compiler.cfg.instructions
;
M:
##tagged>integer
uses-vregs
src>>
1array
;