X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firconsconfirm.h;h=d335365bca037cf70789a7bb7bc8720507073a48;hb=64252961a7d41265ff28353949e63f0662a1cd03;hp=6fc9141eba87713bd5b3df20008f0bf184a28482;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/include/libfirm/irconsconfirm.h b/include/libfirm/irconsconfirm.h index 6fc9141eb..d335365bc 100644 --- a/include/libfirm/irconsconfirm.h +++ b/include/libfirm/irconsconfirm.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -22,12 +22,12 @@ * @brief Construction of Confirm nodes * @author Michael Beck * @date 6.2005 - * @version $Id$ */ #ifndef FIRM_ANA_IRCONSCONFIRM_H #define FIRM_ANA_IRCONSCONFIRM_H #include "firm_types.h" +#include "begin.h" /** * Inject Confirm nodes into a graph. @@ -49,7 +49,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 +66,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