-/* Adds type to the list of types in irp. */
-void add_irp_type(type *typ);
-int get_irp_n_types();
-type *get_irp_type(int pos);
-void set_irp_type(int pos, type *typ);
+/** Gets the number of graphs _and_ pseudo graphs. */
+int get_irp_n_allirgs(void);
+
+/** Returns the ir graph at position pos of all graphs (including
+ pseudo graphs). Visits first graphs, then pseudo graphs. */
+ir_graph *get_irp_allirg(int pos);
+
+
+/** Returns the "global" type of the irp. */
+ir_type *get_glob_type(void);
+
+/** Adds type to the list of types in irp. */
+void add_irp_type(ir_type *typ);
+
+/** Removes type from the list of types, deallocates it and
+ shrinks the list by one. */
+void remove_irp_type(ir_type *typ);
+
+/** Returns the number of all types in the irp. */
+int get_irp_n_types(void);
+
+/** Returns the type at position pos in the irp. */
+ir_type *get_irp_type(int pos);
+
+/** Overwrites the type at position pos with another type. */
+void set_irp_type(int pos, ir_type *typ);
+
+/** Returns the number of all modes in the irp. */
+int get_irp_n_modes(void);