factor/basis/compiler/cfg/builder/blocks/blocks-docs.factor

23 lines
918 B
Factor
Raw Normal View History

2014-05-22 13:01:57 -04:00
USING: compiler.cfg compiler.tree help.markup help.syntax math ;
IN: compiler.cfg.builder.blocks
2014-05-22 13:01:57 -04:00
HELP: initial-basic-block
{ $description "Creates an initial empty " { $link basic-block } " and stores it in the basic-block dynamic variable." } ;
HELP: begin-basic-block
{ $description "Terminates the current block and initializes a new " { $link basic-block } " to begin outputting instructions to. The new block is included in the old blocks " { $slot "successors" } "." } ;
HELP: make-kill-block
{ $description "Marks the current " { $link basic-block } " being processed as a kill block." } ;
2014-05-22 13:01:57 -04:00
HELP: call-height
{ $values { "#call" #call } { "n" number } }
{ $description "Calculates how many items a " { $link #call } " will add or remove from the data stack." }
{ $examples
{ $example
"USING: compiler.cfg.builder.blocks prettyprint ;"
"[ 3append ] build-tree second call-height ."
"-2"
}
} ;