CVS:
[libfirm] / ir / ir / irgmod.h
index 1d54b30..36c4fd8 100644 (file)
@@ -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_ */