1d54b30df364e0f0b438868ca2ea26d1b91a5407
[libfirm] / ir / ir / irgmod.h
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 ** All rights reserved.
3 **
4 ** Authors: Martin Trapp, Christian Schaefer
5 **
6 ** irgmod.h: ir graph modification
7 */
8
9 # include "irnode.h"
10
11
12 /* Turns a node into a "useless" Tuple.  The Tuple just forms a tuple
13    from several inputs.  The tuples predecessors have to be
14    set by hand.
15    This is useful if a node returning a tuple is removed, but the Projs
16    extracting values from the tuple are not available. */
17 void turn_into_tuple (ir_node *node, int arity);
18
19 /* Exchanges two nodes by conserving edges leaving old (i.e., pointers)
20    pointing to old. */
21 inline void exchange (ir_node *old, ir_node *new);