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

20 lines
747 B
Factor
Raw Normal View History

2014-05-26 07:26:00 -04:00
USING: compiler.cfg compiler.cfg.linearization 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." }
{ $see-also generate } ;
HELP: block-number
{ $values { "bb" basic-block } { "n" integer } }
{ $description "Retrieves this blocks block number. Must not be called before " { $link number-blocks } "." } ;
HELP: number-blocks
{ $values { "bbs" sequence } }
{ $description "Associate each block with a block number and save the result in the " { $link numbers } " map." } ;