Handbook
Glossary
emit-loop-call ( successor-block current-block -- )
Final stage of compilation generates machine code from dataflow IR
Prev:
emit-call ( block word height -- block' )
Next:
emit-actual-if ( block #if -- block' )
Vocabulary
compiler
.
cfg
.
builder
Inputs
successor-block
a
basic-block
current-block
a
basic-block
Outputs
None
Word description
Sets the given block as the successor of the current block. Then ends the block.
Definition
USING:
compiler.cfg.builder.blocks
compiler.cfg.instructions
compiler.cfg.utilities
kernel
;
IN:
compiler.cfg.builder
:
emit-loop-call
( successor-block current-block -- )
##safepoint,
##branch,
[
swap
connect-bbs
]
[
end-basic-block
]
bi
;