Handbook
Glossary
convert-phi ( insn preds -- )
Vocabulary
compiler
.
cfg
.
ssa
.
cssa
Inputs
insn
an
object
preds
an
object
Outputs
None
Definition
USING:
accessors
assocs
compiler.cfg.registers
namespaces
sequences
;
IN:
compiler.cfg.ssa.cssa
::
convert-phi
( insn preds -- )
insn
dst>>
:>
dst dst
rep-of
:>
rep insn
inputs>>
:>
inputs
rep
next-vreg-rep
:>
dst'
{
dst dst'
}
phi-copies
get
push
dst' insn
dst<<
preds
[|
pred |
pred inputs
[
pred rep
convert-operand
]
change-at
]
each
;