compiler.cfg.*: stub docs for register scheduling vocabs
parent
769ca5550f
commit
6560778d2a
|
@ -0,0 +1,24 @@
|
|||
USING: compiler.cfg.instructions help.markup help.syntax sequences ;
|
||||
IN: compiler.cfg.def-use
|
||||
|
||||
HELP: defs-vregs
|
||||
{ $values { "insn" insn } { "seq" sequence } }
|
||||
{ $description "Returns the sequence of vregs defined, or introduced, by this instruction." }
|
||||
{ $examples
|
||||
{ $example
|
||||
"USING: compiler.cfg.def-use prettyprint ;"
|
||||
"T{ ##peek f 37 D 0 0 } defs-vregs ."
|
||||
"{ 37 }"
|
||||
}
|
||||
} ;
|
||||
|
||||
HELP: uses-vregs
|
||||
{ $values { "insn" insn } { "seq" sequence } }
|
||||
{ $description "Returns the sequence of vregs used by this instruction." }
|
||||
{ $examples
|
||||
{ $example
|
||||
"USING: compiler.cfg.def-use prettyprint ;"
|
||||
"T{ ##replace f 37 D 1 6 } uses-vregs ."
|
||||
"{ 37 }"
|
||||
}
|
||||
} ;
|
|
@ -0,0 +1,6 @@
|
|||
USING: compiler.cfg.instructions help.markup help.syntax sequences ;
|
||||
IN: compiler.cfg.dependence
|
||||
|
||||
HELP: <node>
|
||||
{ $values { "insn" insn } { "node" node } }
|
||||
{ $description "Creates a new dependency graph node from an CFG instruction." } ;
|
|
@ -0,0 +1,10 @@
|
|||
USING: compiler.cfg compiler.cfg.height help.markup help.syntax sequences ;
|
||||
IN: compiler.cfg.scheduling
|
||||
|
||||
HELP: number-insns
|
||||
{ $values { "insns" sequence } }
|
||||
{ $description "Assigns a sequence number to the " { $slot "insn#" } " slot of each instruction in the sequence." } ;
|
||||
|
||||
HELP: schedule-instructions
|
||||
{ $values { "cfg" cfg } { "cfg'" cfg } }
|
||||
{ $description "Performs a instruction scheduling optimization pass over the CFG to attempt to reduce the number of spills. The step must be performed after " { $link normalize-height } " or else invalid peeks might be inserted into the CFG." } ;
|
Loading…
Reference in New Issue