extern ir_op *op_be_Perm;
extern ir_op *op_be_Copy;
extern ir_op *op_be_Keep;
+extern ir_op *op_be_CopyKeep;
extern ir_op *op_be_Call;
extern ir_op *op_be_Return;
extern ir_op *op_be_IncSP;
ir_node *be_new_Reload(const arch_register_class_t *cls, const arch_register_class_t *cls_frame, ir_graph *irg, ir_node *bl, ir_node *frame, ir_node *spill_node, ir_mode *mode);
enum {
- be_pos_Copy_orig = 0
+ be_pos_Copy_op = 0
};
ir_node *be_new_Copy(const arch_register_class_t *cls, ir_graph *irg, ir_node *block, ir_node *in);
+ir_node *be_get_Copy_op(const ir_node *cpy);
+
ir_node *be_new_Perm(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, int arity, ir_node *in[]);
ir_node *be_new_Keep(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, int arity, ir_node *in[]);
*/
ir_node *be_new_IncSP(const arch_register_t *sp, ir_graph *irg, ir_node *bl, ir_node *old_sp, ir_node *mem, unsigned amount, be_stack_dir_t dir);
+/** Returns the previous node that computes the stack pointer. */
+ir_node *be_get_IncSP_pred(ir_node *incsp);
-
+/** Sets a new offset to a IncSP node. */
void be_set_IncSP_offset(ir_node *irn, unsigned offset);
+
+/** Gets the offset from a IncSP node. */
unsigned be_get_IncSP_offset(const ir_node *irn);
+/** Sets a new direction to a IncSP node. */
void be_set_IncSP_direction(ir_node *irn, be_stack_dir_t dir);
+
+/** Gets the direction from a IncSP node. */
be_stack_dir_t be_get_IncSP_direction(const ir_node *irn);
/** Gets the call entity or NULL if this is no static call. */