factor/basis/compiler/cfg/save-contexts/save-contexts-docs.factor

26 lines
1.2 KiB
Factor
Raw Normal View History

USING: compiler.cfg compiler.cfg.instructions help.markup help.syntax
2015-05-13 19:09:14 -04:00
math sequences kernel ;
IN: compiler.cfg.save-contexts
HELP: insert-save-contexts
{ $values { "cfg" cfg } }
{ $description "Inserts " { $link ##save-context } " instructions in each " { $link basic-block } " in the cfg that needs them. Save contexts are needed after instructions that modify the context, or instructions that read parameter registers." }
{ $see-also insns-needs-save-context? } ;
HELP: insns-needs-save-context?
2015-05-13 19:09:14 -04:00
{ $values { "insns" sequence } { "?" boolean } }
{ $description "Whether to insert a " { $link ##save-context } " instruction in the given instruction sequence or not. Only instructions that can allocate memory mandates save contexts." }
{ $see-also gc-map-insn } ;
HELP: save-context-offset
{ $values { "insns" sequence } { "n" integer } }
{ $description { $link ##save-context } " must be placed after instructions that modify the context, or instructions that read parameter registers." } ;
ARTICLE: "compiler.cfg.save-contexts" "Insert context saves"
"Inserts " { $link ##save-context } " in blocks that need them."
$nl
"Main word:"
{ $subsections insert-save-contexts } ;
ABOUT: "compiler.cfg.save-contexts"