factor/basis/compiler/cfg/linearization/linearization-docs.factor

16 lines
608 B
Factor
Raw Normal View History

2014-12-14 22:07:37 -05:00
USING: compiler.cfg compiler.cfg.linearization compiler.cfg.rpo
compiler.codegen help.markup help.syntax kernel macros math sequences ;
2014-05-26 07:26:00 -04:00
IN: compiler.cfg.linearization
HELP: linearization-order
{ $values
{ "cfg" cfg }
2014-06-08 21:20:27 -04:00
{ "bbs" sequence }
2014-05-26 07:26:00 -04:00
}
{ $description "Lists the basic blocks in linearization order. That is, the order in which they will be written in the generated assembly code." }
2014-12-14 22:07:37 -05:00
{ $see-also generate reverse-post-order } ;
HELP: number-blocks
{ $values { "bbs" sequence } }
{ $description "Assigns the " { $slot "number" } " slot of each " { $link basic-block } " given it's sequence index." } ;