From: Sebastian Hack Date: Tue, 9 May 2006 14:51:45 +0000 (+0000) Subject: Added a comment X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=766ec847ca2f0523d203535598b97ed8c4b85feb;p=libfirm Added a comment --- diff --git a/ir/be/benode_t.h b/ir/be/benode_t.h index e26cc44e2..fd7f4e330 100644 --- a/ir/be/benode_t.h +++ b/ir/be/benode_t.h @@ -265,8 +265,27 @@ ir_node *be_new_RegParams(ir_graph *irg, ir_node *bl, int n_out); ir_node *be_new_Barrier(ir_graph *irg, ir_node *bl, int n, ir_node *in[]); +/** + * Make a spill node and insert it into the schedule. + * + * @param arch_env The architecture environment. + * @param irn The node to be spilled. + * @param spill_ctx The context in which the spill is introduced (This is mostly == irn up to the case of Phis). + * @return The new spill node. + */ ir_node *be_spill(const arch_env_t *arch_env, ir_node *irn, ir_node *spill_ctx); -ir_node *be_reload(const arch_env_t *arch_env, const arch_register_class_t *cls, ir_node *reloader, ir_mode *mode, ir_node *spill); + +/** + * Make a reload and insert it into the schedule. + * + * @param arch_env The architecture environment. + * @param cls The register class of the reloaded value. + * @param insert The node in the schedule in front of which the reload is inserted. + * @param mode The mode of the original (spilled) value. + * @param spill The spill node corresponding to this reload. + * @return A freshly made reload. + */ +ir_node *be_reload(const arch_env_t *arch_env, const arch_register_class_t *cls, ir_node *insert, ir_mode *mode, ir_node *spill); enum { be_pos_CopyKeep_op = 0