+/**
+ * Creates an ir_prog pass for running void function().
+ * Uses the default verifier and dumper.
+ * The pass returns always 0.
+ *
+ * @param memory if non-NULL, an already allocated ir_prog_pass_t
+ * @param name the name of this pass
+ * @param function the function to run
+ *
+ * @return the newly created ir_prog pass
+ */
+FIRM_API ir_prog_pass_t *def_prog_pass_constructor(
+ ir_prog_pass_t *memory,
+ const char *name, int (*function)(ir_prog *irp, void *context));
+
+/**
+ * Create a pass that calls some function.
+ * This pass calls the given function, but has no dump nor verify.
+ *
+ * @param name the name of this pass
+ * @param function the function to run
+ * @param context context parameter
+ *
+ * @return the newly created ir_prog pass
+ */
+FIRM_API ir_prog_pass_t *call_function_pass(
+ const char *name, void (*function)(void *context), void *context);
+
+/**
+ * Set the run index for an irprog pass manager.
+ *
+ * @param mgr the manager
+ * @param run_idx the index for the first pass of this manager
+ */
+FIRM_API void ir_prog_pass_mgr_set_run_idx(
+ ir_prog_pass_manager_t *mgr, unsigned run_idx);
+
+#include "end.h"
+