X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbespilloptions.h;h=6381eb18650498f9072a06834087d6d79ffdf844;hb=44e6732d113683617bdef5f8b5d0fd7f97bbf8f9;hp=112fc6548f7dce794e746ce148cc1ed59be94197;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/bespilloptions.h b/ir/be/bespilloptions.h index 112fc6548..6381eb186 100644 --- a/ir/be/bespilloptions.h +++ b/ir/be/bespilloptions.h @@ -33,11 +33,34 @@ extern int be_coalesce_spill_slots; extern int be_do_remats; +/** + * An entry in the list of spill-algorithms. + */ typedef struct be_spiller_t { - void (*spill) (be_irg_t *birg, const arch_register_class_t *cls); + /** + * The spill function. + * + * @param birg the graph to spill on + * @param cls the register class to spill + */ + void (*spill)(be_irg_t *birg, const arch_register_class_t *cls); } be_spiller_t; + +/** + * Register a new spill algorithm. + * + * @param name the name of the spill algorithm, + * used to select it + * @param spiller a spill entry + */ void be_register_spiller(const char *name, be_spiller_t *spiller); +/** + * Execute the selected spill algorithm + * + * @param birg the graph to spill on + * @param cls the register class to spill + */ void be_do_spill(be_irg_t *birg, const arch_register_class_t *cls); -#endif /* FIRM_BE_BESPILL_OPTIONS_H */ +#endif