Commit c2437b73 authored by Michael Beck's avatar Michael Beck
Browse files

get_IJmp_target() and set_IJmp_target() added

[r6154]
parent aaaf38b6
......@@ -779,6 +779,17 @@ free_End (ir_node *end) {
in array afterwards ... */
}
/* Return the target address of an IJmp */
ir_node *get_IJmp_target(ir_node *ijmp) {
assert(ijmp->op == op_IJmp);
return get_irn_n(ijmp, 0);
}
/** Sets the target address of an IJmp */
void set_IJmp_target(ir_node *ijmp, ir_node *tgt) {
assert(ijmp->op == op_IJmp);
set_irn_n(ijmp, 0, tgt);
}
/*
> Implementing the case construct (which is where the constant Proj node is
......
......@@ -332,6 +332,11 @@ void set_End_keepalive(ir_node *end, int pos, ir_node *ka);
free_End() frees these data structures. */
void free_End (ir_node *end);
/** Return the target address of an IJmp */
ir_node *get_IJmp_target(ir_node *ijmp);
/** Sets the target address of an IJmp */
void set_IJmp_target(ir_node *ijmp, ir_node *tgt);
/* We distinguish three kinds of Cond nodes. These can be distinguished
by the mode of the selector operand and an internal flag of type cond_kind.
......
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