2014-12-13 17:05:27 -05:00
USING: assocs compiler.cfg compiler.cfg.instructions heaps help.markup
help.syntax math ;
2014-11-15 01:42:44 -05:00
IN: compiler.cfg.linear-scan.assignment
2014-12-13 17:05:27 -05:00
HELP: machine-live-ins
{ $var-description "Mapping from basic blocks to values which are live at the start on all incoming CFG edges." } ;
HELP: machine-live-outs
{ $var-description "Mapping from " { $link basic-block } " to an " { $link assoc } " of pairs which are the values that are live at the end. The keys of the pairs are virtual registers and the values are either real registers or spill slots." } ;
HELP: unhandled-intervals
{ $var-description { $link min-heap } " of live intervals which still need a register allocation." } ;
2014-11-15 01:42:44 -05:00
HELP: assign-registers-in-insn
{ $values { "insn" insn } }
{ $description "Assigns physical registers and spill slots for the virtual registers used by the instruction." } ;
HELP: assign-gc-roots
{ $values { "gc-map" gc-map } }
2014-11-16 06:12:14 -05:00
{ $description "Assigns spill slots for all gc roots in a gc map." } ;
HELP: assign-derived-roots
{ $values { "gc-map" gc-map } }
{ $description "Assigns pairs of spill slots for all derived roots in a gc map." } ;
{ assign-gc-roots assign-derived-roots } related-words
2014-11-15 01:42:44 -05:00
HELP: vreg>reg
2014-12-13 17:05:27 -05:00
{ $values { "vreg" "virtual register" } { "reg" "register" } }
2014-11-15 01:42:44 -05:00
{ $description "If a live vreg is not in the pending set, then it must have been spilled." } ;
2014-12-13 17:05:27 -05:00
HELP: vregs>regs
{ $values { "vregs" "a sequence of virtual registers" } { "assoc" assoc } }
{ $description "Creates a mapping of virtual registers to registers." } ;
HELP: vreg>spill-slot
{ $values { "vreg" integer } { "spill-slot" spill-slot } }
{ $description "Converts a vreg number to a spill slot." } ;
2014-11-15 01:42:44 -05:00
ARTICLE: "compiler.cfg.linear-scan.assignment" "Assigning registers to live intervals"
2014-12-13 17:05:27 -05:00
"The " { $vocab-link "compiler.cfg.linear-scan.assignment" } " assigns registers to live intervals." $nl
"Vreg transformations:"
{ $subsections vreg>reg vreg>spill-slot } ;
2014-11-15 01:42:44 -05:00
ABOUT: "compiler.cfg.linear-scan.assignment"