forked from factor/factor
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compiler.cfg.representations.selection: some initial docs from comments
- Loading branch information
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
basis/compiler/cfg/representations/selection/selection-docs.factor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
USING: help.markup help.syntax math sequences ; | ||
IN: compiler.cfg.representations.selection | ||
|
||
HELP: costs | ||
{ $var-description "Maps vreg to representation to cost." } ; | ||
|
||
HELP: increase-cost | ||
{ $values { "rep" "representation symbol" } { "scc" "?" } { "factor" integer } } | ||
{ $description "Increase cost of keeping vreg in rep, making a choice of rep less likely. If the rep is not in the cost alist, it means this representation is prohibited." } ; | ||
|
||
HELP: init-costs | ||
{ $description "Initialize cost as 0 for each possibility." } ; | ||
|
||
HELP: minimize-costs | ||
{ $values { "costs" sequence } { "representations" sequence } } | ||
{ $description "For every vreg, compute preferred representation, that minimizes costs." } ; | ||
|
||
HELP: tagged-vregs | ||
{ $var-description "Vregs which must be tagged at the definition site because there is at least one usage that is not int-rep. If all usages are int-rep it is safe to untag at the definition site." } ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters