Handbook
Glossary
(collect-vreg-reps) ( insn -- )
Vocabulary
compiler
.
cfg
.
representations
.
selection
Inputs
insn
an
object
Outputs
None
Definition
IN:
compiler.cfg.representations.selection
GENERIC:
(collect-vreg-reps)
( insn -- )
Methods
USING:
accessors
byte-arrays
combinators
compiler.cfg.instructions
compiler.cfg.representations.selection
cpu.architecture
kernel
math
;
M:
##load-reference
(collect-vreg-reps)
[
dst>>
]
[
obj>>
]
bi
{
{
[
dup
float?
]
[
drop
{
float-rep
double-rep
}
]
}
{
[
dup
byte-array?
]
[
drop
vector-reps
]
}
[
drop
{
}
]
}
cond
handle-def
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.selection
kernel
;
M:
insn
(collect-vreg-reps)
drop
;
USING:
arrays
compiler.cfg.instructions
compiler.cfg.representations.preferred
compiler.cfg.representations.selection
kernel
;
M:
vreg-insn
(collect-vreg-reps)
[
[
handle-use
]
each-use-rep
]
[
[
1array
handle-def
]
each-def-rep
]
[
[
1array
handle-def
]
each-temp-rep
]
tri
;