X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgmod.h;h=36c4fd8f5ec7815ba6980b8374cbd29782647e5d;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=1d54b30df364e0f0b438868ca2ea26d1b91a5407;hpb=45a9397451c25fb527c32c87f64ffefc72015c81;p=libfirm diff --git a/ir/ir/irgmod.h b/ir/ir/irgmod.h index 1d54b30df..36c4fd8f5 100644 --- a/ir/ir/irgmod.h +++ b/ir/ir/irgmod.h @@ -6,16 +6,21 @@ ** irgmod.h: ir graph modification */ -# include "irnode.h" +# ifndef _IRGMOD_H_ +# define _IRGMOD_H_ +# include "irnode.h" -/* Turns a node into a "useless" Tuple. The Tuple just forms a tuple - from several inputs. The tuples predecessors have to be +/* Turns a node into a "useless" Tuple. The Tuple node just forms a tuple + from several inputs. The predecessors of the tuple have to be set by hand. This is useful if a node returning a tuple is removed, but the Projs extracting values from the tuple are not available. */ void turn_into_tuple (ir_node *node, int arity); -/* Exchanges two nodes by conserving edges leaving old (i.e., pointers) - pointing to old. */ +/* Exchanges two nodes by conserving edges leaving old (i.e., pointers + pointing to old). Turns the old node into an Id. Requires that + current_ir_graph is set properly. */ inline void exchange (ir_node *old, ir_node *new); + +#endif /* ifndef _IRGMOD_H_ */