X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnode.h;h=e9991797cacb108f96ce32c52f3bb9f3619c267c;hb=097a68ff443e267f0de3d5455a580f8394f710b2;hp=ebdbf0aed1eedd05f5e55ba04c6ed34c23490c70;hpb=75da6f9fb1f03333a5faf5c4479bbe6917981b74;p=libfirm diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index ebdbf0aed..e9991797c 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -105,9 +105,19 @@ void set_irn_in (ir_node *node, int arity, ir_node *in[]); /** * Get the n-th predecessor of a node. * This function removes Id predecessors. + * This function automatically handles intra- and interprocedural views. */ ir_node *get_irn_n (const ir_node *node, int n); + +/** + * Get the n-th predecessor of a node in intraprocedural view. + * Can be used always if it's know that node is not a split one. + */ ir_node *get_irn_intra_n (const ir_node *node, int n); + +/** + * Get the n-th predecessor of a node in interprocedural view. + */ ir_node *get_irn_inter_n (const ir_node *node, int n); /** Replace the n-th predecessor of a node with a new one. */