+/* Returns the number of all modes in the irp. */
+int (get_irp_n_modes)(void) {
+ return _get_irp_n_modes();
+}
+
+/* Returns the mode at position pos in the irp. */
+ir_mode *(get_irp_mode)(int pos) {
+ return _get_irp_mode(pos);
+}
+
+/* Adds mode to the list of modes in irp. */
+void add_irp_mode(ir_mode *mode) {
+ assert(mode != NULL);
+ assert(irp);
+ ARR_APP1(ir_mode *, irp->modes, mode);
+}
+