Commit 8b5f5ff3 authored by Michael Beck's avatar Michael Beck
Browse files

be_get_FrameAddr_frame() added

[r14518]
parent be161fc8
......@@ -576,6 +576,7 @@ void be_Keep_add_node(ir_node *keep, const arch_register_class_t *cls, ir_node *
be_node_set_reg_class(keep, n, cls);
}
/* creates a be_Call */
ir_node *be_new_Call(dbg_info *dbg, ir_graph *irg, ir_node *bl, ir_node *mem, ir_node *sp, ir_node *ptr,
int n_outs, int n, ir_node *in[], ir_type *call_tp)
{
......@@ -860,6 +861,11 @@ ir_node *be_new_FrameAddr(const arch_register_class_t *cls_frame, ir_graph *irg,
return optimize_node(irn);
}
ir_node *be_get_FrameAddr_frame(ir_node *node) {
assert(be_is_FrameAddr(node));
return get_irn_n(node, be_pos_FrameAddr_ptr);
}
ir_node *be_new_CopyKeep(const arch_register_class_t *cls, ir_graph *irg, ir_node *bl, ir_node *src, int n, ir_node *in_keep[], ir_mode *mode)
{
ir_node *irn;
......
......@@ -195,8 +195,12 @@ enum {
be_pos_FrameAddr_ptr = 0
};
/** Create a new FrameAddr node. */
ir_node *be_new_FrameAddr(const arch_register_class_t *cls_frame, ir_graph *irg, ir_node *bl, ir_node *frame, ir_entity *ent);
/** Return the frame input of a FrameAddr node. */
ir_node *be_get_FrameAddr_frame(ir_node *node);
/**
* Position numbers for the be_AddSP inputs
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment