X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firconsconfirm.h;h=167c733f0b59ebb53a3bd2997166e71ce8b8cf06;hb=4d64d1d8ea625cc6075a0086671c525a162726a0;hp=155d41a0974fcb8eef4a2856288c6745d5258c3b;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/include/libfirm/irconsconfirm.h b/include/libfirm/irconsconfirm.h index 155d41a09..167c733f0 100644 --- a/include/libfirm/irconsconfirm.h +++ b/include/libfirm/irconsconfirm.h @@ -28,6 +28,7 @@ #define FIRM_ANA_IRCONSCONFIRM_H #include "firm_types.h" +#include "begin.h" /** * Inject Confirm nodes into a graph. @@ -49,7 +50,16 @@ * nodes too. The current solution is to remove Confirms at a later * pass. */ -void construct_confirms(ir_graph *irg); +FIRM_API void construct_confirms(ir_graph *irg); + +/** + * Creates an ir_graph pass for construct_confirms(). + * + * @param name the name of this pass or NULL + * + * @return the newly created ir_graph pass + */ +FIRM_API ir_graph_pass_t *construct_confirms_pass(const char *name); /** * Remove all Confirm nodes from a graph. @@ -57,6 +67,17 @@ void construct_confirms(ir_graph *irg); * Note that local_optimize() can handle this if * the remove Confirm node setting is on (set_opt_remove_Confirm(1)). */ -void remove_confirms(ir_graph *irg); +FIRM_API void remove_confirms(ir_graph *irg); + +/** + * Creates an ir_graph pass for remove_confirms(). + * + * @param name the name of this pass or NULL + * + * @return the newly created ir_graph pass + */ +FIRM_API ir_graph_pass_t *remove_confirms_pass(const char *name); + +#include "end.h" #endif