X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Flowering.h;h=f54ce72c0e0bc2ef6e9dac46a3d298c948d0ee04;hb=5d5a9c9ce851ff517747027ecd9dded22da55de7;hp=9f0c62373a44552d95dacc2325c72f51cdb96ae2;hpb=337455c9f2e0222d6752182dfc44ca8059050a0d;p=libfirm diff --git a/include/libfirm/lowering.h b/include/libfirm/lowering.h index 9f0c62373..f54ce72c0 100644 --- a/include/libfirm/lowering.h +++ b/include/libfirm/lowering.h @@ -325,6 +325,17 @@ typedef int lower_mux_callback(ir_node* mux); */ void lower_mux(ir_graph *irg, lower_mux_callback *cb_func); +/** + * Creates an ir_graph pass for lower_mux(). + * + * @param name the name of this pass or NULL + * @param cb_func The callback function for mux selection. Can be NULL, + * to lower all mux nodes. + * + * @return the newly created ir_graph pass + */ +ir_graph_pass_t *lower_mux_pass(const char *name, lower_mux_callback *cb_func); + /** * An intrinsic mapper function. *