X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgmod.h;h=3e068e9a2a7bd6d3ff6e0a0dcd6041aa9419cee1;hb=c3c48d7bd83f042cc2951754377de928d66fe51e;hp=13bada4f2468b858e1091de9d528a9bf26413360;hpb=c2b4a9f3d77fda7989e9cbd6293b9f9f58f4221c;p=libfirm diff --git a/ir/ir/irgmod.h b/ir/ir/irgmod.h index 13bada4f2..3e068e9a2 100644 --- a/ir/ir/irgmod.h +++ b/ir/ir/irgmod.h @@ -25,16 +25,21 @@ # include "irnode.h" -/** 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 *nw); - -/** 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. The block predecessor automatically remains the same. - This is useful if a node returning a tuple is removed, but the Projs - extracting values from the tuple are not available. */ +/** Exchanges two nodes by conserving edges leaving old (i.e., + pointers pointing to old). Turns the old node into an Id. */ +void exchange (ir_node *old, ir_node *nw); + +/** Turns a node into a "useless" Tuple. + * + * 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. The block predecessor automatically remains the same. + * This is useful if a node returning a tuple is removed, but the Projs + * extracting values from the tuple are not available. + * + * @param node The node to be turned into a tuple. + * @param arity The number of values formed into a Tuple. + */ void turn_into_tuple (ir_node *node, int arity); /** Walks over the passed ir graph and collects all Phi nodes as a