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

38 lines
1.6 KiB
Factor
Raw Normal View History

2014-12-18 11:38:09 -05:00
USING: compiler.cfg.stacks.local compiler.tree help.markup help.syntax math
sequences ;
2014-05-22 13:01:57 -04:00
IN: compiler.cfg.stacks
2014-12-18 11:38:09 -05:00
HELP: ds-push
{ $values { "vreg" "a virtual register" } }
{ $description "Used when translating the " { $link #push } " SSA node to CFG form for pushing a literal value onto the data stack." } ;
2014-05-22 13:01:57 -04:00
HELP: begin-stack-analysis
{ $description "Initializes a set of variables related to stack analysis of Factor words." }
{ $see-also current-height } ;
2014-12-30 20:46:35 -05:00
HELP: end-stack-analysis
{ $description "Ends the stack analysis of the current cfg." } ;
2014-05-22 13:01:57 -04:00
HELP: adjust-d
{ $values { "n" number } }
{ $description "Changes the height of the current data stack." } ;
2014-12-30 20:46:35 -05:00
HELP: ds-drop
{ $description "Used to signal to the stack analysis that the datastacks height is decreased by one." } ;
2014-12-27 07:18:58 -05:00
HELP: ds-store
{ $values { "vregs" "a " { $link sequence } " of vregs." } }
2014-12-27 07:18:58 -05:00
{ $description "Registers that a sequence of vregs are stored at at each corresponding index of the data stack." } ;
2014-05-22 13:01:57 -04:00
HELP: rs-store
{ $values { "vregs" "a " { $link sequence } " of vregs." } }
{ $description "Stores one or more virtual register values on the retain stack. This modifies the " { $link current-height } " dynamic variable." } ;
HELP: 2inputs
{ $values { "vreg1" "a vreg" } { "vreg2" "a vreg" } }
{ $description "Lifts the two topmost values from the datastack and stores them in virtual registers. The datastacks height is adjusted afterwards." } ;
HELP: 3inputs
{ $values { "vreg1" "a vreg" } { "vreg2" "a vreg" } { "vreg3" "a vreg" } }
{ $description "Lifts the three topmost values from the datastack and stores them in virtual registers. The datastacks height is adjusted afterwards." } ;